summaryrefslogtreecommitdiff
path: root/Player.cpp
Commit message (Collapse)AuthorAgeFilesLines
* * Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new ↵XaviDCR922018-07-261-0/+25
| | | | | | | | | | | | | function called MainMenuSinglePlayer(). + BaseUnit.cpp, BaseUnit.h: new _selected flag. + Camera.cpp, Camera.h: linear movement has been taken over quadratic movement. Also, cursor now moves if dealing with screen borders. + Cursor.cpp, Cursor.h: new Cursor class holds cursor X/Y information. It is meant to be contained inside a HumanPlayer object. * Game.cpp: minor changes in casts and comments. + HumanPlayer.cpp: added callbacks for button release events. * HumanPlayer.cpp, HumanPlayerBtn.cpp: button handling has been transferred from HumanPlayer.cpp to HumanPlayerBtn.cpp in order to improve modularity. + Sprite.cpp: sprite data was not being checked against NULL. - Unit.cpp: drawHandler() is now executed by Player object.
* More work on Unit/BaseUnit concepts.XaviDCR922018-07-101-1/+10
|
* Fixed "includes/defines/local variables" headers.XaviDCR922018-07-091-15/+23
|
* Game has been restructured in favor of OOPXaviDCR922018-07-091-742/+19
|
* Kinda improved pathfinding algorithm. Still some work TODO.XaviDCR922017-11-101-65/+108
| | | | | | | Fixed some errors in DEBUG_VAR macro. Shadows are now drawn before any other object. Different strings are now shown depending on the number of selected units. Some work on calculating actions mask when different types of units are selected. Still some work TODO.
* *Removed decceleration for camera.XaviDCR922017-11-051-56/+102
| | | | | | Improved pathfinding when a unit collides with another unit. Added generic function to find distances. Other minor changes.
* Deprecated use of sprintf() in favor of custom routine Systemitoa().XaviDCR922017-11-051-50/+96
| | | | When B button is released and showActionsMenu == true, showActionsMenu = false.
* * Modified shadows for Town centre.XaviDCR922017-11-051-25/+57
| | | | | | * Bugfixes in unit movement and collision detection. Now it should work fine. * Added include guards to all *.i files. * Other minor changes
* + Added copy of BitmapEncoderXaviDCR922017-11-051-19/+28
| | | | | | + New sprite and unit "Town center" * Provisional collision checking. * Many other modifications.
* Simple collision detection between units added. libgamebuino was always ↵XaviDCR922017-09-091-29/+55
| | | | updating header files, so targets were always being rebuilt.
* Removed Building and GameStructures modules. Restructured SW for Unit and ↵XaviDCR922017-09-081-361/+396
| | | | Player, still a lot TODO
* + Added Makefiles for dependenciesXaviDCR922017-08-261-1/+1
|
* + Added MouseSpr and Unit modules.XaviDCR922017-08-261-19/+99
| | | | * Unit actions, building actions.
* * Player can now select nearest unit or building. Multiple buildings and ↵XaviDCR922017-03-121-3/+107
| | | | | | | units can be selected at the same time. * Unit module moved from C++ to C (only extension change - and compiler - was needed). * GfxGetHeightFromSpriteData and GfxGetWidthFromSpriteData were getting incorrect data! Incorrect memory address was being read when calling pgm_read_byte, and caused unexpected behaviour under real hw.
* * Nearest unit and/or building is found (no sqrt method used).XaviDCR922017-03-091-20/+169
| | | | | | * Preliminar unit/building selection algorithm. * Added cursor onscreen. - Removed old Peasant sprites. Only 2 sprites needed!
* + Initial commit. Added source, sprites and final executable.XaviDCR922017-03-071-0/+192