Colin McMillen
de8ca4a374
Add sword-swing sound effects.
GitOrigin-RevId: 946a808c6f
4 years ago
Colin McMillen
c213009134
Add Text.DrawOutlined() function & other text helpers.
GitOrigin-RevId: 47f9115767
4 years ago
Colin McMillen
6802b3f162
Make separate ExtensionMethods file.
Add Point-deconstruction as an extension method.
GitOrigin-RevId: a804ba797a
4 years ago
Colin McMillen
57d15cbbd9
Load all textures & fonts in one place.
GitOrigin-RevId: 076c86b24f
4 years ago
Colin McMillen
7e7b0f7715
Move most of the drawing code into a Scene class
GitOrigin-RevId: 4515493a3b
4 years ago
Colin McMillen
f01efcde01
Split LinesOfSight into separate Draw() and Update() functions.
Don't make new arrays every frame.
Partial solution to bug #41 , just need to DrawIndexedPrimitives() now.
GitOrigin-RevId: 0e769d3288
4 years ago
Colin McMillen
5672e292cc
add Levels file to hold level definitions (for now)
GitOrigin-RevId: ba9c09158f
4 years ago
Colin McMillen
bf2f33f698
add Timer class to projitems
related to issue #33
GitOrigin-RevId: 2870974cfb
4 years ago
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
5 years ago
Colin McMillen
fb2d0e8a6d
add World class & refactor other things appropriately
GitOrigin-RevId: 9e72fe9527
5 years ago
Colin McMillen
826e308cfe
add History data structure
GitOrigin-RevId: b327e9a0a4
5 years ago
Colin McMillen
568bcf8071
add FPS counter
GitOrigin-RevId: 7186a6f3cd
5 years ago
Colin McMillen
83709e9a61
pull out world viewport size into a Camera class
GitOrigin-RevId: 92cd946afe
5 years ago
Colin McMillen
fdd0eb60c4
basic Player motions and poses
GitOrigin-RevId: 88a4e7a208
5 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