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
5 years ago
Colin McMillen
252fe5b243
remove unused using
GitOrigin-RevId: 1584816927
5 years ago
Colin McMillen
3246f8ea45
capitalize struct field names
GitOrigin-RevId: 6b4cca3873
5 years ago
Colin McMillen
cb66a32a24
add 1-space gap so that i can test bug #4
GitOrigin-RevId: 89e6e06f1d
5 years ago
Colin McMillen
34e7ab3ee1
make Toasts a list & implement FPS counter as a toast
GitOrigin-RevId: bae35697a0
5 years ago
Colin McMillen
bee17a99af
create Debug.AddLine() function [currently does nothing]
GitOrigin-RevId: c4f9afb4b0
5 years ago
Colin McMillen
938a38bd77
Camera.Update: remove unused time parameter
GitOrigin-RevId: b3c427b9cc
5 years ago
Colin McMillen
8752f53ac8
add GitLab config to copybara config
GitOrigin-RevId: d933c46b21
5 years ago
Colin McMillen
ae8fa0d21d
Revert "Add .gitignore and .gitattributes."
This reverts commit 5c9f574644
.
GitOrigin-RevId: 277054282d
5 years ago
Colin McMillen
cb1b78b875
Add .gitignore and .gitattributes.
GitOrigin-RevId: 5c9f574644
5 years ago
Colin McMillen
f6f25144b6
SharedTests: don't depend on specific MonoGame version
GitOrigin-RevId: d30010bbac
5 years ago
Colin McMillen
ea07fc146b
add TODO about setting ySpeed = 0 in head-bonk
GitOrigin-RevId: 657d92ebbd
5 years ago
Colin McMillen
2f75847615
remove toast
GitOrigin-RevId: f4e9adf692
5 years ago
Colin McMillen
459e43186a
refactor Player input/state handling to be less tangled
GitOrigin-RevId: 68bd79b722
5 years ago
Colin McMillen
ea82c4ffd3
rename SpritePosition -> SpriteIndex
GitOrigin-RevId: b620c8922b
5 years ago
Colin McMillen
03b8688f1e
World: use single multi-line string instead of a string[]
GitOrigin-RevId: 38c0745c95
5 years ago
Colin McMillen
a719e5b370
Add secondary buttons for jump & attack
GitOrigin-RevId: adac7b3aa1
5 years ago
Colin McMillen
bbdc3c3053
SneakGame: remove History<GamePadState> & History<KeyboardState>.
GitOrigin-RevId: 1b8dfef93a
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
5 years ago
Colin McMillen
9a1c6646dd
properly handle non-rectangular input string[]s
GitOrigin-RevId: eb580f2e9c
5 years ago
Colin McMillen
f58faa0b9f
comment out Toast from Camera
GitOrigin-RevId: 3507b5cd38
5 years ago
Colin McMillen
fb074dc318
History: make backing array readonly
GitOrigin-RevId: 33c1bfb915
5 years ago
Colin McMillen
cc37561076
run dos2unix on all source files
GitOrigin-RevId: c65ff59d86
5 years ago
Colin McMillen
960521a6e0
History: add ToArray() method to make tests cleaner
GitOrigin-RevId: 5bbf5be614
5 years ago
Colin McMillen
3f6fc67cb6
add unit tests to copybara config
GitOrigin-RevId: 4ad6471d55
5 years ago
Colin McMillen
ab692f94a7
Add unit tests for History class.
Also introduce .editorconfig file and update .csproj files.
GitOrigin-RevId: 60369ee53b
5 years ago
Colin McMillen
b169584794
cleanup: spritePosition -> SpritePosition
GitOrigin-RevId: b715b0be54
5 years ago
Colin McMillen
361a02c67f
rm KeyboardInput
GitOrigin-RevId: 1725d577c5
5 years ago
Colin McMillen
660d163119
converted all TODOs into Issues
GitOrigin-RevId: aae80308b3
5 years ago
Colin McMillen
c9d3bc7f66
add README to copybara config
GitOrigin-RevId: 07b6d968d5
5 years ago
Colin McMillen
ac27972dba
add skeletal README.md
GitOrigin-RevId: a0d588b6a4
5 years ago
Colin McMillen
9959c5702b
rename LICENSE -> LICENSE.txt & add copy to tools/
GitOrigin-RevId: 62c1e512fd
5 years ago
Colin McMillen
6ad9167818
add copybara script & config
GitOrigin-RevId: 3f8e5453ae
5 years ago
Colin McMillen
ef84fa85a1
Add LICENSE to Shared/ directory
GitOrigin-RevId: 03aa301a15
5 years ago
Colin McMillen
710d1042ab
remove TODO
GitOrigin-RevId: 91ae978933
5 years ago
Colin McMillen
f0630d1679
go back to just a single RenderTarget
GitOrigin-RevId: 0b8fc30900
5 years ago
Colin McMillen
9af191e801
remove last Jumpy vestiges
GitOrigin-RevId: 259aa3ce73
5 years ago
Colin McMillen
d75a469acc
Move JumpyGame -> SneakGame & fix references
GitOrigin-RevId: ec99138000
5 years ago
Colin McMillen
096f577e61
change namespace to SemiColinGames
GitOrigin-RevId: 3c4e116e77
5 years ago
Colin McMillen
7e64f2a0be
remove "Jumpy." from {Android, OpenGL, UWP}
GitOrigin-RevId: 26b6863116
5 years ago
Colin McMillen
569a330e89
move Jumpy.Shared -> Shared directory
GitOrigin-RevId: 781f1fb42b
5 years ago
Colin McMillen
9736e85345
rename "Jumpy.Shared" project to just "Shared"
GitOrigin-RevId: a1a4b62938
5 years ago
Colin McMillen
fc02b768a1
remove stale TODO
GitOrigin-RevId: b6ea9c98a1
5 years ago
Colin McMillen
37e3a8baba
add keyboard controls for Player & toggling debug info
GitOrigin-RevId: 0ab5e52485
5 years ago
Colin McMillen
7ed88960a5
gate toasts behind Debug.Enabled, rearrange their position & color
GitOrigin-RevId: 4efcd95c30
5 years ago
Colin McMillen
70d8bbfa29
make camera 1/4 size instead of 1/6
update World to match
GitOrigin-RevId: 0bcfc25090
5 years ago
Colin McMillen
010424f43f
anchor the background images at the top
GitOrigin-RevId: caa4dc0ec3
5 years ago
Colin McMillen
d3283a64c0
transcribe 1-1 as testing World
GitOrigin-RevId: 0267ea2f77
5 years ago
Colin McMillen
81b62f883e
comment out toast & add a reference for later
GitOrigin-RevId: 684f5bf643
5 years ago
Colin McMillen
22db0ee696
basic scrolling world!
GitOrigin-RevId: 6c08535f1a
5 years ago