View Full Version : I made a Pong
Michael Clease
01-03-2009, 23:17
This is as close to the original version as I can find any information about.
let me know what you think.
Enjoy
Updates
01-Mar-09 - V1.00 Original version, needs more work but functional.
02-Mar-09 - V1.01 cleaned up code (almost ready to release). Fixed scoring problem and the fact they were the wrong way round :violent:, plus more fixes.
03-Mar-09 - V1.02 improved timing hopefully. Fixed scoring not sure how the original handled it.
04-Mar-09 - V1.03 Improved speed by using display lists for the numbers. reduced the memory footprint (silly mistake with an array)
And here is the script for you to play with.
Petr Schreiber
01-03-2009, 23:20
Michael,
I did not played the original, but this is great!
Petr
Michael Clease
01-03-2009, 23:24
Thanks Petr, I had to create the font by hand :lol:
NumS(1) = _
"11111111", _
"11111111", _
"11000011", _
"11000011", _
"11000011", _
"11000011", _
"11000011", _
"11000011", _
"11111111", _
"11111111"
ErosOlmi
01-03-2009, 23:35
Michael,
it is great and very close to the original retro game !
Thanks
Eros
Hi,
fine work !
What is the next game ?
A Pacman would be nice !
best regards
Peter
Michael Clease
02-03-2009, 14:47
Thanks everyone.
Ive updated see my first post.
Breakout first then perhaps Pacman, I will see what time I have.
Enjoy.
Petr Schreiber
02-03-2009, 15:29
Mike,
new version works good.
Is it by design it never ends, so when AI player gets 9 points and I do not manage to catch ball again, 9 turns back to 0 but my score is untouched?
Petr
Lionheart008
02-03-2009, 17:11
:D
good work, dear michael, I lile very much the look of the old pong game:)
perhaps it's possible to check if this version you have added today is compatible with older thinbasic versions... On my desktop pc I have installed thinbasic 1.7.6.0 and I couldn't start the script... don't know... why...
thank you for this little game example :)
ps: one little question again:
the mouse handling to move the player left and right isn't running continually for me... but I don't know if I can only use the mouse (left button mouse)??? can you tell more about the "help functions"???
bye, Lionheart
"mittagspause" :)
ErosOlmi
02-03-2009, 17:15
Obfuscated scripts are only compatible with the version they have been obfuscated with.
Every new thinBasic version has a different set of "keys" used to obfuscate a script.
This was made for adding more security.
Michael Clease
02-03-2009, 18:57
Frank I told it to only run from the current version 1.7.7.0 and what Eros said.
The paddle will only move if the mouse pointer is in the window but I turned it off so it looked better but I can turn it back on as an option.
Michael Clease
03-03-2009, 23:59
Ive updated the first post with and updated script and finally released it.
Note: I know I didnt have to setup the number characters in a sub but it I wanted them at the bottom of the script out of the way.
Enjoy.
Oh and it runs like crap on my laptop for some reason ??? So sorry anyone with an intel gfxcard.
Petr Schreiber
04-03-2009, 08:30
Hi Mike,
good job, thanks for the source!
I will test on Intel during the night, but first thing which occurs to me is that your script generates "Invalid enumeration" OpenGL error.
I think problem is:
TBGL_PolygonLook %GL_POINTS
should be
TBGL_PolygonLook %GL_POINT
Petr
Michael Clease
04-03-2009, 16:56
Thanks Petr,
I fixed some things and did a massive speed improvement. Intels should be better now.
see the first post
Petr Schreiber
04-03-2009, 17:18
Thanks Mike,
will try it on our Intel speed demon :).