1
Fork 0
Commit graph

26 commits

Author SHA1 Message Date
36b7e0dda9 Update arrow graphics
Although this is much better than the old version, this doesn't handle
some edge cases like a very harsh diagonal.
2022-05-02 18:08:35 -04:00
a55410c122 Update some graphics
There's now a proper idle animation for units (although only the player
has one at the moment). The new tilemap size is 16x16 and everything
has been adjusted for it.
2022-05-02 16:42:55 -04:00
209f3d4d3b Transition camera to new unit when starting a new turn 2022-05-02 13:22:31 -04:00
2db1135447 Only allow unit actions if adjacent to that unit 2022-05-02 13:21:31 -04:00
e5e6fef3cc Add collision for map tiles 2022-05-01 20:02:03 -04:00
f3ad6c0ffa Add some null checks, and fix typos in comments 2022-05-01 19:44:09 -04:00
2d7024275f Add smoothed camera transitions 2022-05-01 19:37:56 -04:00
e5947d5936 Add second enemy unit 2022-05-01 19:29:49 -04:00
d4dbb83497 Log damage done to stdout 2022-05-01 19:28:31 -04:00
beeea8f92a Improve isAdjacent function
This also fixes a bug where an enemy unit might get selected multiple
times. The AI now checks if it's already adjacent to the closest unit,
to prevent it from unnecessarily moving.
2022-05-01 19:28:24 -04:00
17913b7adb Let enemies attack the closest player units 2022-05-01 19:21:02 -04:00
c8dcd1e08c Let the enemy units move to the closest player units automatically 2022-05-01 19:19:15 -04:00
9dfce4e601 Add second player unit 2022-05-01 18:28:17 -04:00
4186bfcacb Add unit actions execution
This also adds a win/lose condition, although those aren't fleshed out
yet.
2022-05-01 18:27:27 -04:00
5ab8a6c388 Add framework unit actions 2022-05-01 18:13:32 -04:00
628a06d097 Add collision points to the pathing algorithm
Currently, this is only other units.
2022-05-01 17:30:08 -04:00
5eb5e45f3f Add basic walking animation and max distance calculation
There's actual no sprite animation (yet)
2022-05-01 17:25:55 -04:00
41d1fa55ef Create a new general-purpose unit class, basic turn-ordering and arrows 2022-05-01 17:13:11 -04:00
970988a5eb Add A* pathing algorithm
I adapted the A* I had already implemented in a Realm of Chaos, now
adapted in Java and is used to calculate the player's path to their new
location.
2022-04-30 19:52:28 -04:00
44d62fb515 Add player movement with mouse 2022-04-30 19:21:47 -04:00
5e6ffed741 Draw player and make sure to center the camera around their position 2022-04-30 19:07:30 -04:00
ffd69c2ddb Add Player class 2022-04-30 19:07:18 -04:00
f9e432b0f9 Move screen classes into their own package 2022-04-30 18:57:04 -04:00
ecf601fa68 Add basic Tiled map and a tileset with just grass 2022-04-30 18:52:53 -04:00
ca5c086189 Use Game class, add a basic structure for main menu and game screens 2022-04-30 18:43:08 -04:00
243f4f7b2d Add initial files 2022-04-30 18:19:00 -04:00