Thanks for the advice!
My first gamefeedback?
41 Replies - 3822 Views - Last Post: 19 July 2008 - 12:40 PM
#16
Re: My first game
Posted 17 July 2008 - 12:48 PM
OK, noted. I'm gonna work on a version 2 tonight 
Thanks for the advice!
Thanks for the advice!
#17
Re: My first game
Posted 17 July 2008 - 01:32 PM
OK, people are saying that the ball moves too fast? When I loaded it, I had more than ample time to move the paddles because the ball was moving very slowly...perhaps my system is lacking something, or has anyone else had the ball move very slow?
#18
Re: My first game
Posted 17 July 2008 - 01:41 PM
Recoil, on 17 Jul, 2008 - 04:32 PM, said:
OK, people are saying that the ball moves too fast? When I loaded it, I had more than ample time to move the paddles because the ball was moving very slowly...perhaps my system is lacking something, or has anyone else had the ball move very slow?
There's no timer so the game is going to run at different speeds on different machines.
gabehabe probably designed it to run normally on his machine. The people that it runs too fast for probably have faster computers than him. You probably have a slower computer.
#19
Re: My first game
Posted 17 July 2008 - 01:50 PM
#20
Re: My first game
Posted 17 July 2008 - 01:58 PM
When you say "I'm not as good as you think I am" it sounds like you're fishing.
And I don't give out compliments too often, you should appreciate it
And yeah, I just used SDL_Delay to do it, but ***n00b moment*** I thought that was classed as a timer
And I don't give out compliments too often, you should appreciate it
And yeah, I just used SDL_Delay to do it, but ***n00b moment*** I thought that was classed as a timer
#21
Re: My first game
Posted 17 July 2008 - 07:54 PM
You may already know what you have to do, but in case you don't here you go because I'm too tired to explain it.
#22
Re: My first game
Posted 17 July 2008 - 07:58 PM
Very cool, gabehabe. I'm looking forward to a version with a timer.
#23
Re: My first game
Posted 18 July 2008 - 02:49 AM
Thanks Tom, I have read a little about it, but that clarified it a bit more
#24
Re: My first game
Posted 18 July 2008 - 05:44 AM
Most likely the last version I'll do for a while now, I'm gonna leave a 2 player version for another time.
Updates:

Here it is:
pong.zip (1.63MB)
Number of downloads: 154
Final thoughts?
Updates:
- Added a timer
- Added a menu
- Added "help"
- Added "about"
- Added 1P v CPU option
Here it is:
pong.zip (1.63MB)
Number of downloads: 154
Final thoughts?
#25
Re: My first game
Posted 18 July 2008 - 05:46 AM
i wish i could learn to do something like this
#26
Re: My first game
Posted 18 July 2008 - 07:57 AM
You'll learn someday 
Take a look at the source code, it's included under ./src of the zip
Take a look at the source code, it's included under ./src of the zip
#27
Re: My first game
Posted 18 July 2008 - 09:37 AM
gebehabe, are you using the sdl mainloop to arrange the timings for you?
it jumps all over when i run it in parallels on my mac.
atlantis does its delaying like this:
another way is described in the manual at intro.en/usingtimers.html
from the manual:
Tip:
In general, when implementing a game, it is better to move objects in the game based on time rather than on framerate. This produces consistent gameplay on both fast and slow systems.
hope this helps.
it jumps all over when i run it in parallels on my mac.
atlantis does its delaying like this:
if (thenTicks > 0) {
nowTicks = SDL_GetTicks ();
delay += (1000/fps - (nowTicks-thenTicks));
thenTicks = nowTicks;
if (delay < 0)
delay = 1000/fps;
}
else {
thenTicks = SDL_GetTicks ();
}
SDL_Delay (delay);
another way is described in the manual at intro.en/usingtimers.html
from the manual:
Tip:
In general, when implementing a game, it is better to move objects in the game based on time rather than on framerate. This produces consistent gameplay on both fast and slow systems.
hope this helps.
#28
Re: My first game
Posted 18 July 2008 - 09:50 AM
Trogdor, on 18 Jul, 2008 - 12:37 PM, said:
Tip:
In general, when implementing a game, it is better to move objects in the game based on time rather than on framerate. This produces consistent gameplay on both fast and slow systems.
hope this helps.
In general, when implementing a game, it is better to move objects in the game based on time rather than on framerate. This produces consistent gameplay on both fast and slow systems.
hope this helps.
I think we could argue over that.
Might just be a personal preference, but I would prefer my games to sync to the framerate, and then have a modifiable 'game speed' parameter. If you're playing on an old computer that can't stick with whatever the framerate is set at, lower the framerate and increase the gamespeed (this could be done automatically).
May cause problems with multiplayer games though.
#29
Re: My first game
Posted 18 July 2008 - 10:15 AM
Why are the controls backwards? When I press the Up arrow the paddle goes down, and visa verca
#30
Re: My first game
Posted 18 July 2008 - 10:46 AM
It's supposed to be like that.
The left paddle will move up, and the right paddle will move down.
Kind of a pong spin-off sorta thing
The left paddle will move up, and the right paddle will move down.
Kind of a pong spin-off sorta thing

New Topic/Question
Reply







MultiQuote



|