Crazy Pong

Post Reply
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

File Download Crazy Pong

Post by DusanStrakl »

I am in process of updating all my tutorials and games to support latest version of Emulator. Currently this is R43.

Crazy Pong is written completely in assembly and it comes with detailed walk through the code.

Image Image

Access to full source code and tutorial is on my blog at:
https://www.8bitcoding.com/p/crazy-pong.html

Binary to download is also available here:
CRAZYPONG.PRG
(3.13 KiB) Downloaded 667 times
Or you can Try It Now! online.

Enjoy!
Last edited by DusanStrakl on Sun Jun 04, 2023 12:57 am, edited 1 time in total.
User avatar
ahenry3068
Posts: 1218
Joined: Tue Apr 04, 2023 9:57 pm

Re: Crazy Pong

Post by ahenry3068 »

I like :).

It will be a challenge to see if I can get something similiar
working in BASIC. Maybe in Prog8
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Re: Crazy Pong

Post by DusanStrakl »

ahenry3068 wrote: Sat Jun 03, 2023 10:12 pm I like :).

It will be a challenge to see if I can get something similiar
working in BASIC. Maybe in Prog8
It should be doable. If you do it in BASIC the only major change will have to be in collision control. You can't implement hardware collision detection between sprites in BASIC but math should be simple enough to run more than fast enough.

The main goal for me writing this game was to complement it with detailed tutorial in exactly how to do those things in assembly and pong seems to be pretty much the simplest game I could think of.
User avatar
ahenry3068
Posts: 1218
Joined: Tue Apr 04, 2023 9:57 pm

Re: Crazy Pong

Post by ahenry3068 »

I was never much of a game programmer myself.. I was more into business stuff. I wrote a really really
good DOS graphical shell, about the only shareware I ever got license fees for.

Honestly when I think back. Most of the code I wrote that got used for actual day to day tasks where in
DBase first and then later in MS-Access. Access was/is an extremely powerful platform giving you both
SQL and Visual Basic in one platform.
User avatar
ahenry3068
Posts: 1218
Joined: Tue Apr 04, 2023 9:57 pm

Re: Crazy Pong

Post by ahenry3068 »

That being said. I should write a Pong Game after I'm done with Hangman :)
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Re: Crazy Pong

Post by DusanStrakl »

ahenry3068 wrote: Sat Jun 03, 2023 11:52 pm I was never much of a game programmer myself.. I was more into business stuff. I wrote a really really
good DOS graphical shell, about the only shareware I ever got license fees for.

Honestly when I think back. Most of the code I wrote that got used for actual day to day tasks where in
DBase first and then later in MS-Access. Access was/is an extremely powerful platform giving you both
SQL and Visual Basic in one platform.
Ha ha, very similar to the start of my career. I also started with DBase and coding in Clipper, FoxPro and Visual FoxPro on DOS/Novell and later moved to more system software and mostly using C/C++ on various Unix systems (HP-UX, AIX, Solaris etc.). Before that during high school I wrote several assembly games on Oric (6502 CPU).
User avatar
ahenry3068
Posts: 1218
Joined: Tue Apr 04, 2023 9:57 pm

Re: Crazy Pong

Post by ahenry3068 »

Funny thing. My career was always Shipboard engineering...... Pumps, valves, turbines, engines...
I was always that extra guy who also understood computers.. It made my Navy career kinda funny.\
Ran a part time business between 94 and 99 buying and reselling used computers and monitors
from auctions so I have a little hardware knowledge. I've recently been intrigued by
"Adrians Digital Basement" ... I used to do a lot of the same stuff getting those
old system ready for resale.... :) One thing Adrian has done that I never did is
try to resurrect MFM harddrives. Even back then when they were < 10 years old I just
trashed them if they didn't work............. lol
mobluse
Posts: 177
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

Re: Crazy Pong

Post by mobluse »

Crazy Pong ball just moves exactly horizontal and not slanted when I tested it now using the Try it now! link. I think you should add some randomness to the direction when the ball bounces and when it starts.
I made a pong game in Scratch in 2013: https://scratch.mit.edu/projects/11071175/
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
User avatar
DusanStrakl
Posts: 134
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Re: Crazy Pong

Post by DusanStrakl »

mobluse wrote: Mon Jun 19, 2023 1:12 pm Crazy Pong ball just moves exactly horizontal and not slanted when I tested it now using the Try it now! link. I think you should add some randomness to the direction when the ball bounces and when it starts.
I made a pong game in Scratch in 2013: https://scratch.mit.edu/projects/11071175/
Hi mobluse, the ball will bounce off the paddle at different angles if the paddle is moving at the time of contact. If you are moving up the ball will get upward momentum so you can increase or decrease the angle. In fact the ball can move at 5 angles 0, 15, 30, 45 and 60 degrees. Full source code and description is on my blog:
https://www.8bitcoding.com/p/crazy-pong.html
mobluse
Posts: 177
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

Re: Crazy Pong

Post by mobluse »

Thanks! I've got it working now. You might want to add an instruction about how to change the vertical speed.
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
Post Reply