Discord
Login
Community
DARK THEME

Animation and tree procedural generation

Tree Procedural Generation - in my last post i asked for help with the procedural generated map, and that's a wonderful code by @Loginus, and thanks for that, but, i wanna know how can i spawn some trees, i tried to do it from my own but doesn't worked, so plis help me.

Animations - I tried to make a code to a animation of 4-directional movement and doens't worked, so plis help me.

Link Of My Game: https://microstudio.io/i/warrior/rnxfarm/

and @Loginus tha easy and fast procedural generation code is so good then i can't explain, now i know the logical behind it, thank you too much

  for w = 0 to map.width - 1
    for h = 0 to map.height -1
      if random.nextInt(10) == 0 then
        map.set(w,h, tree[ random.nextInt(2) ])
      else
        map.set(w,h, name[ random.nextInt(4) ])  
      end
    end
  end

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community