ld31-space-diggers/src/tools.coffee
2014-12-06 22:07:47 +01:00

6 lines
147 B
CoffeeScript

getRandomInt = (min, max) ->
Math.floor(Math.random() * (max - min + 1)) + min;
allResourceTypes = ->
(k for own k of app.game.resources)