This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let getRandomPos(maxX:int32, maxY:int32, getRandom): WorldPos = | |
let x = getRandom maxX | |
let y = getRandom maxY | |
newPos x y | |
let buildItemsArray (maxX:int32, maxY:int32, getRandom): Actor array = | |
[| { Pos = getRandomPos(maxX, maxY, getRandom); ActorKind = Squirrel false } | |
{ Pos = getRandomPos(maxX, maxY, getRandom); ActorKind = Tree } | |
{ Pos = getRandomPos(maxX, maxY, getRandom); ActorKind = Doggo } | |
{ Pos = getRandomPos(maxX, maxY, getRandom); ActorKind = Acorn } | |
{ Pos = getRandomPos(maxX, maxY, getRandom); ActorKind = Rabbit } | |
|] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment