Snake in SDL
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?
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.
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.
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?
Yes I know how. By the way, I figure it out already. :)
I'll post here if I encounter again a problem. Thanks.
I'll post here if I encounter again a problem. Thanks.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement