Colin McMillen
02b1dd4874
Add simple NPC.
GitOrigin-RevId: 47cd7abaf8
4 years ago
Colin McMillen
f4581ecaf8
Player now takes damage from spikes.
GitOrigin-RevId: e909631621
4 years ago
Colin McMillen
0a64d17db5
fix lint errors
GitOrigin-RevId: 5de396b259
4 years ago
Colin McMillen
ed7afd2fa1
TextureRef: make Get a property rather than a function
GitOrigin-RevId: a36369c33b
4 years ago
Colin McMillen
e72b8999e4
Make TextureRef class for holding textures.
Use it in World so that all Terrain-specific configuration can be specified in
one place.
GitOrigin-RevId: 31acf292ae
4 years ago
Colin McMillen
0ee671c8b1
fix how the first line of World is parsed
GitOrigin-RevId: 9409e491fd
4 years ago
Colin McMillen
c4e211e750
more level decorations
GitOrigin-RevId: b6446a7451
4 years ago
Colin McMillen
f1b71ca87d
Tiles can now be obstacles (in the foreground) or decorations (in the background).
Updated Levels to show off some of these.
GitOrigin-RevId: d8d04410c1
4 years ago
Colin McMillen
0df153581c
Add new terrain types to World
GitOrigin-RevId: ab811a1b52
4 years ago
Colin McMillen
57d15cbbd9
Load all textures & fonts in one place.
GitOrigin-RevId: 076c86b24f
4 years ago
Colin McMillen
8f5514b776
More refactoring of Tile loading.
GitOrigin-RevId: 96a697bc78
4 years ago
Colin McMillen
2934296649
Refactor tile creation to support assets from multiple tilesets.
GitOrigin-RevId: 9863c36821
4 years ago
Colin McMillen
02aba3ad84
Game objects now take in a ContentManager & load their own textures.
GitOrigin-RevId: 4f40548d9f
4 years ago
Colin McMillen
ff0c9ddc26
Add a transformation matrix to spriteBatch.Draw().
Instead of having every drawable object know how to transform itself based on
the camera position, we pass in a transformation matrix to spriteBatch.Draw().
Unfortunately MonoGame only lets us specify a translation that works over an
entire SpriteBatch.Begin() call, so we need to begin & end separately for
objects that *aren't* supposed to translate at the same rate as the camera.
Fixes #39 .
GitOrigin-RevId: afab72c392
4 years ago
Colin McMillen
80746ecaed
Use world definition from Levels file
GitOrigin-RevId: a5d19f4f08
4 years ago
Colin McMillen
1f7da03515
make char-to-terrain lookup dictionary-based instead of switch-based
GitOrigin-RevId: 0d81e95bf0
4 years ago
Colin McMillen
b731e1a785
make tile-texture lookup dictioanry-based instead of switch-based
GitOrigin-RevId: 2f0c215bf9
4 years ago
Colin McMillen
3286db1c86
remove Terrain.Empty and clean up TextureSource() switch statement
GitOrigin-RevId: 7de691a440
4 years ago
Colin McMillen
f7f7d5076e
Pre-compute texture-source Rectangles.
Fixes #14 .
GitOrigin-RevId: e09d86a099
4 years ago
Colin McMillen
1fd515070d
make it possible for new sprite to hit the right end of world
GitOrigin-RevId: 95f7abdea1
4 years ago
Colin McMillen
57b65f559c
rename Aabb -> AABB
GitOrigin-RevId: 37b49d7a3f
4 years ago
Colin McMillen
10453ee5ea
World: add Height property (in pixels)
GitOrigin-RevId: 0ae9f03f8e
4 years ago
Colin McMillen
bb8cf9e63b
make CollisionTargets an auto property
GitOrigin-RevId: ca7bf8f68b
4 years ago
Colin McMillen
76dbdc6913
Bound camera by right edge of World.
Fixes #32 .
GitOrigin-RevId: e193c89509
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
793b292a29
pass in AABBs instead of Rectangles to Player.Update
GitOrigin-RevId: 08fe1aaf34
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
644ed88dd8
World: add Tiles to list so that they're sorted by x-coordinate
GitOrigin-RevId: f9c6cf8be4
4 years ago
Colin McMillen
95acee959d
clean up private fields/properties
GitOrigin-RevId: d2caf0d5d7
4 years ago
Colin McMillen
7e8e5c3e6d
pull Width and Height into properties
GitOrigin-RevId: fe969e51cd
4 years ago
Colin McMillen
16062f65c3
World: convert from Tile[][] to List<Tile>
GitOrigin-RevId: 27db59aa11
4 years ago
Colin McMillen
e6fa78e30f
World: convert fields to properties
GitOrigin-RevId: 7b0552c278
4 years ago
Colin McMillen
4b14aef1b5
make a bunch of fields readonly
GitOrigin-RevId: 0c3533c650
4 years ago
Colin McMillen
cb66a32a24
add 1-space gap so that i can test bug #4
GitOrigin-RevId: 89e6e06f1d
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
03b8688f1e
World: use single multi-line string instead of a string[]
GitOrigin-RevId: 38c0745c95
4 years ago
Colin McMillen
9a1c6646dd
properly handle non-rectangular input string[]s
GitOrigin-RevId: eb580f2e9c
4 years ago
Colin McMillen
cc37561076
run dos2unix on all source files
GitOrigin-RevId: c65ff59d86
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
70d8bbfa29
make camera 1/4 size instead of 1/6
update World to match
GitOrigin-RevId: 0bcfc25090
4 years ago
Colin McMillen
d3283a64c0
transcribe 1-1 as testing World
GitOrigin-RevId: 0267ea2f77
4 years ago
Colin McMillen
22db0ee696
basic scrolling world!
GitOrigin-RevId: 6c08535f1a
4 years ago
Colin McMillen
873d35dcfb
parse World from string, add GrassL, GrassR, and Water terrains
GitOrigin-RevId: 40497e3478
4 years ago
Colin McMillen
22091fa5b1
more ground for World
GitOrigin-RevId: 88a9717170
4 years ago
Colin McMillen
a58d9b0847
add more obstacles to world
GitOrigin-RevId: 4352f7ca81
4 years ago
Colin McMillen
0b45e545a3
tweak world & physics constants a bit
GitOrigin-RevId: 8921482b3f
4 years ago
Colin McMillen
9c8f8b70df
enumerate and show collision targets
GitOrigin-RevId: d8cb888e4e
5 years ago