- AVS Presets
- single player pong
Archive: single player pong
skupers
30th November 2003 15:47 UTC
single player pong
It seems I am the first one to release a avs-game. The goal is to hit the green bar on the left side of the screen. You can control your 'bat' (the white bar) with the mouse. When you miss the ball, it'll the red bar behind you and you lose a point and if you have no points, a live. When you've scored 10 points, you go up a level. This means the ball will be faster.
The preset was made for 64 fps. If it's faster on your computer, you can change the ball's speed by adjusting the framerate slider in the display settings or you can change the spdo variable in the init of the first scope.
The required slkscr.ttf font and skupers_cb_gameover.bmp bitmap are included in the zipfile.
Irrelevant
30th November 2003 16:10 UTC
Which version of AVS / APEs does this require?
skupers
30th November 2003 16:20 UTC
It should work with AVS2.8alpha2 and higher. You'll also need the Texer II APE.
UnConeD
30th November 2003 16:54 UTC
Took me a while to figure out how to control it. Why not simply follow the mouse all the time? Having to hold down the button is annoying.
By the way, this implementation is a bit silly... the goal of pong is to track the ball with a pad that moves slowly. If you link the position of the pad with the mouse, it all comes down to reponse time rather than anticipating the ball.
Oh and using gettime() you can make your game FPS-independent.
skupers
30th November 2003 18:01 UTC
You can expect a better version in Deskmod Three. ;)
§upernova
1st December 2003 05:40 UTC
I can't get it to work, I think I need the texer II, I have the 1st one, but not the 2nd.
Is it suposed to work in winamp 3? or just winamp 5?
skupers
1st December 2003 08:22 UTC
In any version with AVS2.8alpha2 or higher. That is Winamp5, unless you copied the .dll to the Winamp2 directory.
Irrelevant
1st December 2003 21:02 UTC
What about the Winamp3 directory?
dirkdeftly
2nd December 2003 03:24 UTC
uhhhhhhh...why are you using winamp3 in the first place? it's an abandoned project, and for good reason. it isn't compatible at all with wa2/5 plugins either
skupers
2nd December 2003 13:40 UTC
Single player pong v1.1:
- No longer holding down the mouse button.
- The pad is a lot slower now.
- FPS-independant!
Irrelevant
2nd December 2003 16:26 UTC
why are you using winamp3 in the first place?
I think you'll find that it's what's advertised on the
winamp.com main page. Note the rather prominent image saying (and I quote exactly)
"Download WINAMP3 now!".
The disadvantage of having your versions numbered like Winamp has (3, 2, 5, in that order. WTF?) is that it's kinda confusing to newbies. :igor:
Warrior of the Light
2nd December 2003 21:48 UTC
Not like 3-2-5.
WA( :winamp: ) started as 1, years ago. Then came 2 and later 3, but that sucked major arse so Nullsoft 'mixed' 2 and 3 (2+3=5) and came up with WA5. (Or as I believe 4 was abandoned in pre-alpha or beta stage and they went on with 5 :igor: ).
And besides, I doubt that many visitors of this particulary forum will visit the mainpage often. We know most of the news already before publishing and if not, important news spreads fast enough...
And as WA3 is concerned, it's {still} the newest thing around since WA5 is still unreleased (not regarding newer WA2 updates).
But I guess this is already said many times around all forums
§upernova
3rd December 2003 06:15 UTC
I tried it on WA5 too, didn't work, I think I need the texer II APE.
I think it would be a good idea to inclue the texer II APE in the .zip file, for other people that don't have it, can somebody attach the APE for me?
UnConeD
3rd December 2003 08:47 UTC
very, very latest at http://acko.net/dump/texer2.zip (find the new features)
skupers
3rd December 2003 10:52 UTC
Single player pong v1.2
- Fixed a nasty bug, which allowed the ball to go off the screen
- Correct decay for different framerates (thanks to UnConeD)
- Bat is set to y=0 at init
skupers
3rd December 2003 10:56 UTC
Forgot to attach the file.
fsk
3rd December 2003 23:28 UTC
when you loose a life the ball shouldnt bounce back because it can get trapped behind the bat and you loose more lives for nothing.
Warrior of the Light
4th December 2003 14:09 UTC
a little 'bug'. Speed is only determined on the X-axis. If you give the ball a lot of effect, it's nearly impossible to get your paddle there where you want because the vertical movement is just too large to follow.
I also got some weird stuff when the ball hit my paddle real fast. it seemed to be 'sticking' to my paddle for a while.
By the way, my highscore is 41 now :D
@FSK: That's just like the original Pong and shouldn't be changed, although it's annoying, but that's my opinion
dirkdeftly
4th December 2003 15:41 UTC
umm i'm pretty sure that's *not* like the original pong, and i'm also pretty sure that the x-axis speed thing *is* on the original pong
skupers
4th December 2003 16:39 UTC
Originally posted by fsk
when you loose a life the ball shouldnt bounce back because it can get trapped behind the bat and you loose more lives for nothing.
I thought that would be more exciting. Well, at least more exciting than having the ball resetted to the middle of the screen everytime you make a mistake.
Originally posted by ;-c ,rattaplan
I also got some weird stuff when the ball hit my paddle real fast. it seemed to be 'sticking' to my paddle for a while.
I know of this bug. It's because hitting the bat is determined when the the ball is between 0.9-0.5*spd and 0.9+0.5*spd . If you move really fast you can trap it from the sides. I thought that this would almost never happen, but since you noticed, I'll change the code to prevent this. Would you rather have the ball continue in that case or have it bounce off the side?
I was also thinking of doing tetris, but I'm still wondering what the best way is to store the information of what blocks are already placed. The best idea seemed to me to store every row as a 10-digit 'binary' number. It's not really binary, but a decimal number with only 0's and 1's. 1111111110 would stand for an almost entirely filled row, with only the most right one not used. The problem with this technique is that reading and storing the information to 10 rows x 10 blocks = 100 blocks would take at least 100 equations and 100 variables per frame. Do you think there's a better way?
blazer1504
4th December 2003 20:34 UTC
hmm.. another bug I found is that the ball is *pretty* easy to make move only on x-axis (well, it moves very slightly on y-axis) nothing big but just makes things boring (like it isn't already, sorry :D ) (I played to lvl 9 before decided to drop off)
lol, tetris.. I was a serious tetris-freak ya know :DDD
anways. Nice effort with the new things of AVS. GJ :up: