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?
Pong preset
22 posts
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.
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.
...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...
no offense meant, it just doesn't seem that much of a challenge to me...
i see how it would be easy, although coding in for "mistakes" would be harder
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 😉.
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 😉.
Shit UnconeD that's great. 😁
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.
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.
Uuuuuu! 🙂 UnConeD does it again !
Oh fine, just crap all over my skills then 😉 Bugger it i'll work on something else.
Yeah, pong is easy to do. The collisions aren't difficult to simulate at all.
The pong preset I am making doesn't keep score right now.
nice pong sim, unconed 🙂
You couldn't believe the enormous smile on my face when I saw that. Good job UnConeD!
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.
Only thing I can see wrong with it is that the ball sometimes goes through the paddle, it's good enough for me though.
UnConeD, i bet that per frame code is even longer than Atero's 😁
Nice pong, but i guess it would be a bitch to turn it into a real music visualization preset...
Nice pong, but i guess it would be a bitch to turn it into a real music visualization preset...
lol. Nice work Unconed, how long did it took you to make it?
Originally posted by TuggummiFuck no, my flocks scope frame section is a helluvalot longer than that.
UnConeD, i bet that per frame code is even longer than Atero's 😁
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...
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).
It took about half an hour for me to code the actual logic behind the game. was quite easy actually.
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
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"
that's why i'm naming my next pack "unoriginal"
"unoriginal", how original 😁 So many things have been done that you have to admit that you're unoriginal to be original.
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.