Post news Report RSS Development Update #1

Short into to what I've been implementing for the past week.

Posted by on

This article is another article about updates I've made to the game.

1. Procedural Generation:


I've improved the procedural generation algorithm in the game. Before, I was generating rooms based on random numbers I've received from the pseudo-random number generation algorithm. This worked "ok", but the biggest problem with it was that sometimes important rooms in the gameplay (like exit rooms, checkpoints) were spawned too close to the starting room, and the triggers and events that were generated for each room made absolutely no relation to each other at all (I would generally like to give the player some kind of hint that he/she is going the right way).

I've solved this problem by implementing the perlin noise algorithm to generated the rooms. Perlin noise algorithm is a algorithm that generated a smooth-transitioning noise values based off a seed. It's generally used for height-map generation in large scale worlds (such as Minecraft). Based from the noise created, I determine which rooms should be placed where.

2. Event System

Before, I had kept a reference to the trigger object in my room object. This was a quick hack to get a prototype up and running, but was severely limited in it's functionality as the room object was the only object that could access that trigger.

I've updated this system to utilize an event manager that holds a reference to all the objects that must be updated, and which invokes the appropriate callback function with the even data. With this system, I can have multiple objects getting reported on a some type of event at once.

This is also a lot more entity-oriented approach that allows the code to be very extensible.

3. Modular Room Design


For the alpha prototype, I've made the whole room from a single-box. This prevented me from implementing various traps and triggers I've had in my mind, and is going through the process of separating the rooms, making the floor, walls, roof, doors, and the hallways between rooms all separate. This will allow various more freedom when it comes to design.

Well, that's about it.
Instead of keeping everyone in the dark, I thought I might as well share what I've been working on.
I'll try to post as much as possible when there's various updates made to the game - however, I would rather much spend my time coding and work on the game than to write these articles.
So I guess it's time for me to go dark again - but don't be worried if there are little to no updates to the page, just remember that I'm hard at work.

So until next time, peace all.
- smashthewindow, writing this straight after he finished his AP Calc exam :D

Post comment Comments
Templarfreak
Templarfreak - - 6,721 comments

Lots of cool stuff. =D

Reply Good karma Bad karma0 votes
SIGILL
SIGILL - - 1,157 comments

Might be an intersting little game you've got there! I loved Cube and I love the somewhat more creative games such as this one, so I will be tracking this game. You better not stop developing this! ;)

Reply Good karma Bad karma+1 vote
smashthewindow Author
smashthewindow - - 20 comments

I'm almost always working on this in my spare time, so don't worry about that.
I just can't update everything I work on, or else I'll be giving away too much, but thanks for taking interest.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: