Category Archives: Mr. Bear’s Adventure

Parsing and Tiles Structures Complete

Excuse the bad art. They’re placeholders. I’m not an artist.
I finished the parser and data structures to hold terrain (ground, walls, ceiling, etc.) tiles. Of course, they will likely be changed over time to accommodate new types of tiles, because right now I only have one – grass. The point is that it works and that at this point it can go through the entire data structure of tiles during each update without any slowdown.
I’ll probably want to add a second tile type soon just to make sure parser and data structures can handle different types. I guess I should expect error and add in some error handling for when the data file has incorrect characters in it.
And then I’ll be on to gravity and, with it, collision detection for the ground.

Level Layout Parsing

I’ve been thinking that documenting my work on Mr. Bear’s Adventure might press me to work on it a little more. It’s a basic platformer (or it hopefully will be) that I’ve been attempting to make. The idea isn’t to make some fantastic game; rather, it’s to just make a platformer at all. The only way to get practice is to churn out some simple games.
I had already created some sprites and done character movement, excluding any kind of collision detection or gravity. So, I hadn’t done much of anything yet actually. When I returned to work on it, I started on the parser to read external data files containing the level layout. Along with it, I started working on the structures used to store the levels.