Level Editor


Last post I've listed 3 most important goals for next step, the background story would probably take me a while since I like it to be deep and thoughtful. The appearance(like art style) would highly depend on the story so I'll do it later. The level design is more tech related part which I can do while creating the story. 

To make things easier, I need to have a level editor.

In this game, each level has 2 main part: those blocks and the big base cube.  If I want to click to highlight the position, it's probably better to have the base cube side surface to break into small pieces. So I made the big base out of lots block-sized cube. Also I'd like to see through the base cube and check what blocks I have at different sides. Well, just change the alpha value then.


This was what I got. Doesn't really look right even I can still see the part I marked(The black cubes). So I changed the cube to Quad(Which is much less expensive compare to Plane I think). Then I got this:


Looks clear and nice. Now I just change the colour on the clicked Quad to present the path I'm going to make. But I got another problem: I can't see the mark from other sides, even though I can still see the blocks. This is where I found that the biggest difference between Quad and Plane other than the numbers of vertices and triangles: Quad is unidirectional, which means we can only see it from one side. It could be used for some good effect I suppose, but it's a trouble for me here. So I have to add another 180-rotated copy of each Quad. Now it looks pretty cool.


Next is to add some blocks on wherever I want to. To place a block on somewhere I clicked, there needs to have objects to respond my clicking. If I'm putting blocks on outside of the quads that I clicked, how about the edges? So I have to add some more quads on the edges and It's quite annoying because I can't think of any good short-and-reusable code to achieve that.



Anyway, this is what I end up with.


While I'm still thinking of the story, I guess I could think of some elements that I can use for the game. 

Btw, the new name "Pursuit" is some kind of taste of my story, I don't have it clear yet though.

Get Pursuit

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.