Compare commits

..

2 Commits

Author SHA1 Message Date
d3de2401f3 Add model 2024-10-02 13:33:34 +02:00
0ece113e79 lol music 2024-10-01 21:59:29 +02:00
6 changed files with 112553 additions and 0 deletions

10
main.go
View File

@ -210,6 +210,8 @@ func UpdateCamera(camera *rl.Camera3D, player rl.Vector3, deltaTime float32) {
func main() {
rl.InitWindow(800, 600, "goonscape")
defer rl.CloseWindow()
rl.InitAudioDevice()
defer rl.CloseAudioDevice()
mapGrid := InitMap()
@ -230,7 +232,15 @@ func main() {
rl.SetTargetFPS(60)
// Music
music := rl.LoadMusicStream("resources/audio/GoonScape2.mp3")
rl.PlayMusicStream(music)
rl.SetMusicVolume(music, 0.5)
defer rl.UnloadMusicStream(music)
for !rl.WindowShouldClose() {
rl.UpdateMusicStream(music)
// Time management
deltaTime := rl.GetFrameTime()

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
# Blender 3.6.0 MTL File: 'None'
# www.blender.org
newmtl Material.001
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Minion_full_body_A__1002112559.png

112531
resources/models/goonion.obj Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB