Posts mit dem Label CoffeeScript werden angezeigt. Alle Posts anzeigen
Posts mit dem Label CoffeeScript werden angezeigt. Alle Posts anzeigen

Sonntag, 5. Februar 2012

WGame documentation

Today I made some documentation. So I can get an overview again and it's easy for other programmer to use the library. I discovered that the most parts of the code are separated by model, view and controller.

One very bad class is the sprite class. This one does everything, animate, walk(including colision detection) and store data for position. That's not the right way I think. Delegates will solve this problem.

Samstag, 4. Februar 2012

WGame: Preparing for next Ludum Dare

Because I didn't finish the last Ludum Dare game I modified the code a bit so I get a game library for HTML5. This library will be called WGame and hosted on github.com.

Check it out at http://neosam.github.com/WGame/

The current features are:

  • Layers
    • Scrollable background or foregrond image
    • Sprite Layer
    • Tile layer
  • Actions and action tables to connect code and triggers/input...
  • nearly working leveleditor
  • Sequences with different layers for story mode
  • Sprite animation

All painting is done in a canvas right now. I try to impove it much more to get a handy game engine and so I will finish the next game on Ludum Dare :).

The source code is published unter the LGPL Version 3.

Samstag, 17. Dezember 2011

Day 1 nearly finished

Day 1 of Ludum Dare 22 will end soon and I think my game is far enough to get it finished. All the core programing stuff is nearly done. What do we have?

  • Tiled background which can be leaded by an image. Translation between pixel color and tile is done by a mapping table so I'm very flexible.
  • Sprites (not yet animated) can move around and have collision detecton implemented.
  • Background and foreground are repeated images which have a delay to the camera position so we have a 3d-effect
  • Keyboard input and action system is implemented so we can easily add new features.

And what are our todos?

  • Of course, there must be a really cute and stupid story. I will do this now.
  • Sprite animation.
  • Sequence function for story mode.
  • Cute and stupid paintings for character, tiles and story.
  • Sound and music :).
You can play the current version at http://dl-web.dropbox.com/u/2720564/LudumDare22/index.html

Sonntag, 4. Dezember 2011

Installing Coffeescript on Windows 7

Today I tried to install coffeescript under Windows 7 and it took hours!  I always tried to install node.js using mingw and python.  So I spent time by installing all the tools (compiler, python, git).  Then the Makefile tried to create a directory which contains an backslash but Windows doesn't like that.
Now I found out, there is a windows version for Node.js so I installed it, started cmd.exe and typed
C:\blabla> npm install -g coffee-script
and OMG, IT WORKED!!!   Hours! I spent hours and it was so easy! At least I have a bit to play with three.js to be prepared for Ludum Dare #22.