aboutsummaryrefslogtreecommitdiff
path: root/light-client/src/main.rs
diff options
context:
space:
mode:
authorBigBrotherNii <nicochr1004@gmail.com>2024-07-16 18:48:37 +0200
committerBigBrotherNii <nicochr1004@gmail.com>2024-07-16 18:48:37 +0200
commit4be5accf7d1d664c19eb3946a85741b630979266 (patch)
treeaab5a4fede64ab410c22cba212afcb2a394c5bf0 /light-client/src/main.rs
parentf4de3a810769d902e8fd880f727b17b0bff60caa (diff)
parent4064c56783bd78b96b0e79d5a7b15b1fb0d8edad (diff)
downloadhurrycurry-4be5accf7d1d664c19eb3946a85741b630979266.tar
hurrycurry-4be5accf7d1d664c19eb3946a85741b630979266.tar.bz2
hurrycurry-4be5accf7d1d664c19eb3946a85741b630979266.tar.zst
updated textures for light-client
Diffstat (limited to 'light-client/src/main.rs')
-rw-r--r--light-client/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/light-client/src/main.rs b/light-client/src/main.rs
index b00ba734..278229d2 100644
--- a/light-client/src/main.rs
+++ b/light-client/src/main.rs
@@ -17,17 +17,17 @@
*/
use game::Game;
use network::Network;
+use render::SpriteRenderer;
use sdl2::{
event::Event,
keyboard::{KeyboardState, Keycode},
pixels::Color,
};
-use sprite_renderer::SpriteRenderer;
use std::time::{Duration, Instant};
pub mod game;
pub mod network;
-pub mod sprite_renderer;
+pub mod render;
pub mod tilemap;
fn main() {
@@ -52,8 +52,8 @@ fn main() {
let texture_creator = canvas.texture_creator();
let mut net = Network::connect("ws://127.0.0.1/").unwrap();
- let mut game = Game::new();
let mut renderer = SpriteRenderer::init(&texture_creator);
+ let mut game = Game::new(&renderer);
net.queue_out.push_back(hurrycurry_protocol::PacketS::Join {
name: "light".to_string(),