Colin McMillen
57b65f559c
rename Aabb -> AABB
GitOrigin-RevId: 37b49d7a3f
4 years ago
Colin McMillen
f78bff249c
cycle through different attack animations
GitOrigin-RevId: e40102b81b
4 years ago
Colin McMillen
0e363de306
change player sprite to ninja
GitOrigin-RevId: 73bc09808a
4 years ago
Colin McMillen
fe64ec705d
Bound player position by both edges of the World.
Fixes #10 and #22 .
GitOrigin-RevId: 166be07898
4 years ago
Colin McMillen
ab62e8929a
cleanup: sprite{Height,Width} -> halfSize
GitOrigin-RevId: 5620d26f72
4 years ago
Colin McMillen
793b292a29
pass in AABBs instead of Rectangles to Player.Update
GitOrigin-RevId: 08fe1aaf34
4 years ago
Colin McMillen
946497160b
Player.Update() now uses Bresenham's line algorithm.
This works, but is still a bit hacky. Cleanups to follow soon.
GitOrigin-RevId: 597a857a20
4 years ago
Colin McMillen
f2db2f4b9e
use new collision-detection algorithm with old resolution algorithm (wip, slightly hacky)
GitOrigin-RevId: 998aa02a56
4 years ago
Colin McMillen
08792320df
make Facing's enum value correspond to the x-direction they're looking
GitOrigin-RevId: fe9318a68e
4 years ago
Colin McMillen
61b50efa40
make CollisionTargets an array, and don't recompute it every frame
GitOrigin-RevId: 92a02231ed
4 years ago
Colin McMillen
84fa044675
more readability fixed via Visual Studio suggestions
GitOrigin-RevId: 330f13485c
4 years ago
Colin McMillen
4b14aef1b5
make a bunch of fields readonly
GitOrigin-RevId: 0c3533c650
4 years ago
Colin McMillen
f5ca85264f
Add Clock class & use it from Player and SneakGame
GitOrigin-RevId: fe20c836ca
4 years ago
Colin McMillen
c7ec9e3ad7
start Player on ground
GitOrigin-RevId: e781328586
4 years ago
Colin McMillen
87100eaa67
Player.Update now takes a float which is the model time elapsed.
Player.Draw doesn't depend on time elapsed any more.
GitOrigin-RevId: 3396f85f61
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
4 years ago
Colin McMillen
ea07fc146b
add TODO about setting ySpeed = 0 in head-bonk
GitOrigin-RevId: 657d92ebbd
4 years ago
Colin McMillen
2f75847615
remove toast
GitOrigin-RevId: f4e9adf692
4 years ago
Colin McMillen
459e43186a
refactor Player input/state handling to be less tangled
GitOrigin-RevId: 68bd79b722
4 years ago
Colin McMillen
ea82c4ffd3
rename SpritePosition -> SpriteIndex
GitOrigin-RevId: b620c8922b
4 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
cc37561076
run dos2unix on all source files
GitOrigin-RevId: c65ff59d86
4 years ago
Colin McMillen
b169584794
cleanup: spritePosition -> SpritePosition
GitOrigin-RevId: b715b0be54
4 years ago
Colin McMillen
660d163119
converted all TODOs into Issues
GitOrigin-RevId: aae80308b3
4 years ago
Colin McMillen
096f577e61
change namespace to SemiColinGames
GitOrigin-RevId: 3c4e116e77
4 years ago
Colin McMillen
569a330e89
move Jumpy.Shared -> Shared directory
GitOrigin-RevId: 781f1fb42b
4 years ago
Colin McMillen
37e3a8baba
add keyboard controls for Player & toggling debug info
GitOrigin-RevId: 0ab5e52485
4 years ago
Colin McMillen
22db0ee696
basic scrolling world!
GitOrigin-RevId: 6c08535f1a
4 years ago
Colin McMillen
f364a9c6ff
add TODO about checking size-1 gaps in future
GitOrigin-RevId: cd944aea79
4 years ago
Colin McMillen
caa9b074d5
rm dupe "using" decl
GitOrigin-RevId: 5318677e0f
4 years ago
Colin McMillen
755e65a1d6
refactor to use linear spritesheet
GitOrigin-RevId: 859e5868a7
4 years ago
Colin McMillen
adaa9edc5e
add some refs on line rasterization
GitOrigin-RevId: 728b18264f
4 years ago
Colin McMillen
11da38ffa6
better collision-detection with maybe only one bug
GitOrigin-RevId: c205dfcd6c
4 years ago
Colin McMillen
173efbf4ef
fix turbojump
GitOrigin-RevId: 822e0e0830
4 years ago
Colin McMillen
b04d68400b
tweak more physics constants
GitOrigin-RevId: 3751ded02e
4 years ago
Colin McMillen
ba459a9738
move comment to appropriate place
GitOrigin-RevId: e0555ac9dd
4 years ago
Colin McMillen
0b45e545a3
tweak world & physics constants a bit
GitOrigin-RevId: 8921482b3f
4 years ago
Colin McMillen
e7006525be
remove now-unneeded groundLevel constant
GitOrigin-RevId: 91e2c3320a
4 years ago
Colin McMillen
11ea98345d
some basic, not-quite-perfect, collision detection
GitOrigin-RevId: 32ba9d7687
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
3af02981c4
add rock-y ground tiles
GitOrigin-RevId: fd490a5a2c
4 years ago
Colin McMillen
1fbcacecfc
add ground texture
GitOrigin-RevId: 2313a9c038
4 years ago
Colin McMillen
06620ce368
add TODO to Player
GitOrigin-RevId: 0f94fab230
4 years ago
Colin McMillen
2c2feb0f88
fix turbosword issue
GitOrigin-RevId: 57127fc84e
4 years ago
Colin McMillen
3589a3660f
remove spurious cast
GitOrigin-RevId: 62d8d539d7
4 years ago
Colin McMillen
7fe248aecc
refactor uses of gamepad / keyboard history
GitOrigin-RevId: ee4d881cb0
4 years ago
Colin McMillen
307efa5f5b
use History for handling gamepad & keyboard state
GitOrigin-RevId: 87aa91b212
4 years ago
Colin McMillen
80b6e2ac5c
FpsCounter now returns an int (rounded up)
rename gameTime -> time in Player
GitOrigin-RevId: 0270c026e6
4 years ago