59 Commits (3d1de388b8a14d49cf2c5fbb203ed9107e61f417)

Author SHA1 Message Date
Colin McMillen 3d1de388b8 remove jumpTime / jumpElapsed 4 years ago
Colin McMillen 8f79bb8680 add a little screen-shake 4 years ago
Colin McMillen 4870964cc5 attach LinesOfSight to the first NPC 4 years ago
Colin McMillen fa4784fc49 IsHarmful -> IsHazard 4 years ago
Colin McMillen 5121f6d775 World: load levels by parsing a JSON level description. 4 years ago
Colin McMillen 0f8d9c2814 FSM / Player / NPCs now get World as an argument to Update() 4 years ago
Colin McMillen b574a5a702 change Sprite / Animation times to double (sec) instead of int (ms). 4 years ago
Colin McMillen 53c6d8483f include multiple NPCs, have them turn around based on platforms. 4 years ago
Colin McMillen 0b8eb3e3f1 Player: start using Sprite data to calculate texture source / animations. 4 years ago
Colin McMillen 02b1dd4874 Add simple NPC. 4 years ago
Colin McMillen de8ca4a374 Add sword-swing sound effects. 4 years ago
Colin McMillen f4581ecaf8 Player now takes damage from spikes. 4 years ago
Colin McMillen c189cfcc09 Add player health & a heart sprite. 4 years ago
Colin McMillen c2fa12db9b Stop printing out jumpTime. 4 years ago
Colin McMillen 0a64d17db5 fix lint errors 4 years ago
Colin McMillen 74b5e1ec2d Debug rects: pull in top & left sides by a 1-pixel margin. 4 years ago
Colin McMillen ed7afd2fa1 TextureRef: make Get a property rather than a function 4 years ago
Colin McMillen e72b8999e4 Make TextureRef class for holding textures. 4 years ago
Colin McMillen 026623ac82 Fix memory leaks of graphics resources. 4 years ago
Colin McMillen cf5167fba7 Player: tweak constants, track jump hangtime. 4 years ago
Colin McMillen 57d15cbbd9 Load all textures & fonts in one place. 4 years ago
Colin McMillen 02aba3ad84 Game objects now take in a ContentManager & load their own textures. 4 years ago
Colin McMillen 24078d6c62 move FieldOfView into Player 4 years ago
Colin McMillen 66f895fab8 Player: remove GetPose, add VisionRange and VisionRay. 4 years ago
Colin McMillen c94ae6eb25 Player: make Facing an int property. 4 years ago
Colin McMillen 93a5d477bb New FOV algorithm that works pretty well. 4 years ago
Colin McMillen ff0c9ddc26 Add a transformation matrix to spriteBatch.Draw(). 4 years ago
Colin McMillen 6b9890b6f7 Player: more line-of-sight debug lines 4 years ago
Colin McMillen d44ac76d49 fix cones-of-sight tilting in the wrong up/down direction when facing left 4 years ago
Colin McMillen 4758ce519b allow player to look up/down 4 years ago
Colin McMillen c1232d462d make swordSwingMax const 4 years ago
Colin McMillen 5cb3ff9fbd first pass at implementing line-of-sight algorithm 4 years ago
Colin McMillen 57b65f559c rename Aabb -> AABB 4 years ago
Colin McMillen f78bff249c cycle through different attack animations 4 years ago
Colin McMillen 0e363de306 change player sprite to ninja 4 years ago
Colin McMillen fe64ec705d Bound player position by both edges of the World. 4 years ago
Colin McMillen ab62e8929a cleanup: sprite{Height,Width} -> halfSize 4 years ago
Colin McMillen 793b292a29 pass in AABBs instead of Rectangles to Player.Update 4 years ago
Colin McMillen 946497160b Player.Update() now uses Bresenham's line algorithm. 4 years ago
Colin McMillen f2db2f4b9e use new collision-detection algorithm with old resolution algorithm (wip, slightly hacky) 4 years ago
Colin McMillen 08792320df make Facing's enum value correspond to the x-direction they're looking 4 years ago
Colin McMillen 61b50efa40 make CollisionTargets an array, and don't recompute it every frame 4 years ago
Colin McMillen 84fa044675 more readability fixed via Visual Studio suggestions 4 years ago
Colin McMillen 4b14aef1b5 make a bunch of fields readonly 4 years ago
Colin McMillen f5ca85264f Add Clock class & use it from Player and SneakGame 4 years ago
Colin McMillen c7ec9e3ad7 start Player on ground 4 years ago
Colin McMillen 87100eaa67 Player.Update now takes a float which is the model time elapsed. 4 years ago
Colin McMillen ae8fa0d21d Revert "Add .gitignore and .gitattributes." 4 years ago
Colin McMillen cb1b78b875 Add .gitignore and .gitattributes. 5 years ago
Colin McMillen ea07fc146b add TODO about setting ySpeed = 0 in head-bonk 4 years ago