Skip to content

Instantly share code, notes, and snippets.

/*
A simple snake game in odin and raylib
- Video: https://youtu.be/b0NLJBoTtvg
- Hot-reload template: https://github.com/karl-zylinski/odin-raylib-hot-reload-game-template
*/
package main
@bones-ai
bones-ai / main.odin
Created September 25, 2024 14:16
A small fps written in Odin and raylib
package main
import "core:fmt"
import "core:math"
import "core:math/linalg"
import "core:math/rand"
import "core:slice"
import rl "vendor:raylib"
// MARK: Consts
@bones-ai
bones-ai / empty_bevy_app.rs
Last active December 3, 2024 06:25
An basic empty bevy app template with all the plugins I use
use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};
use bevy::prelude::*;
use bevy::window::close_on_esc;
const WW: f32 = 1200.0;
const WH: f32 = 900.0;
const BG_COLOR: (u8, u8, u8) = (25, 20, 43);
fn main() {
App::new()