Civil War Strategy Game (Part 2): The Main Routine Continued
We look at what subroutines are and why they are useful. We discuss arguments and parameters, and how to call a subroutine.
We look at what subroutines are and why they are useful. We discuss arguments and parameters, and how to call a subroutine.
First steps through the main routine of our game touching upon game state variables, line labels, GOTO, and so on.
I’ve enjoyed playing W. R. Hutsell’s series of turn-based war games since childhood. Mr. Hutsell generously provided me with the source code to these games and has allowed me to release that code under an MIT license. The first game I’ve worked on is VGA Civil War Strategy which was written in several iterations of …
Civil War Strategy Game (Part 0): An Introduction Read More »
Colors The COLOR statement in QuickBasic allows one to change the text/background. The sixteen colors available are (names from QBasic Wikibook; hexadecimal from QB64 Wiki): 00: Black – #000050 01: Dark Blue – #0000A8 02: Dark Green – #00A800 03: Dark Cyan – #00A8A8 04: Dark Red – #A80000 05: Dark Purple – #A800A8 06: Orange …
I had an old QuickBasic game with .VGA files in it. What are .VGA files? Some sort of image format. Eventually I was able to determine that these were BSAVE files, but how to move them to something current? Enter Deark (free and open source), a command-line utility that can decode files in one format and …