New game uploaded: Crazy Boulders

All aspects of programming on the Commander X16.
User avatar
DusanStrakl
Posts: 129
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

New game uploaded: Crazy Boulders

Post by DusanStrakl »




Crazy Boulders




View File






Boulder Dash style game written in Commander X16 BASIC for learning purposes.

Link to detailed description and access to source code on my blog:

https://www.8bitcoding.com/p/crazy-boulder.html






 
paulscottrobson
Posts: 305
Joined: Tue Sep 22, 2020 6:43 pm

New game uploaded: Crazy Boulders

Post by paulscottrobson »


Nice demo of what can be done in pure BASIC. It's a fairly brutal time limitation, 40 seconds to do the warm up level ?

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New game uploaded: Crazy Boulders

Post by desertfish »


This is fantastic, I love me some Boulderdash!

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

New game uploaded: Crazy Boulders

Post by DusanStrakl »



10 hours ago, paulscottrobson said:




Nice demo of what can be done in pure BASIC. It's a fairly brutal time limitation, 40 seconds to do the warm up level ?



Thanks. Well, I only built 5 levels so I had to make them hard so the game doesn't finish too fast ?

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

New game uploaded: Crazy Boulders

Post by DusanStrakl »



4 hours ago, desertfish said:




This is fantastic, I love me some Boulderdash!



Thank you, I am glad you like it.

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New game uploaded: Crazy Boulders

Post by desertfish »


@DusanStrakl I'm trying to figure out how you are displaying the graphics in this game. I can't find the place where the color palette is set, how do you do this?

paulscottrobson
Posts: 305
Joined: Tue Sep 22, 2020 6:43 pm

New game uploaded: Crazy Boulders

Post by paulscottrobson »



4 hours ago, desertfish said:




@DusanStrakl I'm trying to figure out how you are displaying the graphics in this game. I can't find the place where the color palette is set, how do you do this?



If you look in the Commander X16 docs in the github, there are some registers you poke with RGB values to set the palette.

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New game uploaded: Crazy Boulders

Post by desertfish »


Yeah I was searching for those in the source code of the game, but couldn't find them!  https://github.com/Dooshco/X16-CrazyBoulders/blob/main/CRAZYBOULDERS.BAS

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

New game uploaded: Crazy Boulders

Post by DusanStrakl »


I am using default palette and 256 color mode for tiles. It is a luxury but since I only use 10 different tiles the whole TILESHEET.BIN is only 10*16*16+2 = 2,562 bytes so not a problem to fit into VRAM.

 

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New game uploaded: Crazy Boulders

Post by desertfish »


Well, that didn't even occur to me that you could be using the default palette!  Thanks for explaining.

Post Reply