You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unsafe {
raylib_ffi::draw!(
raylib_ffi::DrawRectangle(
self.pos.0 as i32,
self.pos.1 as i32,
GRID_CELL_SIZE.0 as i32,
GRID_CELL_SIZE.1 as i32,
raylib_ffi::colors::BLUE)
);
}
and snake.draw() is this
unsafe {
raylib_ffi::draw!(
raylib_ffi::DrawRectangle(
self.body[0].pos.0,
self.body[0].pos.1,
GRID_CELL_SIZE.0 as i32,
GRID_CELL_SIZE.1 as i32,
raylib_ffi::colors::DARKGREEN)
);
}
While looking at similiar issues it seems this happens if we DONT use ClearBackground so I just cant understand why
if I comment the ClearBackground everything works.
DISCLAIMER: I am a complete newbie on Raylib, this could very well not be the wrapper's fault, but having found the exact opposite results in the C Raylib version it seems weird
The text was updated successfully, but these errors were encountered:
I encountered an issue where if you use ClearBackground() and try to draw a sprite some sprites, they will flicker on the screen.
This is the code
Where
food.draw()
is thisand
snake.draw()
is thisWhile looking at similiar issues it seems this happens if we DONT use
ClearBackground
so I just cant understand whyif I comment the ClearBackground everything works.
DISCLAIMER: I am a complete newbie on Raylib, this could very well not be the wrapper's fault, but having found the exact opposite results in the C Raylib version it seems weird
The text was updated successfully, but these errors were encountered: