~wolterh/dwarfbomber/main

Viewing all changes in revision 36.

  • Committer: Wolter Hellmund
  • Date: 2011-05-18 08:46:24 UTC
  • Revision ID: git-v1:ab3c6b75dd234eee9232502b09e04de3c963029a
The dwarf keeps "walking" because the move_vect is not of length 0 (the
dwarf walks up/down-wards. These will be fixed by adding the respective animations..

The dwarf's bounding box should differ from that of his sprite.
Should be in fact rectangular and much shorter than the dwarf. Should only contemplate the space he is occupying in the floor, not the projection of his volume.

There is a black strip down because the screen size does not match the map size. This is how it should be though, because there will be a HUD, and if the map is very small the empty space between the map and the window (whose size is defined as a setting, and not depending on the map size) must be filled with something.

Got rid of the spriteLoader parameter in the entities. There is a temporary method in the files that need the sprite loader which retrieves it, but this will be gone, as the entities will know only about the path of their sprite, and the Renderer will be in charge of loading the sprites for them when the map is loading. This way, the entities will not *need* to reference the engine, and tasks will be better delegated.

The FPS cockblock was disabled because as the game is in development, we need to be aware of its performance at all times.

[TODO] If two keys which trigger different animations are pressed at the same time, only the later should be obeyed.

[TODO] The dwarf should not be able to surpass the limits of the map, thus walls will be need to be added by default bordering the edges of the floor.

[TODO] The camera should follow the player. This proves necessary when the map is bigger than the screen - a possibility which should be contemplated.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: