Colin McMillen mcmillen
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:52:21 -05:00
f2db2f4b9e use new collision-detection algorithm with old resolution algorithm (wip, slightly hacky)
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:52:17 -05:00
08792320df make Facing's enum value correspond to the x-direction they're looking
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:52:13 -05:00
bff5d2b490 enable Debug by default
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:52:09 -05:00
878d434b22 Add code for intersecting axis-aligned bounding boxes with segments & each other
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:52:05 -05:00
61b50efa40 make CollisionTargets an array, and don't recompute it every frame
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:52:01 -05:00
644ed88dd8 World: add Tiles to list so that they're sorted by x-coordinate
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:57 -05:00
57e9ea558a add Debug.AddLine() function that takes in integer coordinates instead of Points
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:53 -05:00
8c6b0e3c92 set vsync = true; setting it false seems to cause crashes on UWP
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:49 -05:00
95acee959d clean up private fields/properties
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:45 -05:00
7e8e5c3e6d pull Width and Height into properties
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:41 -05:00
16062f65c3 World: convert from Tile[][] to List<Tile>
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:37 -05:00
e6fa78e30f World: convert fields to properties
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:33 -05:00
84fa044675 more readability fixed via Visual Studio suggestions
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:29 -05:00
4b14aef1b5 make a bunch of fields readonly
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:25 -05:00
0c7c15c047 set target framerate back to 60
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:21 -05:00
f5ca85264f Add Clock class & use it from Player and SneakGame
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:17 -05:00
c7ec9e3ad7 start Player on ground
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:13 -05:00
1ea4d6c39b don't vsync; set target FPS to 120-ish
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:10 -05:00
87100eaa67 Player.Update now takes a float which is the model time elapsed.
mcmillen pushed to master at semicolin/sneak 2020-02-13 14:51:06 -05:00
83839c92ac add Pause functionality