Commit Graph

12 Commits

Author SHA1 Message Date
Chris Cromer 6c2665b1c5 Reimplement singleton classes and update copyrights
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-26 19:12:21 -03:00
Chris Cromer 21f54beca5 Fix restart bug caused by unique instances of player and portal objects
Signed-off-by: Chris Cromer <chris@cromer.cl>
2020-02-25 14:05:33 -03:00
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 38bf713562 Remove sort destinations from AI class
Change enemy to 600ms sleep
Change chest number back to 2
Turn lock back on for enemies

Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 20:23:31 -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 8c627bda8c Make the AI more robust
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-26 17:35:11 -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 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 81432f3243 Optimize imports
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 12:54:42 -03:00
Chris Cromer 804ab0acef Separate the algorithm from the game
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 12:32:55 -03:00
Chris Cromer 0d2d95f216 Change json cell class name
Signed-off-by: Chris Cromer <chris@cromer.cl>
2019-10-11 11:20:20 -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