Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / 20-line pong

Author
Message
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 22nd Apr 2007 00:32
A little pong re-make.


Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Kiefer Greenspan
19
Years of Service
User Offline
Joined: 11th May 2004
Location: NY
Posted: 22nd Apr 2007 06:27 Edited at: 26th Jan 2008 19:33
...
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 22nd Apr 2007 17:58
This is the code compressed to 22 lines.


Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 22nd Apr 2007 21:13
Quote: "nice!
this version the ball moves up and down as well, was it like that in the tutorial?
i made a 2d pong originally my own version as well but too lazy to condense it, a good starting point"

No, and i added paddle reset.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 22nd Apr 2007 21:35
W00T! 20 lines & AI!(By myself, no tuts!)


Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 22nd Apr 2007 21:39
Whoops, i forgot to post that this is DBpro only.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 26th Apr 2007 03:19
guess no one cares...

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 24th May 2007 02:01
It's nice.. sorry for the bump.

---PARANOID PRODUCTIONS---
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 31st May 2007 00:07
Thanks, *bows*

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Jul 2007 15:57
I can't test this as its DBP, but it looks similar to a pong that I made, the problem is the angle never changes so the balls just bounces round and round. Try and make it so the angle changes depending on where on the bat the ball is hit.
If you have done this already then ignore me.

I am King of the noobs!
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 30th Jul 2007 17:45
No, the ball angle changes... But you have to slide the bar to make it change... :-\

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Not_Maindric
16
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 2nd Aug 2007 23:38
Quote: "Whoops, i forgot to post that this is DBpro only."


I have DBC and it works just fine... You need to move the computer's score number over a little bit. It went into the dash when I forced it to get 100+ points. =D

Insert Name Here
17
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 8th Aug 2007 17:37
Good... But you can just sit for hours on end watching go back and forth etc.

I never tell the truth.
That ain't a paradox.
I always tell lies is though.
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 16th Nov 2007 00:14
Ok, ok. I shall change it.

n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 16th Nov 2007 00:30 Edited at: 16th Nov 2007 03:29
This one is a complete remake of the last.

New view, Win and Lose screen, and the ball reflects.

Uncompressed:


Compressed:


(Yea, i used goto, sue me o.o)

whipped6
17
Years of Service
User Offline
Joined: 31st Aug 2006
Location:
Posted: 27th Dec 2007 18:37
I like the AI, I'm still trying to learn how to make an AI because im still a stupid nooooooooooooobie. <<<is learning more and more

game creator
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 28th Dec 2007 01:05
Well, pong AI isn't too difficult. It's just aligning thye opponent paddle with the ball, fast enough to be a challenge, and slow enough to allow err.

Login to post a reply

Server time is: 2024-04-19 21:07:55
Your offset time is: 2024-04-19 21:07:55