Large levels based on randomly generated arrays

0 favourites
  • 1 posts
From the Asset Store
Advanced inventory mechanics for your RPG game (Array-based). Take Items, split them, pick up them, read the description
  • Hello everyone,

    I've used Construct 2 few years ago, and before I buy Construct 3 I just want to know couple of things.

    Would this be possible to make in C3:

    1. Create large random array based on certain parameters, like this:

    [0,0,1,0,0,0,0,0,0,0, 0,0,0,0,1,1,0,0,1,0, 0,0,0,0,0,1,1,0,0,1, 0,1,0,0,1,0,0,0,0,0, 0,0,0,0,0,0,1,0,0,0, 0,0,1,0,0,0,0,0,1,0];

    Were 0s would represent grass tiles and 1s would represent grass tiles with trees on them(RPG style).

    2. Make a vague map out of this array. I'm guessing this part wouldn't be too difficult.

    3. When the game starts load the correct tiles with the correct items on them. As the player moves up add more tiles on top and remove the ones on the bottom that are now out of sight.

    4. If player cuts down a tree change that tile to 0 and save the array so the next time he gets there the tree won't reappear.

    5. Trees would be also randomly assembled out of one random trunk sprite and one random treetop sprite and each level would have its own formula for tree.


    That's basically it. Important question: How large can the arrays be? I want it to be easy to get lost in the wildernes, so the larger the better.

    I have some basic programming knowledge(C++, JavaScript, web dev frameworks) in case I need to use JS or JSON.

    Apologies for being overly descriptive, but i really want to get the message across and possibly save myself couple of months of precious free time. Thank you in advance and happy developing!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)