Commit Graph

15 Commits

Author SHA1 Message Date
36a72b938f calculate NPC physics-box correctly 2020-03-11 13:56:33 -04:00
127693e2af make Camera & NPC fields readonly 2020-03-10 15:06:25 -04:00
536af82beb make NPCs stop at the edge of platforms 2020-03-10 10:09:55 -04:00
4870964cc5 attach LinesOfSight to the first NPC 2020-03-09 12:41:07 -04:00
5121f6d775 World: load levels by parsing a JSON level description. 2020-03-08 17:23:51 -04:00
392495a61e remove unneeded timeInState calc & redundant "string?" annotation 2020-03-06 14:20:17 -05:00
0f8d9c2814 FSM / Player / NPCs now get World as an argument to Update() 2020-03-06 12:28:58 -05:00
1b124f84df FSM now takes a type parameter so that we can use FSM with other classes. 2020-03-06 12:16:33 -05:00
f756780660 NPCs should start in "run" state. 2020-03-06 11:44:19 -05:00
b574a5a702 change Sprite / Animation times to double (sec) instead of int (ms). 2020-03-05 21:12:11 -05:00
3c4e63ada0 Add basic FSM & use it from NPC. 2020-03-05 17:39:17 -05:00
53c6d8483f include multiple NPCs, have them turn around based on platforms. 2020-03-05 16:17:57 -05:00
9672fabcfd Add Sprite class & load sprite metadata from JSON. 2020-03-03 17:14:05 -05:00
d270efe643 move Player into World 2020-03-03 13:04:29 -05:00
02b1dd4874 Add simple NPC.
GitOrigin-RevId: 47cd7abaf80d7ced14d0b4b92390c8c0edddae1c
2020-02-28 17:13:52 -05:00