Archive: Pong preset


7th June 2003 21:58 UTC

Pong preset
I am trying to make a preset that is like pong with the paddles and the ball and the ball will bounce off the paddles.

The ball is moving OK but it sometimes it goes off the screen. Is there a way to make the ball go off one side of the screen and come back on the other with a SSC?


7th June 2003 23:38 UTC

That is the simplest of your problems, there is no way you're making a working pong preset without collisions, otherwise it will lose it's novelty and just be a big shit. I'm working on something similar but i'm nowhere close. Fucking collisions, crappy variables.

Edit: (yes someone on this damned forum can use the fucking edit button), This would make a simple line come on and start again when it leaves:

Init:
n=2:
Frame:
t=if(above(t,2),-1,t+speed);
Pixel:
x=i-t;
y=0;

That does what you want, i think you can figure out how to use it somehow.


8th June 2003 01:59 UTC

...honestly i don't see what the big deal is. i could code a pong sim in 15 mins if i wanted...keeping score would be easy, you'd just need a variable tracker (search the forums, a couple of people have made them...but i don't see what the big deal about those are either...)
no offense meant, it just doesn't seem that much of a challenge to me...


8th June 2003 04:15 UTC

i see how it would be easy, although coding in for "mistakes" would be harder


8th June 2003 04:47 UTC

You mean like this?

Just keep track of the ball's direction of movement and bounce it off the edges... with some extra game logic to make it skew off if you hit it off-center and such ;).


8th June 2003 10:37 UTC

Shit UnconeD that's great. :D

lol, here's a dos based game I made some time ago. Pretty screwed game I agree and runs fast as hell if you have a reasonably fast pc, but I have included the source in case anybody wants to modify.


8th June 2003 13:55 UTC

Uuuuuu! :) UnConeD does it again !


8th June 2003 14:11 UTC

Oh fine, just crap all over my skills then ;) Bugger it i'll work on something else.


8th June 2003 19:17 UTC

Yeah, pong is easy to do. The collisions aren't difficult to simulate at all.


8th June 2003 19:27 UTC

The pong preset I am making doesn't keep score right now.


9th June 2003 01:40 UTC

nice pong sim, unconed :)


9th June 2003 02:25 UTC

You couldn't believe the enormous smile on my face when I saw that. Good job UnConeD!


9th June 2003 04:38 UTC

Great job using only one superscope UnConeD, really nice.
Only thing I can see wrong with it is that the ball sometimes goes through the paddle, it's good enough for me though.


9th June 2003 07:51 UTC

UnConeD, i bet that per frame code is even longer than Atero's :D
Nice pong, but i guess it would be a bitch to turn it into a real music visualization preset...


9th June 2003 09:04 UTC

lol. Nice work Unconed, how long did it took you to make it?


9th June 2003 19:53 UTC

Originally posted by Tuggummi
UnConeD, i bet that per frame code is even longer than Atero's :D
Fuck no, my flocks scope frame section is a helluvalot longer than that.
I don't see why you did the ball AND the paddles in the same scope tho. Would've been much easier to do them seperately and texer the ball imo...

10th June 2003 03:12 UTC

I took up Atero's challenge actually:

..honestly i don't see what the big deal is. i could code a pong sim in 15 mins if i wanted...
Which is why there are still a couple of bugs in it (sometimes the ball will pass through the pad when it's close to the side and moving very steeply).

10th June 2003 04:36 UTC

It took about half an hour for me to code the actual logic behind the game. was quite easy actually.


10th June 2003 05:23 UTC

A man by the humble name of Magic.X once said.

Whatever you try, UCD has done it before or is telling you it aint possible. Somehow its just depressing

10th June 2003 08:07 UTC

Yes, sometimes when you get a new idea and think its so cool, you just realize someone has already done it before and then it's not an "original" idea anymore:(
that's why i'm naming my next pack "unoriginal"


10th June 2003 15:31 UTC

"unoriginal", how original :D So many things have been done that you have to admit that you're unoriginal to be original.


10th June 2003 17:05 UTC

Actually i was going to name it "out of ideas" but since zxe had already taken up the name i decided to name it unorigrinal.