• Advertisement
Sign in to follow this  

Snake in SDL

This topic is 3518 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having a hard time figuring it out on how will I render the snake in SDL. I'm done with the Collision Detection and Inputs. Anyone here can help me?

Share this post


Link to post
Share on other sites
Advertisement
We'll need much more info than that. How do you represent the snake?

Share this post


Link to post
Share on other sites
I'm currently creating a snake game in C/C++.

OOOOOOOOOOOOOX

X = snakehead
O = snakebody

"This one is just a 10x10 black image"
snakehead = load_image( "shead.bmp" );

"This one is just a 10x10 white image"
snakebody = load_image( "sbody.bmp" );

My problem is I don't know how to make the snake's body in SDL.

Share this post


Link to post
Share on other sites
Quote:
My problem is I don't know how to make the snake's body in SDL.
Could you make the snake game in pure console?

Share this post


Link to post
Share on other sites
Yes I know how. By the way, I figure it out already. :)

I'll post here if I encounter again a problem. Thanks.

Share this post


Link to post
Share on other sites
As a note, it's not like we're being unhelpful. We have trouble answering your question, because frankly, you don't really have a question in your posts. Coupled with a lack of details, we don't know what to say. Raymond's article on asking questions tells you how to get useful answers from us.

In the future, it would help if you try to be specific. When you tell us vaguely what your problem is, we can only ask questions ourselves, or wonder if you are tackling something you aren't quite ready to handle.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement