Log In  

Play Ping against a bot or a friend!

Cart #picopong_11-0 | 2019-04-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

I've seen a lot of pong clones here but there was always something about them that bothered me. So I made my own version, and now I can be bothered by myself.
Oh, and the AI is kind of a buzzkiller, but I guess I find that a little fun too.

I hope you enjoy!

And please, let me know if you find any bugs!

UPDATE LOGS:

V2.0:

  • Better A.I.
  • Fixed the perpetual ball thingy
  • Minor bugfixes

OLDER VERSIONS:


Cart #picopong-0 | 2019-04-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3


P#63744 2019-04-20 22:24 ( Edited 2019-04-29 11:18)

I can pretty much always get the ball just bouncing straight between me and the AI, so I can just not move and the game will continue. After a while the ball will phase through the opponent paddle and give me a point.

P#63921 2019-04-24 06:12

too hard !

P#63931 2019-04-24 12:36

@PicoLate yeah, that's a problem. I did try to fix that but the algorithm isn't the best with the way I made the AI work. Will try to fix it, though, thanks for pointing that out!

@wizerr well, I did warn the AI was a buzzkiller hahaha. I thought a lot about making a difficulty level but ended up leaving it like that. With a lot of practice I now can beat the AI, but it did destroy me for quite a while. Will think more about it.

Thanks for playing!

P#63937 2019-04-24 18:18

@PicoLate @wizerr fixed :) thanks for the heads up!

P#64030 2019-04-28 14:04

Nice rendition of pong, Maybe fix the paddle feeling like it's on ice or make the paddle bigger? Idk, let me know if you get what I mean.

P#67547 2019-09-11 15:40
1

Getting correct paddle movement from keyboard input has always been a challenge to programmers.

The original hardware had a dial and you could either smoothly slide it or jerk it at any speed to always have the paddle where you wanted it.

You want to have the movement where it's not so fast the player loses the smoothness, and not so slow the player cannot maneuver in time for a fast volley.

Years ago I wrote a PONG for a QBASIC competition. The method I used was similar but had a bit of a curve. Let me see if I can find it ...

Got it ... converting.

Cart #dipibozise-0 | 2019-09-11 | Code ▽ | Embed ▽ | No License
1

Use left and right arrow keys to move the paddle.
Hold down (O) to travel faster.
And of course you can fudge the numbers if you like.

Option to turn coast on and off by pressing (X). Doing so paddle stops the moment you let go of arrow keys.

P#67549 2019-09-11 16:09 ( Edited 2019-09-11 16:17)

@KnightOfDoom22 yeah, I get what you mean. In fact, @dw817 pretty much nailed it down. That actually is a pretty good way of dealing with the paddle speed, I'm gonna look into it. I mean, it kinda defeats the purpose of making a 2-buttons game, but it really is an ingenious solution. If I ever update this cart, I'll definitely add that. Thanks, you guys!

P#67567 2019-09-11 23:19

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 12:49:45 | 0.042s | Q:37