Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / HELP ON SNAKE GAME

Author
Message
comm_jak
22
Years of Service
User Offline
Joined: 31st May 2004
Location: FOB: Fields Of Battle
Posted: 17th Sep 2004 06:08
I got this snake game made by a guy named "Richard Davey" (I give him all the credit) and now I want to tweak it.
Instead of having white squares for the snake I want to have a person I made in MS paint 16x16 and instead of a red square for the food I ant another person I made in MS paint 16x16. I already made the people. Can anyone help me?
HERE'S THE CODE:


I put a little thing at the end that lets you play agin by pressing the spacebar, but other than that every thing is the same.
Cian Rice
22
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 18th Sep 2004 09:32
Richard Davey is the head of the Game Creators. Sorry, I wish I could help you but I'm not someone who knows anything about 2d.

Got anime?I do.
medwayman
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 18th Sep 2004 19:14 Edited at: 18th Sep 2004 19:14
Quote: "Richard Davey is the head of the Game Creators"


I think that’s Lee. Rich is the man behind these forums, DarkForge, numerous code examples, and superb words like “numpty” probably loads more stuff too.

Look at these lines



You can see that the snake sprite is image 1 and the fruit sprite is image 2 so all you need to do, assuming your images are on 16x16 bitmaps, is replace these lines:

ink rgb(255,255,255),0
box 1,1,15,15
get image 1,0,0,16,16

With

load image “your image name.bmp”,1

Exactly the same with the fruit except using image number 2

Based on Amiga PD game Squigs. Currently being re-written.

comm_jak
22
Years of Service
User Offline
Joined: 31st May 2004
Location: FOB: Fields Of Battle
Posted: 19th Sep 2004 03:57
Thanks alot custard. I tried doing what you said before only I didn't delete the "get image 1,0,0,16,16" line. Thanks again.

Later,
comm_jak

Login to post a reply

Server time is: 2026-06-11 17:33:50
Your offset time is: 2026-06-11 17:33:50