23 Commits (main)

Author SHA1 Message Date
Colin McMillen 92ace31d90 add Vectors class and use Vectors.Round() & Vectors.Floor(). 3 years ago
Colin McMillen 987c86fae9 mv World & Scene to SneakWorld & SneakScene. 4 years ago
Colin McMillen c28f21eef5 Player: partial refactor to use FSM for player state-tracking. 4 years ago
Colin McMillen ec8c24e5b6 FSM: deal with IStates directly, don't parametrize on an input type. 4 years ago
Colin McMillen 36a7f70fef make NPCs a pixel less thicc 4 years ago
Colin McMillen dfb80c9fde NPC: Position is now a Vector2, not a Point 4 years ago
Colin McMillen e97ff479d0 Sprite: keep track of Width and Height 4 years ago
Colin McMillen b4e644c2d4 calculate spriteCenter more rigorously 4 years ago
Colin McMillen 36a72b938f calculate NPC physics-box correctly 4 years ago
Colin McMillen 127693e2af make Camera & NPC fields readonly 4 years ago
Colin McMillen 536af82beb make NPCs stop at the edge of platforms 4 years ago
Colin McMillen 4870964cc5 attach LinesOfSight to the first NPC 4 years ago
Colin McMillen 5121f6d775 World: load levels by parsing a JSON level description. 4 years ago
Colin McMillen 392495a61e remove unneeded timeInState calc & redundant "string?" annotation 4 years ago
Colin McMillen 0f8d9c2814 FSM / Player / NPCs now get World as an argument to Update() 4 years ago
Colin McMillen 1b124f84df FSM now takes a type parameter so that we can use FSM with other classes. 4 years ago
Colin McMillen f756780660 NPCs should start in "run" state. 4 years ago
Colin McMillen b574a5a702 change Sprite / Animation times to double (sec) instead of int (ms). 4 years ago
Colin McMillen 3c4e63ada0 Add basic FSM & use it from NPC. 4 years ago
Colin McMillen 53c6d8483f include multiple NPCs, have them turn around based on platforms. 4 years ago
Colin McMillen 9672fabcfd Add Sprite class & load sprite metadata from JSON. 4 years ago
Colin McMillen d270efe643 move Player into World 4 years ago
Colin McMillen 02b1dd4874 Add simple NPC. 4 years ago