423 Commits (main)
 

Author SHA1 Message Date
Colin McMillen e4a4754ace fix comment to match new Xbox UI 2 years ago
Colin McMillen 36a7f70fef make NPCs a pixel less thicc 2 years ago
Colin McMillen 9bd33a406a remove unused Crouching & Stretching poses 2 years ago
Colin McMillen 393e9d14b9 Player: track position with a Vector2. 2 years ago
Colin McMillen dfb80c9fde NPC: Position is now a Vector2, not a Point 2 years ago
Colin McMillen e97ff479d0 Sprite: keep track of Width and Height 2 years ago
Colin McMillen b4e644c2d4 calculate spriteCenter more rigorously 2 years ago
Colin McMillen 36a72b938f calculate NPC physics-box correctly 2 years ago
Colin McMillen f7567686b3 Debug.AddLine(): make the 4-ints version the default 2 years ago
Colin McMillen 4c2437e1ac add Debug.AddPoint() 2 years ago
Colin McMillen c08defc656 Keep Update() from advancing by very large chunks; use more double math 2 years ago
Colin McMillen 4346f20024 remove World.TileSize constant 2 years ago
Colin McMillen a4802031d5 World: load size directly from JSON. 2 years ago
Colin McMillen b85661e2c4 add support for 8x8 obstacles 2 years ago
Colin McMillen a93076419d Debug: turn functions into noops if not compiled with DEBUG. 2 years ago
Colin McMillen 3d1de388b8 remove jumpTime / jumpElapsed 2 years ago
Colin McMillen 127693e2af make Camera & NPC fields readonly 2 years ago
Colin McMillen 8f79bb8680 add a little screen-shake 2 years ago
Colin McMillen 37c679b704 move Camera into World 2 years ago
Colin McMillen 536af82beb make NPCs stop at the edge of platforms 2 years ago
Colin McMillen 275e535eac LinesOfSight: draw outlines around the vision cones. 2 years ago
Colin McMillen 06eac128c2 LinesOfSight: make vision cones red 2 years ago
Colin McMillen 437130ab55 Scene: always draw LinesOfSight 2 years ago
Colin McMillen 9504c2236c LinesOfSight: support multiple NPCs 2 years ago
Colin McMillen 473256d105 make some classes static and some fields readonly 2 years ago
Colin McMillen 8f2fec053d Pull out the "Paused" string into a file. 2 years ago
Colin McMillen 4870964cc5 attach LinesOfSight to the first NPC 2 years ago
Colin McMillen 8720896e87 make top-level classes public 2 years ago
Colin McMillen 66ce866b12 move LinesOfSight into World 2 years ago
Colin McMillen 3fc8b49636 World: move Tile to bottom of file 2 years ago
Colin McMillen bb910fbe58 World: rearrange a bunch of code to be in a more sensible order 2 years ago
Colin McMillen 36e70989af rename "tiles" to "obstacles" 2 years ago
Colin McMillen fa4784fc49 IsHarmful -> IsHazard 2 years ago
Colin McMillen 299ab41ec2 add hazards layer 2 years ago
Colin McMillen 9aa0d05eb2 add the background layer 2 years ago
Colin McMillen 983a02b364 remove old Levels file 2 years ago
Colin McMillen 5121f6d775 World: load levels by parsing a JSON level description. 2 years ago
Colin McMillen 28ef337691 make field readonly 2 years ago
Colin McMillen 0a37453dbd switch to sourcing all tiles from Grassland 2 years ago
Colin McMillen 392495a61e remove unneeded timeInState calc & redundant "string?" annotation 2 years ago
Colin McMillen 0f8d9c2814 FSM / Player / NPCs now get World as an argument to Update() 2 years ago
Colin McMillen 1b124f84df FSM now takes a type parameter so that we can use FSM with other classes. 2 years ago
Colin McMillen 08091106ea Terrain: use optional arguments for IsObstacle / IsHarmful 2 years ago
Colin McMillen b2583677bf Terrain now takes an IsHarmful param in constructor. 2 years ago
Colin McMillen f756780660 NPCs should start in "run" state. 2 years ago
Colin McMillen b574a5a702 change Sprite / Animation times to double (sec) instead of int (ms). 2 years ago
Colin McMillen 53083818c0 Add a TODO and fix a smol cleanup. 2 years ago
Colin McMillen 3c4e63ada0 Add basic FSM & use it from NPC. 2 years ago
Colin McMillen 53c6d8483f include multiple NPCs, have them turn around based on platforms. 2 years ago
Colin McMillen 5b82f4d646 handle PingPong animations 2 years ago