The goal for today is to create fog of war in my game. I want the character to be able to see 7 blocks in all directions.
I’m going to use a concept called ray tracing.
Computers are not yet fast or smart enough to look around them and gather in all of the data of reality and model something like line of sight while processing 100% of the data available. So, the way most engineers have been simulated line of sight for decades is with something called ray tracing.
Ray tracing is incredibly useful for an infinite number of…
Make a level editor
I’ve made a passable tileset and level generator for my game. Now, I’m going to make a level editor.
In the future, I’ll probably use a bit of procedural generation, but I want the ability to custom make certain levels and some things within levels. That’s where the level editor comes in.
I’m going to make a web portal with js/html/css that will allow anybody to make a grid and fill it with preset tiles. It will have a button that will download the level as a JSON when they’re done.
Eventually, I'd like to put…
Now that we have a basic foundation for the game. Let’s upgrade the aesthetics a little bit.
I now have the basic foundation required to start a little world-building. Today, I’m going to make a bunch of tiles before moving forward so that my game looks a little nicer.
I spent like 2 hours making some tiles, here is how it looks.
upgrade our grid generating system to be more stable, and accept more options.
There are several problems I’m going to address today.
My grid generator takes in a text file with a matrix of single-character strings.
Each of my levels is generated iteratively.
Both of these behaviors create some restraints on my creative process because there are only ~50 single characters I can use so this restricts my entire game to ~50 tiles. I’m confident the end game will have more than 50 tiles.
Secondly, the single character restraint combined with the iterative grid generation disallows me the easiest solution…
Travel from one level to the next
Today I want to make it so my character can enter a portal or in the DCSS way, “go downstairs” to the next level. Similarly, I want my character to be able to go back up the stairs so they can go back to the old level if they wish.
There are some key things about DCSS that I want to get away from. For example, in DCSS, every floor has multiple stairs and “trap doors.” DCSS uses this as a sort of bottlenecking mechanic for the player. The player can “stair spam”…
Generate a few levels and slap an outer wall on em.
Let’s use what I’ve done so far to generate some basic levels to be used for further production.
I’m at the point now where I have a way to make some stable levels that won’t cause any game-breaking crashes. My grid_manager can take in any text file and generate the level.
Now, I want there to be a ring of walls on the outside of whatever map I make, and I want there to be a super wall on the outer edge of that. …
prevent my character from walking through walls.
Prevent my character from walking through walls while maintaining diagonal movement.
I’m not sure. I have a method in my head that I know will work but I doubt it is the most performant way. I’m also convinced that unity has decent grid-game support and probably has a better way to handle this.
However, since I have no idea what those are I’m just going to do what I know will work.
I want my grid_manager to handle my grid generation.
I want my master_manager to handle the “flow of the game.” So…
Character movement and tracking camera
Today I’m going to try to get a character on the screen, have it clip to the grid I made on day one, and have it be able to move across my grid both orthogonally and diagonally.
The first thing I’m going to do is make a sprite with gimp. Again, I’m going to start out as simple as possible to keep development moving.
I want my character to be easy to see for testing purposes so I’m going to pick a bright color.
And there we go :
advent
Over the past few months, I’ve been working on a long term project(That painting.) I just finished it, so now I’m going to start on a new project. That’s what this grid-based game is about.
Aside from a few algorithm visualization projects I have very little experience with unity.
Otherwise, I’ve been a programmer for about two years. I’ve developed this skill relatively quickly so I have a good handle on structures, algorithms, and general design principles.
I’ve built a couple of grid-based games leading up to this so I feel pretty confident using these types of structures.
I’ve…
Full stack software engineer