Hello World !
I will be using CoffeeScript and if I am inspired by the theme, I will put something at
I will be using CoffeeScript and if I am inspired by the theme, I will put something at
Same tools as last time, ie CoffeeScript. Likely not to be bothered with sound nor music.
Subject to lots of ifs, game concept will be “playable” at
Plenty of fun to all !
pht59x
The first one is Teeny Tiny Little Ball
http://ludumdare.com/compo/ludum-dare-31/?action=preview&uid=45480
The other one is Greeny GRUB (mine)
http://ludumdare.com/compo/ludum-dare-31/?action=preview&uid=36239
Those are somewhat minimalistic games. I like them both.
Greeny GRUB comes now with music for a soother game experience!
Get hooked on Greeny GRUB now…
1) At what level did you die?
2) Do you think one day you might need medical help
to get you off Greeny GRUB before it eats up your whole life?
It only relies on the HTML5 API and does not require graphics assets.

Might Greeny GRUB be the shortest entry in this JAM?
What about yours?
WTF with the weird controls in Greeny GRUB? Here is some explaining. Keep reading if you know a little bit about CoffeeScript, Python or C-like syntax:
# Cursor-keys handling
document.onkeydown = (event) ->
__deltaVelocity = 80 # in pixels per second
__switch event.keyCode
____when KEY_UP then player.adjustVy(-deltaVelocity)
____when KEY_LEFT then player.adjustVx(-deltaVelocity)
____when KEY_DOWN then player.adjustVy(deltaVelocity)
____when KEY_RIGHT then player.adjustVx(deltaVelocity)
where deltaVelocity will be used by:
class Player
__constructor: (@x,@y,@vX,@vY) ->
__adjustVx: (deltaVx) ->
____if Math.abs(@vX)<100 or (deltaVx>0 and @vX<0) or (deltaVx<0 and @vX>0)
______@vX+=deltaVx
__adjustVy: (deltaVy) ->
____if Math.abs(@vY)<100 or (deltaVy>0 and @vY<0) or (deltaVy<0 and @vY>0)
______@vY+=deltaVy
__update: (fps)->
____@x+=@vX/fps
____@y+=@vY/fps
The weird behaviour comes from the fact that there is no damping on the velocity once it has been passed to the player’s methods and that I do not handle onkeyup events.
Timeline
What went right
What did not go so well
If I had to do it again
Thank you to
