Commit Graph

22 Commits

Author SHA1 Message Date
987c86fae9 mv World & Scene to SneakWorld & SneakScene. 2020-07-15 15:17:19 -04:00
c28f21eef5 Player: partial refactor to use FSM for player state-tracking. 2020-03-25 17:04:58 -04:00
ec8c24e5b6 FSM: deal with IStates directly, don't parametrize on an input type. 2020-03-25 15:16:31 -04:00
36a7f70fef make NPCs a pixel less thicc 2020-03-16 14:56:32 -04:00
dfb80c9fde NPC: Position is now a Vector2, not a Point 2020-03-11 15:07:00 -04:00
e97ff479d0 Sprite: keep track of Width and Height 2020-03-11 14:42:10 -04:00
b4e644c2d4 calculate spriteCenter more rigorously 2020-03-11 14:19:27 -04:00
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