Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
svn-id: r54385
|
|
svn-id: r46320
|
|
without it (at least with Symbian OS GCCE 3.4.3 and CW 2)
svn-id: r46213
|
|
It was caused by forever re-starting the same sample when the animation was
stopped and the same frame got displayed over and over, each time triggering
playing the same sample.
svn-id: r46168
|
|
not enough)
svn-id: r46101
|
|
svn-id: r45826
|
|
svn-id: r45768
|
|
Adjusting to the edge is done such that it respects slight sideways movements of the dragon.
Fixed rounding issues in the whole game. Improved debug messages. Made sure that the dragon
does not turn like crazy around when clicking on the same pixel: the final point is always the
clicked one although the middle points made by shifted to make the animations smooth, and
preserve the dragons direction if he has not walked.
There is a bug with running turning animations as they seem to disappear for 1 frame and have
incorrect Z coordinate. Will investigate it next.
svn-id: r45742
|
|
The Sprite class points to the original buffer (which is cached in the memory
thanks to BArchive machinery) instead of allocating its own buffer and
copying the source there.
svn-id: r45594
|
|
svn-id: r45524
|
|
Also, add comments to the last commit.
svn-id: r45511
|
|
Also, fix a bug when loading the default walking map (wasn't implemented)
and setting font size. The reason I move this code into a new module is
because I will augment it with other walking-related algorithms soon.
svn-id: r45510
|
|
svn-id: r44493
|
|
- Remove use of tabs for formatting, now in nearly all cases tabs are only used for indentation
- Use "uint" instead of "unsigned int" in the whole engine for consistency's sake
- Strip some trailing tabs and leading whitespaces
svn-id: r44478
|
|
I left draw() as is for now, although it could also be similarly simplified.
Also, one could easily completely get rid of columnIndices[], but I was too
tired for the time being.
svn-id: r44457
|
|
coordinates and scaling.
It is no longer needed to modify the underlying animations when drawing them
on the screen or testing pixels in them. Read access is enough, because
the displacement of the object is passed as a parameter.
Added some more const's where they logically belong.
svn-id: r44419
|
|
svn-id: r44362
|
|
where lround() is used
svn-id: r44337
|
|
svn-id: r44331
|
|
non-C99 compilers (e.g. VS)
svn-id: r44328
|
|
svn-id: r43159
|
|
when setting a new string. Implemented Text::getLength().
svn-id: r42990
|
|
or scaled)
* Made the Text class internally store a Common::String instead of a byte *
svn-id: r42835
|
|
Drawable's private members protected so they can access them
* Added Text::drawScaled() and altered Text::getRect() so Text instances can be accessed through a Drawable pointer. Scaling text is planned for later because it's not essential.
svn-id: r42789
|
|
(use methods of Common::Rect instead of doing it manually).
svn-id: r42779
|
|
animation to be played correctly.
svn-id: r42649
|
|
* Now each Sprite (and hence frame in an animation) can have a separate zoom (which is needed for some animations in the game)
* Scale factors are not stored any more; instead, we only store scaled dimensions (since these are stored in the data files) and calculate the factors from those.
svn-id: r42647
|
|
* Made the dragon scale when it is in different parts of the room
* Added getters for relative coordinates (Animation::getRelativeX() and Animation::getRelativeY())
* Commented Game::loop() and Sprite::draw*() methods in more detail
svn-id: r42627
|
|
animation can have a different delay.
svn-id: r42427
|
|
removed leading underscore.
svn-id: r42227
|
|
svn-id: r42192
|
|
playing animations as soon as they're loaded from Game::loadAnimation().
svn-id: r42111
|
|
* Made columnwise parameter mandatory
* Made Sprite coordinates signed (the engine sometimes uses negative coordinates)
* Prevented overflow when drawing sprites in some cases
svn-id: r42100
|
|
svn-id: r42074
|
|
svn-id: r42067
|
|
whether to mark a dirty rect for a particular draw (also added such support to the Font class since it's needed by Text). Made spacing parameters for Text instances mandatory.
svn-id: r42066
|
|
svn-id: r41999
|
|
svn-id: r41998
|
|
Sprite and Class. Made transforming from columnwise a default (since it was done most of the time anyway). Changed coordinates to use uint instead of uint16.
svn-id: r41996
|
|
to use them.
svn-id: r41984
|
|
svn-id: r41982
|
|
svn-id: r41981
|
|
svn-id: r41979
|
|
constructors to use it.
svn-id: r41865
|
|
* Added Surface and Screen docs
* Small documentation fixes
svn-id: r41779
|
|
svn-id: r41654
|
|
svn-id: r41525
|