diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-31 09:55:09 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-31 09:55:09 +0100 |
| commit | 40b9ec3f0f1273440d4405b531cd3290dd259b78 (patch) | |
| tree | f9a75024f6435e7ff67709531933f983b2e8e4f4 /pong/src/main.rs | |
| parent | 349055ef2533bf3268f37d3c04e5adb84814f50a (diff) | |
| download | sylt-40b9ec3f0f1273440d4405b531cd3290dd259b78.tar.gz | |
Add a ball, that kinda moves
Diffstat (limited to 'pong/src/main.rs')
| -rw-r--r-- | pong/src/main.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pong/src/main.rs b/pong/src/main.rs index c3cc0bf..2ab4b4a 100644 --- a/pong/src/main.rs +++ b/pong/src/main.rs @@ -49,11 +49,6 @@ extern_function!(clear #[macroquad::main("Pong")] async fn main() { - set_camera(Camera2D { - zoom: vec2(1. / SCREEN_WIDTH * 2., -1. / SCREEN_HEIGHT * 2.), - target: vec2(SCREEN_WIDTH / 2., SCREEN_HEIGHT / 2.), - ..Default::default() - }); let functions: Vec<(String, tihdy::RustFunction)> = vec