improved formatting
This commit is contained in:
parent
737ba58860
commit
ccdd081d36
12 changed files with 46 additions and 37 deletions
|
|
@ -19,7 +19,7 @@
|
|||
#include "kubo_window.h"
|
||||
#include "raylib.h"
|
||||
|
||||
Camera2D camera = {0};
|
||||
Camera2D camera = { 0 };
|
||||
bool kubo_mouse_snap = false;
|
||||
|
||||
static void window_render(struct kubo_context *context, Vector2 mouse_pos);
|
||||
|
|
@ -154,7 +154,8 @@ static void new_wall_end(struct kubo_context *context) {
|
|||
static Vector2 mouse_grid_snap(Vector2 mouse_pos) {
|
||||
Vector2 snap_pos = {
|
||||
.x = round(mouse_pos.x / KUBO_GRID_SIZE) * KUBO_GRID_SIZE,
|
||||
.y = round(mouse_pos.y / KUBO_GRID_SIZE) * KUBO_GRID_SIZE};
|
||||
.y = round(mouse_pos.y / KUBO_GRID_SIZE) * KUBO_GRID_SIZE
|
||||
};
|
||||
|
||||
return snap_pos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue