asasnat / BouncingBalls

Bouncing Pong balls on the screen in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BouncingBalls

Bouncing Pong balls on the screen in C++

Compilation

Make sure you have DOSBox installed and also have OpenWatcom installed.

Automatic compilation

Just run BUILD.BAT. (Yes, I could've just used makefiles but I still don't know how to get them working.)

Manual compilation

Run these commands:

wpp ball.cpp
wlink name ball.exe file ball.obj

Command line arguments

You can either run ball.exe without any command line arguments or specify how many balls to draw on the screen, eg:

ball 15

Note: Some large numbers may cause the program to crash as soon as it starts up. The largest numbe of balls I've tested so far that works is 128, though it may go higher than that.

About

Bouncing Pong balls on the screen in C++

License:The Unlicense


Languages

Language:C++ 96.8%Language:Batchfile 3.2%