02aba3ad84
Game objects now take in a ContentManager & load their own textures.
...
GitOrigin-RevId: 4f40548d9f100f4bad181a59f4df44397f7ccf76
2020-02-18 13:58:04 -05:00
f0ea8d8ef2
Reorganize Content/ into multiple subdirectories.
...
Add new tilesets from anokolisa.
GitOrigin-RevId: 90cfd52a3c374beff7c1b8d07899e822bdf2e541
2020-02-18 10:30:05 -05:00
9eeede2310
Shared.shproj: remove redundant & out-of-date file listings
...
GitOrigin-RevId: e7cc4d730faa5bc22a6aae55df53d55c6e44b41a
2020-02-17 21:22:16 -05:00
7935b6aaff
Scene: go back to drawing Player behind tiles.
...
GitOrigin-RevId: afaff144f2af1f0ebcaf5b640cb621413110f380
2020-02-17 21:22:12 -05:00
7e7b0f7715
Move most of the drawing code into a Scene class
...
GitOrigin-RevId: 4515493a3bbf99b9513f2f1e66acadae1df53a5a
2020-02-17 21:08:32 -05:00
43f6bded70
draw backgrounds as partially transparent
...
GitOrigin-RevId: b570a9aab75d18e6f7778dc851537794f30d801a
2020-02-17 19:59:52 -05:00
3107c8448e
clean up copybara config a smidge
...
GitOrigin-RevId: 5179f64eecdf7f500a9341c22402fe42ef032529
2020-02-17 18:43:54 -05:00
143aeb983d
copybara: github source url now comes from gitea private
...
GitOrigin-RevId: a926ea61d8b9d744dc8175dcae310d03760f1f26
2020-02-17 18:43:50 -05:00
c99a59ca51
change copybara config
...
GitOrigin-RevId: bef86d68989d27ad55efe5f3bb037ad87df1b723
2020-02-17 16:14:20 -05:00
786b230a6c
LinesOfSight: don't draw yellow lines
...
GitOrigin-RevId: 1ebd5fe922856036d814a129520a5f3d6e1e4447
2020-02-16 19:44:36 -05:00
e2ea2e1d3f
Add ability to restart the level. Fixes #9 .
...
GitOrigin-RevId: e7a0cdcdded50e2f02067a166a33e18504aac344
2020-02-16 19:22:36 -05:00
a32ef2a0eb
Add unit tests for Geometry.Rotate(Vector2).
...
Fixes #20 .
GitOrigin-RevId: 45cd5e99a2c841235e2d9ed29744fe22900ce167
2020-02-15 16:49:57 -05:00
1ffe1444b2
Debug: draw rects as 4 GPU-accelerated lines.
...
GitOrigin-RevId: 3286d0476b5032d785f74191609db4fbd768433c
2020-02-15 16:32:39 -05:00
48a9297a57
draw Debug stuff on top of everything (after lighting)
...
GitOrigin-RevId: e07fbc6b27af23912de1344a1bc3788ef69fd9c5
2020-02-15 16:32:34 -05:00
5d21ff2a0f
Debug.DrawLines: use GPU to draw lines.
...
Fixes #19 .
GitOrigin-RevId: d837e0ddafa0b7ea66fea4bba05ca7412a3c5726
2020-02-15 15:47:45 -05:00
a21802e9f2
FMath.DegToRad(): use look-up table.
...
GitOrigin-RevId: 2dab2e175cf99448595304eeb7593bf499485273
2020-02-15 15:15:24 -05:00
24078d6c62
move FieldOfView into Player
...
GitOrigin-RevId: 6d6a4094533819b11deebd5319616b5f5ed68948
2020-02-15 15:00:26 -05:00
66f895fab8
Player: remove GetPose, add VisionRange and VisionRay.
...
Fixes #21 .
GitOrigin-RevId: 720972d1c8bd989edc38289f2e66e91290cf0134
2020-02-15 14:57:21 -05:00
c94ae6eb25
Player: make Facing an int property.
...
Partial work toward #21 .
GitOrigin-RevId: 902c46d19abb7c1a2c3a2aa3bfb344d52fa6a970
2020-02-15 14:49:35 -05:00
faa45d6fea
add new URLs to copybara config
...
GitOrigin-RevId: 0a4d6916519cd4b5e1b3e7d2c51664f15e6f6adf
2020-02-14 00:28:54 -05:00
96668a6d0a
update README for new /semicolin/ paths
...
GitOrigin-RevId: bbc66639fb10b132764008cdef240cabe8642fae
2020-02-14 00:26:37 -05:00
e7f15bb94e
bcs: allow names of other tree-likes, such as MonoGame's 'develop' branch
...
GitOrigin-RevId: b7fc8ac5aa313168e5cfdc1a82e4931bb617d4b5
2020-02-14 00:06:25 -05:00
a84231582c
bcs: add -x argument to specify a file extension
...
GitOrigin-RevId: 0fa5ad849d0462d085c29665276bcbc5cdf4944a
2020-02-13 23:42:05 -05:00
5210ef7398
bcs: add ability to set context lines; clean up some expansions
...
GitOrigin-RevId: 718fc9bb92eb9a2643f262739a2017a6341cde1f
2020-02-13 23:30:31 -05:00
2789c0d1b4
add bcs.sh (Bad Code Search)
...
fixes #22 .
GitOrigin-RevId: f13bee397fc4bfc957f07cb89d1766ee55ae0415
2020-02-13 23:13:41 -05:00
4a7cc839a0
whoops, put copybara config back into the right place
...
GitOrigin-RevId: 06793793690729217c307880bee1468f2623f033
2020-02-13 21:57:39 -05:00
8cf840d451
move copybara config into separate directory
...
GitOrigin-RevId: e2ba23b6783b2789eabe0ac7f90cd4e9b0b752c5
2020-02-13 21:57:35 -05:00
4d64d6fa12
Initialize and dispose of whiteTexture in SneakGame.
...
Fixes #7 .
GitOrigin-RevId: 024688e8fc8ed28950147baefc2fda2005e6aced
2020-02-13 18:36:48 -05:00
036d932476
embolden the website
...
GitOrigin-RevId: 5a26d02d6f73266c8b0f6cad88f2be754b239cfc
2020-02-13 18:04:48 -05:00
7a639d9a02
update README.md with more links to git.semicolin.games
...
GitOrigin-RevId: 395e3549758078b1740d3c6da4feda73a32f57d1
2020-02-13 18:03:37 -05:00
e774c018f4
update README with new canonical repo location
...
GitOrigin-RevId: 5dca0b3ff62cd419084ced243498a9ae26bf0c76
2020-02-13 17:20:51 -05:00
d19d5f025c
switch order of copybara'ing
...
GitOrigin-RevId: 822e1129b3f784b2859d2c5dcf53c69d4125ecc0
2020-02-13 16:24:16 -05:00
1a3cc2dc4c
update copybara configs to include gitea
...
GitOrigin-RevId: 4ef820b461a80b0b17dfe1d9d4800186437811f9
2020-02-13 16:22:05 -05:00
257a74ca58
LinesOfSight: use less-deprecated DrawIndexedPrimitives() call.
...
GitOrigin-RevId: 87d9482de392dfc659cc5c7e8fa354e9b6941425
2020-02-13 16:05:05 -05:00
23278334b0
use DrawIndexedPrimitives; fixes #41
...
GitOrigin-RevId: 6cc7429d0b69ace6da4f965af6f70fff2f1e139b
2020-02-13 14:55:22 -05:00
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: 0e769d3288dce17fe174b2a1d82a99b1d9994213
2020-02-13 14:55:18 -05:00
5b7c0dd888
move LinesOfSight into its own file
...
GitOrigin-RevId: 21a722cc9d31abf0f5d33cccebb82d7786e45fde
2020-02-13 14:55:14 -05:00
571e0e1dab
update README
...
GitOrigin-RevId: 1067c9c662c23c7531eec82f92b5d937bd078c6c
2020-02-13 14:55:10 -05:00
967e93d56e
update README
...
GitOrigin-RevId: 621666d7c68e509a9d82117c4cc80f9d5f894042
2020-02-13 14:55:06 -05:00
93a5d477bb
New FOV algorithm that works pretty well.
...
Saved for posterity here, approximately:
https://twitter.com/mcmillen/status/1227326054949408768
GitOrigin-RevId: e960dad1d9241c08dbf1292c6856311d4ebd7a85
2020-02-13 14:55:02 -05:00
7cc953a44e
add extension method: Vector2.Rotate()
...
GitOrigin-RevId: ee1e84ff188d5a3134dafb1f5150199682c4e063
2020-02-13 14:54:58 -05:00
82cf612834
update copybara config to point at new public URL
...
GitOrigin-RevId: a664378a81e2e76e03e74673751f133812b043e2
2020-02-13 14:54:54 -05:00
d4f3b2b703
update copybara config to point at new private URL
...
GitOrigin-RevId: 4b40c2c55c064e32d1062908e9b126b0b4ff4464
2020-02-13 14:54:50 -05:00
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: afab72c39236b1b46fe1597412209981ddae9c7c
2020-02-13 14:54:46 -05:00
6b9890b6f7
Player: more line-of-sight debug lines
...
GitOrigin-RevId: 655eef228659215ce53ac3e58bc324581a0fec3f
2020-02-13 14:54:42 -05:00
80746ecaed
Use world definition from Levels file
...
GitOrigin-RevId: a5d19f4f0828bb52989b12590d6e364d0edd918b
2020-02-13 14:54:38 -05:00
d30be7a460
Timer: don't automatically DumpStats(); refactor string prefixes during dump
...
GitOrigin-RevId: 93b7d652823785b2be1074af50dbe4952e288856
2020-02-13 14:54:34 -05:00
5672e292cc
add Levels file to hold level definitions (for now)
...
GitOrigin-RevId: ba9c09158f615844be53a1c294d7b8d88c9a62e2
2020-02-13 14:54:30 -05:00
2d2a3fde7d
Timer formatting: change 200%+ to 200+%
...
GitOrigin-RevId: d04c35760d8e05404fda01c0adac8a5c465423b7
2020-02-13 14:54:26 -05:00
80f1104d82
Timer: better histogram formatting. bin into 10% intervals instead of 5%
...
GitOrigin-RevId: 9729f04bd650e530d6e60efbed348d6269608f16
2020-02-13 14:54:22 -05:00