Re: [Freedos-user] Emeritus Pong v0.91

2008-07-15 Thread Jim Hall
On Tue, Jul 15, 2008 at 12:06 PM, Mateusz Viste <[EMAIL PROTECTED]> wrote:
> On Tuesday 15 July 2008, Jim Hall wrote:
>> Just grabbed it. (...) But the paddle control seems awfully jumpy - I would 
>> try to move my paddle up a little bit, and it would jump all the way to the 
>> top. Only happens sometimes.
>
> Hi,
>
> Honestly, I didn't tested it on DOSemu. I will that test soon, maybe I can 
> reproduce it.
> EmPong is strongly basing on RDTSC cycles (at least in the DOS version). Does 
> DOSemu emulate this? EmPong is also using time-calculated moves, so if it 
> doesn't loop for a long time (say, several ms), and he see that a key is 
> pressed, he just assumes that the key has been pressed for the whole time. 
> Then, it moves the paddle accordingly to the time the key (he thinks) has 
> been pressed.

That sounds like the behavior, right there. I don't move the paddle
when the ball is on the other side of the court, especially since the
AI is so bad and often misses. So when I finally tap the "up" or
"down" key, my paddle jumps immediately to the top or bottom of the
screen. That's a bug.

Doesn't seem to happen if I continually move my paddle during "idle"
times, even if it's just "up-down" to generate key input.


-jh

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Emeritus Pong v0.91

2008-07-15 Thread Mateusz Viste
On Tuesday 15 July 2008, Jim Hall wrote:
> Just grabbed it. (...) But the paddle control seems awfully jumpy - I would 
> try to move my paddle up a little bit, and it would jump all the way to the 
> top. Only happens sometimes.

Hi,

Honestly, I didn't tested it on DOSemu. I will that test soon, maybe I can 
reproduce it.
EmPong is strongly basing on RDTSC cycles (at least in the DOS version). Does 
DOSemu emulate this? EmPong is also using time-calculated moves, so if it 
doesn't loop for a long time (say, several ms), and he see that a key is 
pressed, he just assumes that the key has been pressed for the whole time. 
Then, it moves the paddle accordingly to the time the key (he thinks) has been 
pressed.
Maybe your system is slowing down EmPong too much (typical for some CPU 
Frequency Scaling implementations...), or it doesn't give EmPong as many cycles 
as it needs?
Do you have this behavior even on the lowest resolution (320x240)?
A good advice would be "use the EmPong version matching your real platform" ;-)

Best regards,
Mateusz Viste
-- 
You'll find my public OpenPGP key at http://mateusz.viste.free.fr/pub_key


signature.asc
Description: This is a digitally signed message part.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Emeritus Pong v0.91

2008-07-15 Thread Jim Hall
Just grabbed it. That was neat to play, thank you for making this. But
the paddle control seems awfully jumpy - I would try to move my paddle
up a little bit, and it would jump all the way to the top. Only
happens sometimes. I am running on DOSEmu 1.4.0 and FreeDOS 1.0 Base.

Also, the AI is very bad. :-)


On Tue, Jul 15, 2008 at 10:44 AM, Mateusz Viste <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Just a little announcement here:
> I wrote recently a little game, which I called "Emeritus Pong". The game is a 
> simple clone of the well-known "Pong" game (the one which started the history 
> of computer games, remember?) ;-)
>
> It's written in FreeBASIC, and released under the GNU/GPL license. There are 
> three versions available: Linux, Windows, and (of course!) DOS.
>
> http://mateusz.viste.free.fr/dos/en/download.php?plik=empong
>
> bye!
> Mateusz Viste

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user