Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pong =<100 Lines
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Rasta Fella




PostPosted: Thu Jan 19, 2006 4:51 pm   Post subject: Pong =<100 Lines

Well, It's kind of "Pong" got the basics of the game down. Working on bricks and better movement. But its just a 'Beta'. Simple for beginner user to learn to decypher the code. Here is attachment. Please comment, BUT do remember this is just a 'Beta' version. New version with bricks to come out soon...when I actually have time to work on it. Any hints/tips would be appreciated so I don't have to go through "hell" with troubleshooting. Well here it is.


pongy.t
 Description:
Its just a early version don't be to harsh on the comments.

Download
 Filename:  pongy.t
 Filesize:  2.2 KB
 Downloaded:  456 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
cool dude




PostPosted: Thu Jan 19, 2006 7:17 pm   Post subject: (No subject)

umm if i'm not mistaken your making javanoid. its a fun game but u have a long way to go. the powerups are the hardest to make. i did javanoid and it turned out pretty nice. Smile i suggest making a menu at the start where user can choose from playing the game, instructions, etc. also at the end u could have a highscore list b/c i like games with highscores! (lol). anyways good start
Delos




PostPosted: Thu Jan 19, 2006 11:24 pm   Post subject: (No subject)

100? Not bad. Catalyst once did it in <20.
sylvester-27




PostPosted: Fri Jan 20, 2006 11:43 am   Post subject: (No subject)

the moving back and forth of the paddle is pretty jerky. might wanna fix that up if you feel like it
Rasta Fella




PostPosted: Fri Jan 20, 2006 7:19 pm   Post subject: (No subject)

sylvester-27 wrote:
the moving back and forth of the paddle is pretty jerky. might wanna fix that up if you feel like it

hehehe...jerky...

Well, im working on it, the GUI main menu system won't take that long but im thinking of a way to do power-ups.
Clayton




PostPosted: Tue Jan 24, 2006 2:53 am   Post subject: (No subject)

yes i would suggest making the paddle movement smoother or slow the ball down b/c you cant keep up with the ball with the paddle like that
good job though
proazn38




PostPosted: Wed Jan 25, 2006 3:00 pm   Post subject: (No subject)

this is really...but try and do this one, it took me around 4days

Create a simple game. Place a "wall" in the centre of the screen with an opening in it which is 2x the Pacman's diameter. The Pacman should only be able to move from the left side of the screen to the right by passing through the gap in the wall. The Pacman will start on the left side of the screen, with a randomly located "pill" on the right side for the Pacman to devour. Once this pill has been eaten, a second pill will appear in a random location on the left side of the screen. The object of the game will be to devour the two pills in as short a time interval as possible.
1. To keep track of the time needed by the user to devour the two pills, look up the Turing time procedures wallclock and clock. One of these should be suitable. Write a brief summary of how each works.
2. To determine whether or not a pill has been "eaten", your program will have to calculate the distance between the centre of the pill and the centre of the Pacman. A little Pythagoras will help! If this distance is less than the sum of the radii of the pill and the Pacman, then the Pacman is touching the pill. Write the condition that you would use, assuming that the Pacman's centre is (x, y) and its radius is 20, while the pill's centre is (xPill, yPill) and its radius is 5.
3. In the diagram on the right, only the Pacman at A should be able to pass through the gap. Those at B and C should be able to move slightly closer to the wall, or along the wall, or away from the wall, but should not be able to move through or into the wall.
4. Add some graphics to the game!!
Rasta Fella




PostPosted: Wed Jan 25, 2006 3:07 pm   Post subject: (No subject)

Hmmm...I have a hard time understanding what proaz had to say...
Does anyone know if this relates to my game because I don't think it does.
Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Wed Jan 25, 2006 3:09 pm   Post subject: (No subject)

it doesnt relate to ur game, he just wants someone to make that game for him



Delos wrote:
Catalyst once did it in <20.

do u still have the code cuz i would rlly like to see it
Clayton




PostPosted: Wed Jan 25, 2006 3:35 pm   Post subject: (No subject)

person wrote:
it doesnt relate to ur game, he just wants someone to make that game for him



Delos wrote:
Catalyst once did it in <20.

do u still have the code cuz i would rlly like to see it

look around in the contest forum, there was a contest once, i also found a link somewhere in one of the forums if u can find either and play the game its good happy hunting
[Gandalf]




PostPosted: Fri Jan 27, 2006 10:19 pm   Post subject: (No subject)

It was here.

It's not really something to learn from though, shortness = obfusciation.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: