Log In  


Cart #15276 | 2015-10-11 | Code ▽ | Embed ▽ | No License
25

just a quick topdown experiment. might be fun to try making an actual game out of it?
arrow keys to move around.

25


Wow, that's pretty awesome. 91 loc, only 429 tokens and very fast rendering. I'll try to make a little guy walking and jumping through this labyrinths :)


thanks! yeah to add a character I think you'd have to sort the tiles along with the game objects, by distance from the center of the screen. Right now it just renders tiles in-order, so it'd be hard to "insert" game objects into it.


So cool!

You could make Grand Theft Auto (like the original 2D game) using this.


Smash TV, anybody?
Two ways to control:

  1. One Button shoots in walking direction, another locks the shot.
  2. Same as above, except the Second button could shoot in the reverse direction.

wow! very nice work!


havent looked at the code but is this basicly like parallaxing?

i do see some odd glitches


I saw CPU spikes at 72%, I'm guessing because you're drawing a bunch of rectangles to approximate the more complex dark blue shapes? It might be worth trying a flood fill method instead, my limited experience with it in a shape library prototype kept CPU fairly low, and it would give cleaner line-based edges. This is looking pretty cool, though!


yeah I'd love to find ways to speed it up. Part of it is definitely due to drawing lots of rectangles for the "sides", but I wasn't sure how to do that any faster. Floodfill might be good but I'm uncertain whether that'd actually be faster or not. in general finding ways to only render "once" would probably help. Right now there's a ton of overlap.

@adekto, yeah it's basically just simple parallaxing. I get those odd glitches too. not totally sure why it's 1 pixel like that since its only rectangles being drawn - no lines/pixels.


The question is: Do you want less CPU usage or less tokens? xD


Oioi! Very cool.


Totally waiting for this engine to cross paths with the roguelikes showing up lately. ;)


Really cool please make a game out of this


An idea, maybe we can have a character run around in this 3D world and the camera for say stays ontop of the character. I don't know, just a suggestion...


After this, imagine how good it'll look with textures and a little character running through! Also, I noticed how the walls are made up of thin layers. Is this intentional to make the game run smoother? (Also great job!)



[Please log in to post a comment]