Colin McMillen
878d434b22
Add code for intersecting axis-aligned bounding boxes with segments & each other
GitOrigin-RevId: 99a855c1a8
4 years ago
Colin McMillen
f5ca85264f
Add Clock class & use it from Player and SneakGame
GitOrigin-RevId: fe20c836ca
4 years ago
Colin McMillen
bba9f643eb
Implement Bresenham's algorithm for line rasterization.
This is implemented as a static Line.Rasterize(Point p1, Point p2) function
that returns an array of Points. There's also a Line.Rasterize(x1, y1, x1, y2)
version for convenience.
Unit tests included.
GitOrigin-RevId: 525098f8c7
4 years ago
Colin McMillen
ae8fa0d21d
Revert "Add .gitignore and .gitattributes."
This reverts commit 5c9f574644
.
GitOrigin-RevId: 277054282d
4 years ago
Colin McMillen
cb1b78b875
Add .gitignore and .gitattributes.
GitOrigin-RevId: 5c9f574644
5 years ago
Colin McMillen
db6f3e1425
Add Input class to group gamepad & keyboard inputs together.
For motion directions (up/down & left/right), have them cancel each other out
if the player attempts to go in opposite directions at once.
Refactor Player & SneakGame to use the new Input class & remove direct access
to Keyboard & GamePad.
GitOrigin-RevId: 80fbed8874
4 years ago
Colin McMillen
361a02c67f
rm KeyboardInput
GitOrigin-RevId: 1725d577c5
4 years ago
Colin McMillen
9af191e801
remove last Jumpy vestiges
GitOrigin-RevId: 259aa3ce73
4 years ago
Colin McMillen
d75a469acc
Move JumpyGame -> SneakGame & fix references
GitOrigin-RevId: ec99138000
4 years ago
Colin McMillen
569a330e89
move Jumpy.Shared -> Shared directory
GitOrigin-RevId: 781f1fb42b
4 years ago
Colin McMillen
6c5c7d4992
add Debug class for displaying rects on-screen
use it to display bounding boxes of player & obstacles
GitOrigin-RevId: 1354637c8a
4 years ago
Colin McMillen
fb2d0e8a6d
add World class & refactor other things appropriately
GitOrigin-RevId: 9e72fe9527
4 years ago
Colin McMillen
826e308cfe
add History data structure
GitOrigin-RevId: b327e9a0a4
4 years ago
Colin McMillen
568bcf8071
add FPS counter
GitOrigin-RevId: 7186a6f3cd
4 years ago
Colin McMillen
83709e9a61
pull out world viewport size into a Camera class
GitOrigin-RevId: 92cd946afe
4 years ago
Colin McMillen
fdd0eb60c4
basic Player motions and poses
GitOrigin-RevId: 88a4e7a208
4 years ago
Colin McMillen
f6d1cac42f
rename IWindow -> IDisplay & refactor uses
GitOrigin-RevId: 9cb63778de
5 years ago
Colin McMillen
a33c4d90fd
Make IWindow interface & make fullscreen work in UWP & OpenGL.
GitOrigin-RevId: 17e3e11548
5 years ago
Colin McMillen
149ecf8075
Basic working skeleton in OpenGL and UWP.
GitOrigin-RevId: 762b683654
5 years ago
Colin McMillen
96404d7cf8
Add project files.
GitOrigin-RevId: d2c4368f41
5 years ago