1
The Axe Parser Project / Sprite storage, retrieval, and collision detection help
« on: December 28, 2013, 09:33:28 pm »
So I've written a few basic games in TI-Basic and have moved to the far more efficient Axe Parser. I understand the general structure of most commands and want to begin work on a more advanced game. With my older projects I used characters as sprites and simple X-Y check against maps for collision detection. But this was slow and tedious to program, and would need to be entirely rewritten for each map.
What I'm looking for is a way to easily recall sprites from a picture (seeing as how it is efficient as I could hypothetically store 96 8x8 sprites in an image). These will be simple monochrome sprites, with 2 additional images to support them: one with a pixel to denote the center of each sprite (and thus the origin of it's rendering) and another for a collision mesh. I'm completely new to working with images, but I understand how hexadecimal works, and am willing to learn. What I guess I really need is some example code with reasoning as to why and how it works, and some help in the future with optimizing my own code. Are there any Axioms that might help with this kind of thing?
What I'm looking for is a way to easily recall sprites from a picture (seeing as how it is efficient as I could hypothetically store 96 8x8 sprites in an image). These will be simple monochrome sprites, with 2 additional images to support them: one with a pixel to denote the center of each sprite (and thus the origin of it's rendering) and another for a collision mesh. I'm completely new to working with images, but I understand how hexadecimal works, and am willing to learn. What I guess I really need is some example code with reasoning as to why and how it works, and some help in the future with optimizing my own code. Are there any Axioms that might help with this kind of thing?