You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

8h 43m 8s logged

Devlog #2

Hello again!
Its’s almost been a week since my last devlog, and I’ve added a few new things since then

Custom Levels

I now have the ability to declare custom levels, which I hope will make prototyping levels later on much easier.
After launch, the game reads a levels.json file which contains the block layout in this format:

{
    "1": {
        "title": "level 1",
            "blockGrid": [
                ["1","1","1"]
                ["1","1","1"]
                ["1","1","1"]
                ]
        }
}

This example would produce a 3 × 3 grid of blocks.
The game just iterates through the arrays in the blockGrid array and instantiates a block when the value is 1 and does nothing when the value is 0.
This is definitely not the best way of defining custom levels, since it’s kind of hard to visualize and can be a pain to modify, so I’ll definitely have to revisit this later
Also, I can’t define more than one level at the moment 🥲

Other New Features

  • Made the player able to dash by pressing shift while moving
  • Added lives to the player
  • Added a header that shows the remaining amount of blocks, the current score and the remaining lives
  • Added a trail to the ball
    Like before, here’s a short video showcasing the game. I promise I’ll have a demo ready the next devlog.
0
2

Comments 0

No comments yet. Be the first!