298 Commits (9bf5a157e7c35725ab1385faa60a6eb19449349e)

Author SHA1 Message Date
Colin McMillen 4d64d6fa12 Initialize and dispose of whiteTexture in SneakGame. 4 years ago
Colin McMillen 257a74ca58 LinesOfSight: use less-deprecated DrawIndexedPrimitives() call. 4 years ago
Colin McMillen 23278334b0 use DrawIndexedPrimitives; fixes #41 4 years ago
Colin McMillen f01efcde01 Split LinesOfSight into separate Draw() and Update() functions. 4 years ago
Colin McMillen 5b7c0dd888 move LinesOfSight into its own file 4 years ago
Colin McMillen 93a5d477bb New FOV algorithm that works pretty well. 4 years ago
Colin McMillen 7cc953a44e add extension method: Vector2.Rotate() 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 80746ecaed Use world definition from Levels file 4 years ago
Colin McMillen d30be7a460 Timer: don't automatically DumpStats(); refactor string prefixes during dump 4 years ago
Colin McMillen 5672e292cc add Levels file to hold level definitions (for now) 4 years ago
Colin McMillen 2d2a3fde7d Timer formatting: change 200%+ to 200+% 4 years ago
Colin McMillen 80f1104d82 Timer: better histogram formatting. bin into 10% intervals instead of 5% 4 years ago
Colin McMillen 9e4d863bcf add performance counters to SneakGame. Fixes #33. 4 years ago
Colin McMillen 0f9d546398 make Clamp() generic across comparables and move it into FMath. 4 years ago
Colin McMillen bf2f33f698 add Timer class to projitems 4 years ago
Colin McMillen 36ebeadddf add Timer class for tracking draw & update times (etc) 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 1f7da03515 make char-to-terrain lookup dictionary-based instead of switch-based 4 years ago
Colin McMillen b731e1a785 make tile-texture lookup dictioanry-based instead of switch-based 4 years ago
Colin McMillen c1232d462d make swordSwingMax const 4 years ago
Colin McMillen 3286db1c86 remove Terrain.Empty and clean up TextureSource() switch statement 4 years ago
Colin McMillen f7f7d5076e Pre-compute texture-source Rectangles. 4 years ago
Colin McMillen 5cb3ff9fbd first pass at implementing line-of-sight algorithm 4 years ago
Colin McMillen 554578968d Geometry: add FMath class & convenient accessors for AABB corners. 4 years ago
Colin McMillen 141a0660c4 Debug: draw lines correctly based on camera position. 4 years ago
Colin McMillen 1fd515070d make it possible for new sprite to hit the right end of world 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 10453ee5ea World: add Height property (in pixels) 4 years ago
Colin McMillen bb8cf9e63b make CollisionTargets an auto property 4 years ago
Colin McMillen 76dbdc6913 Bound camera by right edge of World. 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 50479bac3c while paused, don't clear the list of Debug rects & lines 4 years ago
Colin McMillen 588b18f9ad fix Debug.Toast() & re-enable it 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 4410ff137a add Debug.AddRect(AABB) function 4 years ago
Colin McMillen f1f717da63 remove unused using statement 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 bff5d2b490 enable Debug by default 4 years ago
Colin McMillen 878d434b22 Add code for intersecting axis-aligned bounding boxes with segments & each other 4 years ago
Colin McMillen 61b50efa40 make CollisionTargets an array, and don't recompute it every frame 4 years ago
Colin McMillen 644ed88dd8 World: add Tiles to list so that they're sorted by x-coordinate 4 years ago
Colin McMillen 57e9ea558a add Debug.AddLine() function that takes in integer coordinates instead of Points 4 years ago