stupid code is stupid please help

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Re: stupid code is stupid please help

Postby lcl » Wed Sep 07, 2011 12:20 pm

skydereign wrote:A small correction to your tutorial. %d does not do doubles, %d is the same as %i (both only handle integers). You can use %lf for doubles (long float).

Oh, didn't know that..
Thanks for pointing that out! :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: stupid code is stupid please help

Postby Jagmaster » Wed Sep 07, 2011 12:29 pm

Yep, I use sprintf WAY more than strcpy. Idk why I used strcpy in my post, I guess I was just tired. :P
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: stupid code is stupid please help

Postby DBGames » Mon Sep 12, 2011 4:17 pm

thnks guys, heres what iv'e got on my game so far. game goes to 10, only two player,
S / X = up and down
NUMPAD 5 / 2 = up and down

please give opinions and ideas
Attachments
pong test.zip
(541.04 KiB) Downloaded 144 times
User avatar
DBGames
 
Posts: 113
Joined: Wed Jun 24, 2009 10:13 am
Location: Bismarck, North Dakota
Score: 8 Give a positive score

Previous

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron