Commit Graph

15 Commits

Author SHA1 Message Date
Chris Cromer ba5bb7b090 Implement singleton for player and portal
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-11-12 14:04:48 -03:00
Chris Cromer 4067055af4 Switch to a concurrent matrix for the cells
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 18:04:08 -03:00
Chris Cromer 7744b5ae6d Fix missing javadoc tags
Make enemy AI a little bit slower

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-21 14:52:47 -03:00
Chris Cromer cbcb6d0d01 Implement A* Search
Many changes to improve AI usage

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-17 12:27:17 -03:00
Chris Cromer 5b8e36876c Don't deactivate the portal if a gem wasn't purified
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-14 09:26:14 -03:00
Chris Cromer 8ed02cf2ac Don't draw the gem in the status section until the animation is finished
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-13 21:22:43 -03:00
Chris Cromer 00c54e5e15 Update gradle build file to ignore false positive warnings
Move shared functionality into the SearchAI class
Move shared functionality into the Object class
Add new state enum types
Implement enemy AI
Make player get the gem right away
Fix keyListener still listening after winning or game over
Reduce obstacles to 5%
Make sure all objectives can be reached by player
Make sure all enemies can reach player

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-13 21:10:16 -03:00
Chris Cromer 000a5e1fde Cleanup code
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 14:08:22 -03:00
Chris Cromer f7adc8551e Remove spanish class names
Implement restart
Make sure all objectives are reachable
Optimize code

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-10 23:06:16 -03:00
Chris Cromer 9f6d6853ad Add LICENSE and README files to the distributions
Add WASD key usage to game

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-10 16:14:38 -03:00
Chris Cromer a0c23e8cf3 Improve intelligence
Rename main class
Dynamic gson version
Improve build time
Remove panels
Improve random generation of objects so that all objectives are obtainable
Add door, gem, and portal sounds

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-10 15:33:03 -03:00
Chris Cromer e6624b527d AI optimization
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-09 17:14:16 -03:00
Chris Cromer 58a29acf10 Add Breadth-First Search AI
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-07 21:45:39 -03:00
Chris Cromer e39f52d041 Add gems and new end game spot
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-05 23:41:14 -03:00
Chris Cromer 7d48b1ccb5 Change over to gradle build system
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-03 20:16:37 -03:00