Store_maint now working
Has it really been a year since I updated this Blog? Wow.
I've been continuing to port Moria over to the Atari 8-bit, equipped with VBXE and an Atarimax 8-Mbit (1024K) cartridge. I've just gotten all the bugs out of the store_maint procedure, which runs during the generation of the town. This populates all the stores with items, and also rotates the items periodically. It was quite a hassle to get ported over properly, since all the data being used is in overlapping banks of RAM that is being banked by VBXE at $4000-BFFF. Most of the code is in the cartridge bank at $A000.
Next on the list is to get the store display functions ported over, which should be easy, and then onto the main dungeon code. I guess we could consider this milestone 2 of this project, given that this was the high-level overview of the steps to completion:
1. Make this into an 8Mbit cart-easy to do with cc65 linker config. -DONE
2. Port Generate cave code. -DONE
3. Port Dungeon code.
4. Write new character save/restore code for flashcart.
5. polish/optimize.
Attached is an Atarimax 8-Mbit (1MB) cartridge (old style bank 127 activate on boot). You need VBXE to run this. Try it in Altirra with Warp Speed on. After selecting your character, it will generate dungeon levels from 0 to 50, pausing for a key press between each one. There's still a lot of debugging messages on the screen, and no real optimization has been done yet, other than refactoring the code to work a bit better with cc65.
2 Comments
Recommended Comments