Colin McMillen
90b003e0b0
Change Debug button from left shoulder to Select.
GitOrigin-RevId: 7e633c9904
4 years ago
Colin McMillen
05638483a4
Support 4-layer parallax-scrolling backgrounds.
GitOrigin-RevId: 58c1d1fee9
4 years ago
Colin McMillen
8405f32f3c
simplify lightingEffect initialization
GitOrigin-RevId: 28ca3d2336
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
f0ea8d8ef2
Reorganize Content/ into multiple subdirectories.
Add new tilesets from anokolisa.
GitOrigin-RevId: 90cfd52a3c
4 years ago
Colin McMillen
9eeede2310
Shared.shproj: remove redundant & out-of-date file listings
GitOrigin-RevId: e7cc4d730f
4 years ago
Colin McMillen
7935b6aaff
Scene: go back to drawing Player behind tiles.
GitOrigin-RevId: afaff144f2
4 years ago
Colin McMillen
7e7b0f7715
Move most of the drawing code into a Scene class
GitOrigin-RevId: 4515493a3b
4 years ago
Colin McMillen
43f6bded70
draw backgrounds as partially transparent
GitOrigin-RevId: b570a9aab7
4 years ago
Colin McMillen
3107c8448e
clean up copybara config a smidge
GitOrigin-RevId: 5179f64eec
4 years ago
Colin McMillen
143aeb983d
copybara: github source url now comes from gitea private
GitOrigin-RevId: a926ea61d8
4 years ago
Colin McMillen
c99a59ca51
change copybara config
GitOrigin-RevId: bef86d6898
4 years ago
Colin McMillen
786b230a6c
LinesOfSight: don't draw yellow lines
GitOrigin-RevId: 1ebd5fe922
4 years ago
Colin McMillen
e2ea2e1d3f
Add ability to restart the level. Fixes #9 .
GitOrigin-RevId: e7a0cdcdde
4 years ago
Colin McMillen
a32ef2a0eb
Add unit tests for Geometry.Rotate(Vector2).
Fixes #20 .
GitOrigin-RevId: 45cd5e99a2
4 years ago
Colin McMillen
1ffe1444b2
Debug: draw rects as 4 GPU-accelerated lines.
GitOrigin-RevId: 3286d0476b
4 years ago
Colin McMillen
48a9297a57
draw Debug stuff on top of everything (after lighting)
GitOrigin-RevId: e07fbc6b27
4 years ago
Colin McMillen
5d21ff2a0f
Debug.DrawLines: use GPU to draw lines.
Fixes #19 .
GitOrigin-RevId: d837e0ddaf
4 years ago
Colin McMillen
a21802e9f2
FMath.DegToRad(): use look-up table.
GitOrigin-RevId: 2dab2e175c
4 years ago
Colin McMillen
24078d6c62
move FieldOfView into Player
GitOrigin-RevId: 6d6a409453
4 years ago
Colin McMillen
66f895fab8
Player: remove GetPose, add VisionRange and VisionRay.
Fixes #21 .
GitOrigin-RevId: 720972d1c8
4 years ago
Colin McMillen
c94ae6eb25
Player: make Facing an int property.
Partial work toward #21 .
GitOrigin-RevId: 902c46d19a
4 years ago
Colin McMillen
faa45d6fea
add new URLs to copybara config
GitOrigin-RevId: 0a4d691651
4 years ago
Colin McMillen
96668a6d0a
update README for new /semicolin/ paths
GitOrigin-RevId: bbc66639fb
4 years ago
Colin McMillen
e7f15bb94e
bcs: allow names of other tree-likes, such as MonoGame's 'develop' branch
GitOrigin-RevId: b7fc8ac5aa
4 years ago
Colin McMillen
a84231582c
bcs: add -x argument to specify a file extension
GitOrigin-RevId: 0fa5ad849d
4 years ago
Colin McMillen
5210ef7398
bcs: add ability to set context lines; clean up some expansions
GitOrigin-RevId: 718fc9bb92
4 years ago
Colin McMillen
2789c0d1b4
add bcs.sh (Bad Code Search)
fixes #22 .
GitOrigin-RevId: f13bee397f
4 years ago
Colin McMillen
4a7cc839a0
whoops, put copybara config back into the right place
GitOrigin-RevId: 0679379369
4 years ago
Colin McMillen
8cf840d451
move copybara config into separate directory
GitOrigin-RevId: e2ba23b678
4 years ago
Colin McMillen
4d64d6fa12
Initialize and dispose of whiteTexture in SneakGame.
Fixes #7 .
GitOrigin-RevId: 024688e8fc
4 years ago
Colin McMillen
036d932476
embolden the website
GitOrigin-RevId: 5a26d02d6f
4 years ago
Colin McMillen
7a639d9a02
update README.md with more links to git.semicolin.games
GitOrigin-RevId: 395e354975
4 years ago
Colin McMillen
e774c018f4
update README with new canonical repo location
GitOrigin-RevId: 5dca0b3ff6
4 years ago
Colin McMillen
d19d5f025c
switch order of copybara'ing
GitOrigin-RevId: 822e1129b3
4 years ago
Colin McMillen
1a3cc2dc4c
update copybara configs to include gitea
GitOrigin-RevId: 4ef820b461
4 years ago
Colin McMillen
257a74ca58
LinesOfSight: use less-deprecated DrawIndexedPrimitives() call.
GitOrigin-RevId: 87d9482de3
4 years ago
Colin McMillen
23278334b0
use DrawIndexedPrimitives; fixes #41
GitOrigin-RevId: 6cc7429d0b
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
5b7c0dd888
move LinesOfSight into its own file
GitOrigin-RevId: 21a722cc9d
4 years ago
Colin McMillen
571e0e1dab
update README
GitOrigin-RevId: 1067c9c662
4 years ago
Colin McMillen
967e93d56e
update README
GitOrigin-RevId: 621666d7c6
4 years ago
Colin McMillen
93a5d477bb
New FOV algorithm that works pretty well.
Saved for posterity here, approximately:
https://twitter.com/mcmillen/status/1227326054949408768
GitOrigin-RevId: e960dad1d9
4 years ago
Colin McMillen
7cc953a44e
add extension method: Vector2.Rotate()
GitOrigin-RevId: ee1e84ff18
4 years ago
Colin McMillen
82cf612834
update copybara config to point at new public URL
GitOrigin-RevId: a664378a81
4 years ago
Colin McMillen
d4f3b2b703
update copybara config to point at new private URL
GitOrigin-RevId: 4b40c2c55c
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