Just a few notes about my thoughts and process when it comes to developing the mobile game series "Fractal". The first project I will be tackling is "Eclipse Perilous", a survival horror roguelike for mobile.

Subscribe to this blog

Subscribe

Search This Blog

Coding schmoding: Populating Levels

Apologies for not updating last week. I ran into a number of problems while trying to put items in levels. It certainly sounded simple enough, right? If there's room for something to spawn, then spawn it. Boom, done.

Of course it's more problematic than it first seemed. Long story short, last week I spent a good chunk of time trying to figure out why functions I wrote weren't spawning anything at all. I don't recall all of the problems, but it was just one thing after another. You should have seen my browser tab - it was filled with Unity reference pages.

In any case, I decided to pick it back up this week, and finally got some progress forward.

Previously, I had attempted to get item creation to fire during room creation. If I'm building the floors, walls, and doors, it should be a snap to also put stuff in them, right? Because my attempts were going nowhere in that department, I decided to simplify object creation and do it for the entire floor instead of room-by-room.

This method came with its own set of problems, specifically collision detection with previously instantiated game objects. Spawned objects simply didn't care if they appeared on top of walls and doors. For now, the fix I implemented was simple: everything that collided with a wall or door was instead moved to 0,0. With all of them there, it's possible to destroy them all in one line, or move them again, etc.

Get link

Facebook

Twitter

Pinterest

Email

Other Apps

Get link

Facebook

Twitter

Pinterest

Email

Other Apps

Comments

Post a Comment

Popular posts from this blog

When I was in high school, I had a somewhat chaotic approach to cleaning. It began when I got frustrated by a cluttered desk, and dumped everything on the floor. I put back only the things I absolutely needed, shelved a few other things, and threw away everything else. This turned into a cleaning ritual where everything was classified as "keep", "store", or "discard". The goal was to discard as much as possible while treasuring only the things I truly wanted to keep.

Over time, that habit of mine evolved into something different. It became the cornerstone of my minimalist lifestyle. I learned to judge who and what I needed to treasure, and who and what I needed to discard. But it wasn't only about surroundings - it was also about self. I always found the idea of a classical hermit living on a mountain somewhat appealing, and I made many decisions to reach a reasonable interpretation of that. The path was much rockier than anticipated.

Dusk creatures are not the only enemies the player will encounter. As with any ship or boat, it has its own type of pests such as bugs, birds, and rats. In Eclipse Perilous, the airships of the Sky Nation of Albion is beset with pests, albeit the Elemental kind.