Skip to main content

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.

Comments

Popular posts from this blog

A Bit Overdue

Shit.

Sorry about that. I really meant to post last weekend, but, you know, things.

I've been contemplating which of the three I want to start writing out first, because no way would I be able to write them all simultaneously. Which would actually be amazing in terms of laying down themes on a parallel basis. It sounds fun...

But also insane.

I'm not up to the challenge. Not yet anyway.

Anyway, I figured I'd start with the middle one - O.N.I. No, it's not about my name; that's just happy coincidence. It refers to the Oni - devils from Japanese folklore. I've been envisioning that company as having made a proverbial deal with the devil to be able to travel across dimensions. Which of course we'll get to later. For now, I want to chat about the opening.

From a technical standpoint, I'm thinking of opening each of them in a similar way and trying to give an incredibly crucial first choice that also foreshadows the fate of the whole journey. Which hasn'…

Happy Belated New Year Yadda Yadda Yadda

The holidays have come and gone, finally. Was super busy just getting things in order, so I wasn't able to do much for Fractal. But I was thinking about its structure, and I put some of the bones  for the intro down. Also, I discovered Inform 7 halfway through December, so I had to check that out for a bit.

ONI Intro. Alright, so I got a bit of time to work on this. Just a couple hours, so there isn't a lot. And there's probably a ton of typos and errors and whatnot. Foreshadowing on every page, so keep an eye out for stuff changing in the big picture perspective. Definitely message me if you find errors so I can correct 'em. Thanks in advance!

Note to self: pencil in an hour a day for Fractal on the calendar.

But yeah, I wanted to keep this intro much more personal, and a lot less active than Dawn of Aquilas' intro. I don't want the pacing to be constrained by a physically intense opening, and would rather build to it. And besides, opening with the heart is a b…

First post?

Alright. So just got this thing set up, figured I'd type some stuff in here to make it not quite so empty. I haven't had a blog in a while, and I used to spend a couple of hours building each post: figuring out its theme and topics, structuring it, doing a whole mess of editing, and so on and so forth. It was time-consuming to say in the least, and it got tiring quite quickly.

This go-around I think I'll just throw spaghetti at the wall, not caring if anything sticks. Not that I don't enjoy making good posts, just that I'd rather concentrate on actually writing IF stories rather than "proper" blog content.

So expect a crapton of grammatical errors and typos.

Aaaaanyway... So this IF series actually was born because of my defunct actual-play podcast called Penumbra Extinction. I was writing three IF novels to supplement Penumbra, with each one providing some backstory to each of the three main dimensions my players were going to visit.

You can even read my…