423 Commits (main)
 

Author SHA1 Message Date
Colin McMillen e4a4754ace fix comment to match new Xbox UI 4 years ago
Colin McMillen 36a7f70fef make NPCs a pixel less thicc 4 years ago
Colin McMillen 9bd33a406a remove unused Crouching & Stretching poses 4 years ago
Colin McMillen 393e9d14b9 Player: track position with a Vector2. 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 f7567686b3 Debug.AddLine(): make the 4-ints version the default 4 years ago
Colin McMillen 4c2437e1ac add Debug.AddPoint() 4 years ago
Colin McMillen c08defc656 Keep Update() from advancing by very large chunks; use more double math 4 years ago
Colin McMillen 4346f20024 remove World.TileSize constant 4 years ago
Colin McMillen a4802031d5 World: load size directly from JSON. 4 years ago
Colin McMillen b85661e2c4 add support for 8x8 obstacles 4 years ago
Colin McMillen a93076419d Debug: turn functions into noops if not compiled with DEBUG. 4 years ago
Colin McMillen 3d1de388b8 remove jumpTime / jumpElapsed 4 years ago
Colin McMillen 127693e2af make Camera & NPC fields readonly 4 years ago
Colin McMillen 8f79bb8680 add a little screen-shake 4 years ago
Colin McMillen 37c679b704 move Camera into World 4 years ago
Colin McMillen 536af82beb make NPCs stop at the edge of platforms 4 years ago
Colin McMillen 275e535eac LinesOfSight: draw outlines around the vision cones. 4 years ago
Colin McMillen 06eac128c2 LinesOfSight: make vision cones red 4 years ago
Colin McMillen 437130ab55 Scene: always draw LinesOfSight 4 years ago
Colin McMillen 9504c2236c LinesOfSight: support multiple NPCs 4 years ago
Colin McMillen 473256d105 make some classes static and some fields readonly 4 years ago
Colin McMillen 8f2fec053d Pull out the "Paused" string into a file. 4 years ago
Colin McMillen 4870964cc5 attach LinesOfSight to the first NPC 4 years ago
Colin McMillen 8720896e87 make top-level classes public 4 years ago
Colin McMillen 66ce866b12 move LinesOfSight into World 4 years ago
Colin McMillen 3fc8b49636 World: move Tile to bottom of file 4 years ago
Colin McMillen bb910fbe58 World: rearrange a bunch of code to be in a more sensible order 4 years ago
Colin McMillen 36e70989af rename "tiles" to "obstacles" 4 years ago
Colin McMillen fa4784fc49 IsHarmful -> IsHazard 4 years ago
Colin McMillen 299ab41ec2 add hazards layer 4 years ago
Colin McMillen 9aa0d05eb2 add the background layer 4 years ago
Colin McMillen 983a02b364 remove old Levels file 4 years ago
Colin McMillen 5121f6d775 World: load levels by parsing a JSON level description. 4 years ago
Colin McMillen 28ef337691 make field readonly 4 years ago
Colin McMillen 0a37453dbd switch to sourcing all tiles from Grassland 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 08091106ea Terrain: use optional arguments for IsObstacle / IsHarmful 4 years ago
Colin McMillen b2583677bf Terrain now takes an IsHarmful param in constructor. 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 53083818c0 Add a TODO and fix a smol cleanup. 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 5b82f4d646 handle PingPong animations 4 years ago