This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// odin run dynamic_from_static.odin -file | |
import "core:fmt" | |
import "core:slice" | |
MY_STATIC_ARRAY_LENGTH :: 6 | |
MY_STATIC_ARRAY: [MY_STATIC_ARRAY_LENGTH]int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fib | |
// odin run fib.odin -file | |
// odin run fib.odin -file -o:speed | |
// odin run fib.odin -file -o:aggressive | |
import "core:fmt" | |
import "core:time" | |
print :: fmt.println |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const w4 = @import("wasm4.zig"); | |
pub const Input = struct { | |
previous_frame_gamepad: u8, | |
current_frame_gamepad: u8, | |
previous_frame_mouse: u8, | |
current_frame_mouse: u8, | |
previous_frame_mouse_x: i16, |