XaviDCR92
efc7020def
* Increased MAX_SELECTION_DISTANCE, but this should be done according to BaseUnit instead!
...
+ BaseUnit now takes a pointer to a Camera object.
+ Implemented Unit basic movement.
+ Initial stub for Coordinates class, meant to replace all manual X/Y coordinates handling between classes.
2018-08-05 18:06:49 +02:00
XaviDCR92
6ecb59761a
+ Added callback for button B released.
...
+ Implemented unit selection cancelation.
2018-08-05 18:03:30 +02:00
XaviDCR92
37070c559d
* Cursor: fixed invalid returned position when cursor was pointing to anything over X or Y screen resolution/2.
2018-08-05 18:02:42 +02:00
XaviDCR92
4efe5ad6f9
* Sprite data width and height is now extracted from Sprite class.
2018-08-05 17:58:03 +02:00
XaviDCR92
c501d0e4e7
+ Started unit selection implementation. Not finished yet.
2018-08-02 00:54:01 +02:00
XaviDCR92
c3a69de5c2
+ BaseUnit.cpp, BaseUnit.h: added simple member functions for extracting BaseUnit protected data.
...
+ HumanPlayer.cpp: started implementing unit selection. Still TODO.
2018-07-26 21:22:28 +02:00
XaviDCR92
bfdc0b9f49
* Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new 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.
2018-07-26 21:15:59 +02:00
XaviDCR92
853c6cddaa
don't know
2018-07-13 18:24:17 +02:00
XaviDCR92
20936e9302
Camera is now an independent instance, and HumanPlayer only holds a reference to it.
2018-07-10 23:17:34 +02:00
XaviDCR92
14c12aeea3
More work on Unit/BaseUnit concepts.
2018-07-10 00:04:16 +02:00
XaviDCR92
188d74cb78
Unit renamed to BaseUnit.
2018-07-09 23:20:46 +02:00
XaviDCR92
8ed9a3a57a
Fixed "includes/defines/local variables" headers.
2018-07-09 22:33:29 +02:00
XaviDCR92
cd78b97bce
Calls to HumanPlayer and Camera button pressed event handlers are now automatically handled by two const arrays of member functions pointers.
2018-07-09 22:22:26 +02:00
XaviDCR92
f0b654b9bf
Game has been restructured in favor of OOP
2018-07-09 19:26:13 +02:00
XaviDCR92
d854647815
Kinda improved pathfinding algorithm. Still some work TODO.
...
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.
2017-11-10 00:04:35 +01:00
XaviDCR92
7b05778e3e
*Removed decceleration for camera.
...
Improved pathfinding when a unit collides with another unit.
Added generic function to find distances.
Other minor changes.
2017-11-05 19:08:38 +01:00
XaviDCR92
2d04eba931
Deprecated use of sprintf() in favor of custom routine Systemitoa().
...
When B button is released and showActionsMenu == true, showActionsMenu = false.
2017-11-05 18:00:57 +01:00
XaviDCR92
8fba2176bc
* Modified shadows for Town centre.
...
* Bugfixes in unit movement and collision detection. Now it should work fine.
* Added include guards to all *.i files.
* Other minor changes
2017-11-05 05:38:31 +01:00
XaviDCR92
2cf2d608af
+ Added copy of BitmapEncoder
...
+ New sprite and unit "Town center"
* Provisional collision checking.
* Many other modifications.
2017-11-05 04:16:32 +01:00
XaviDCR92
b764612a79
Renamed *Spr.c files to *Spr.inc. Adjusted dependencies for subMakes.
2017-09-09 12:57:49 +02:00
XaviDCR92
2232c21f36
Test
2017-09-09 12:49:19 +02:00
XaviDCR92
a7dd978196
Simple collision detection between units added. libgamebuino was always updating header files, so targets were always being rebuilt.
2017-09-09 12:47:17 +02:00
XaviDCR92
786dccd2bc
Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO
2017-09-08 18:39:22 +02:00
XaviDCR92
72d350a37a
* TYPE_BUILDING_ID and TYPE_UNIT_ID partially implemented
2017-08-26 17:55:06 +02:00
XaviDCR92
4ca8c2d15b
+ Added Makefiles for dependencies
2017-08-26 17:54:03 +02:00
XaviDCR92
845c7cba1d
-Deleted *.elf
2017-08-26 17:20:54 +02:00
XaviDCR92
8151d005e3
*Makefile MMCU was not set for linking (text overflow occurred)
2017-08-26 17:20:15 +02:00
XaviDCR92
32ce459181
*Makefile MMCU was not set for linking (text overflow occurred)
2017-08-26 17:19:04 +02:00
XaviDCR92
e944ccbfc5
Merge branch 'master' of https://github.com/XaviDCR92/PocketEmpires
2017-08-26 11:18:11 +02:00
XaviDCR92
35937cb697
+ Added Makefile configuration file for all projects.\n*Updated Makefile for project
2017-08-26 11:15:45 +02:00
XaviDCR92
54ea724c5d
+ Added MouseSpr and Unit modules.
...
* Unit actions, building actions.
2017-08-26 11:13:20 +02:00
XaviDCR92
6628e7de58
* Player can now select nearest unit or building. Multiple buildings and 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.
2017-03-12 21:09:29 +01:00
XaviDCR92
f416816883
* Nearest unit and/or building is found (no sqrt method used).
...
* Preliminar unit/building selection algorithm.
* Added cursor onscreen.
- Removed old Peasant sprites. Only 2 sprites needed!
2017-03-09 23:59:53 +01:00
XaviDCR92
8ec41b4410
+ Initial commit. Added source, sprites and final executable.
2017-03-07 20:57:09 +01:00