From 3375d712e40cce1d17198ba20839f58a2a77d202 Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Fri, 5 Dec 2025 09:27:12 -0500 Subject: add platforms and AABB collision --- src/draw/sprite.odin | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/draw/sprite.odin') diff --git a/src/draw/sprite.odin b/src/draw/sprite.odin index ff8ce58..59d1c32 100644 --- a/src/draw/sprite.odin +++ b/src/draw/sprite.odin @@ -1,12 +1,10 @@ package draw import "core:log" -import "core:math" import "core:image" import "core:image/qoi" import sg "shared:sokol/gfx" -import stime "shared:sokol/time" Sprite :: struct { image: sg.Image, @@ -85,13 +83,13 @@ update_sprite :: proc(sprite: ^Sprite, dt: f32) { } } -draw_sprite :: proc( +sprite :: proc( r: ^Renderer, sprite: Sprite, ) { frame := sprite.anim.frames[sprite.current_frame] - draw_texture( + texture( r, sprite.image, Rect { -- cgit v1.3-2-g0d8e