Compare commits
2 Commits
b25478612d
...
d3de2401f3
Author | SHA1 | Date | |
---|---|---|---|
d3de2401f3 | |||
0ece113e79 |
10
main.go
10
main.go
@ -210,6 +210,8 @@ func UpdateCamera(camera *rl.Camera3D, player rl.Vector3, deltaTime float32) {
|
|||||||
func main() {
|
func main() {
|
||||||
rl.InitWindow(800, 600, "goonscape")
|
rl.InitWindow(800, 600, "goonscape")
|
||||||
defer rl.CloseWindow()
|
defer rl.CloseWindow()
|
||||||
|
rl.InitAudioDevice()
|
||||||
|
defer rl.CloseAudioDevice()
|
||||||
|
|
||||||
mapGrid := InitMap()
|
mapGrid := InitMap()
|
||||||
|
|
||||||
@ -230,7 +232,15 @@ func main() {
|
|||||||
|
|
||||||
rl.SetTargetFPS(60)
|
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() {
|
for !rl.WindowShouldClose() {
|
||||||
|
rl.UpdateMusicStream(music)
|
||||||
|
|
||||||
// Time management
|
// Time management
|
||||||
deltaTime := rl.GetFrameTime()
|
deltaTime := rl.GetFrameTime()
|
||||||
|
|
||||||
|
BIN
resources/audio/GoonScape1.mp3
Normal file
BIN
resources/audio/GoonScape1.mp3
Normal file
Binary file not shown.
BIN
resources/audio/GoonScape2.mp3
Normal file
BIN
resources/audio/GoonScape2.mp3
Normal file
Binary file not shown.
12
resources/models/goonion.mtl
Normal file
12
resources/models/goonion.mtl
Normal 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
112531
resources/models/goonion.obj
Normal file
File diff suppressed because it is too large
Load Diff
BIN
resources/models/goonion.png
Normal file
BIN
resources/models/goonion.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 MiB |
Loading…
x
Reference in New Issue
Block a user