Week 1 devlog


The first thing that I decided to do was to create functioning rooms, as this is the basis of the game. I created a small system for how rooms work with 3 main parts. The first part of the system is the rooms themselves. They all have the same script on them and are simply storing data about themselves and where they are in the dungeon (that's what I call all of the rooms combined), as well as where their neighbours are (or would be if they don't have any), and who their neighbours are. They also store their size and type. The idea behind that is to make one room object that would work for any room I need. The second part of the system is the room manager. The room manager manages all of the rooms (wow surprising). It mainly manages their creation and their storage for later access. The last part of the system is the library (not a programming library). It contains all of the information about the differences between different rooms. For example, the images that they use, the rules that they obey, their size (in case it is fixed or is somehow special), etc. The library could be a part of either of the two previous parts but I decided to make it separate for the sake of keeping the code cleaner and more compact.

Rooms

First Two Default Rooms
Room Script
Each Room Has Its Type

All 3 parts are implemented to a certain extent already and are talking to each other. The current functionality is as follows: The first 2 rooms are created by default (they are the rooms the player starts with). The player can enter a "building mode" where they are able to see all the possible positions in which they can build a room and build rooms in those positions. The rooms that the player builds default to be mines. Once a mine is built next to another mine they merge and change the texture. If 4 mines are built in a row an error message appears (have not implemented the limit yet). It will also work with any other type of room but mine is the only one that has textures as of now.

Building View

How The Building View Looks
Big Mining Room
3 Mining Rooms In A Row Make A Big Mining Room

Other things worth mentioning would be: My friend agreed to help me by making all of the textures and they already started their work. I created some basic camera movement (the player can go up, down, left right, or diagonal and can zoom in and out), but boundaries are not yet implemented. Most of the rooms and monsters already have sketches.

The things that I will focus my attention on next week would be: completing the library, making boundaries for the camera movement, adding vertical rooms, and, if I have time, starting to add resource counters and generation of resources by rooms.

Leave a comment

Log in with itch.io to leave a comment.