Jump to content
Sign in to follow this  
esplonky

pong physics

Recommended Posts

im bored so i want to make a pong game. how would i make a player0 just a human and player1 a cpu? and how would i make the ball move when it hit the paddles?

 

 

please get back

 

Cheers!

- Forrest Hodges

Share this post


Link to post
Share on other sites

is there a simpler way to do it?

You can waste whole variables instead of using bits. That's one way to make it simpler.

Share this post


Link to post
Share on other sites

english please?

Variable:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#variables

 

 

Bit:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#bit

 

 

I used bits in my example program instead of wasting variables. For example, instead of using a = 1 or a = 255, I used little itty bitty bits to do the same thing. Using a bit instead of a variable whenever you can saves precious variables.

 

The problem with using bits is that it can be harder for a new user to understand.

Edited by Random Terrain

Share this post


Link to post
Share on other sites

and also i had the ball flashing on different parts of the screen, and i made it to where the other paddle follows the ball, but everytime i move the player0 paddle it makes everything else stop. how do i fix that

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...