ld31-space-diggers/src/tools.coffee

6 lines
147 B
CoffeeScript
Raw Normal View History

2014-12-06 12:57:25 +01:00
getRandomInt = (min, max) ->
2014-12-06 22:07:28 +01:00
Math.floor(Math.random() * (max - min + 1)) + min;
allResourceTypes = ->
(k for own k of app.game.resources)