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 | |
import "core:slice" | |
import "core:strings" | |
import rl "vendor:raylib" | |
main :: proc() { | |
// Initialize window | |
rl.InitWindow(1000, 600, "Dropdown List With Shape Names") | |
defer rl.CloseWindow() |
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 | |
import "core:math" | |
import "core:fmt" | |
import rl "vendor:raylib" | |
Platform :: struct { | |
pos: rl.Vector2, | |
size: rl.Vector2, | |
} |
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 | |
import "core:math/rand" | |
import "core:fmt" | |
import rl "vendor:raylib" | |
Ball :: struct { | |
pos: rl.Vector2, | |
velocity: rl.Vector2, | |
radius: f32, |
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 | |
import rl "vendor:raylib" | |
State :: enum { | |
LevelPicker, | |
LevelView, | |
} | |
main :: proc() { |
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 | |
import rl "vendor:raylib" | |
import "core:math/rand" | |
import "core:fmt" | |
import "core:math/linalg" | |
Ball :: struct { | |
position: rl.Vector3, | |
active: bool, |
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 | |
import rl "vendor:raylib" | |
import "core:slice" | |
import "core:math/rand" | |
import "core:time" | |
import "core:fmt" | |
// Game constants | |
CARD_WIDTH :: 80 |
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 | |
import rl "vendor:raylib" | |
import "core:math/rand" | |
main :: proc() { | |
rl.InitWindow(800, 600, "Simple Snake Game") | |
defer rl.CloseWindow() | |
rl.SetTargetFPS(60) | |
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 | |
import "core:fmt" | |
import rl "vendor:raylib" | |
// Constants | |
WINDOW_WIDTH :: 800 | |
WINDOW_HEIGHT :: 600 | |
PADDLE_SPEED :: f32(300.0) | |
BALL_SPEED :: f32(200.0) |
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
import gg | |
import gx | |
import math | |
import rand | |
import sokol.audio | |
import os.asset | |
import sokol.sgl | |
const designed_width = 600 | |
const designed_height = 800 |
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
> npx puppeteer browsers install chrome # wrong | |
# example version | |
> npx puppeteer browsers install [email protected] # correct |
NewerOlder