aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2024-05-26 12:09:48 +0100
committerGene Pasquet <dev@etenil.net>2024-05-26 12:09:48 +0100
commitb90d133377c259d00477491d9a58319fece77f14 (patch)
tree7b2aa4148854ee0fa24e820b26ace98338db97d6
parent01e9651b1ad8051ec43a6a9ac5ef5a933cee744c (diff)
Reorganise game files
-rwxr-xr-xfonts/DSEG-LICENSE.txt (renamed from DSEG-LICENSE.txt)0
-rw-r--r--fonts/DSEG7Classic-Regular.ttf (renamed from DSEG7Classic-Regular.ttf)bin23272 -> 23272 bytes
-rw-r--r--fonts/thick_8x8.png (renamed from thick_8x8.png)bin1197 -> 1197 bytes
-rw-r--r--fonts/thick_8x8.xml (renamed from thick_8x8.xml)0
-rw-r--r--sound/engine-loop-1.ogg (renamed from engine-loop-1.ogg)bin58862 -> 58862 bytes
-rw-r--r--sound/music.ogg (renamed from music.ogg)bin5237415 -> 5237415 bytes
-rw-r--r--sprites/7segment-background.png (renamed from 7segment-background.png)bin160 -> 160 bytes
-rw-r--r--sprites/dash-background.png (renamed from dash-background.png)bin303 -> 303 bytes
-rw-r--r--sprites/grass.png (renamed from grass.png)bin3706 -> 3706 bytes
-rw-r--r--sprites/road.png (renamed from road.png)bin2091 -> 2091 bytes
-rw-r--r--sprites/vehicles.pngbin0 -> 6438 bytes
-rw-r--r--turbo.scm16
12 files changed, 8 insertions, 8 deletions
diff --git a/DSEG-LICENSE.txt b/fonts/DSEG-LICENSE.txt
index ad4c0bf..ad4c0bf 100755
--- a/DSEG-LICENSE.txt
+++ b/fonts/DSEG-LICENSE.txt
diff --git a/DSEG7Classic-Regular.ttf b/fonts/DSEG7Classic-Regular.ttf
index 5e02edc..5e02edc 100644
--- a/DSEG7Classic-Regular.ttf
+++ b/fonts/DSEG7Classic-Regular.ttf
Binary files differ
diff --git a/thick_8x8.png b/fonts/thick_8x8.png
index 8f5fd09..8f5fd09 100644
--- a/thick_8x8.png
+++ b/fonts/thick_8x8.png
Binary files differ
diff --git a/thick_8x8.xml b/fonts/thick_8x8.xml
index 78f80c8..78f80c8 100644
--- a/thick_8x8.xml
+++ b/fonts/thick_8x8.xml
diff --git a/engine-loop-1.ogg b/sound/engine-loop-1.ogg
index d4fe9c6..d4fe9c6 100644
--- a/engine-loop-1.ogg
+++ b/sound/engine-loop-1.ogg
Binary files differ
diff --git a/music.ogg b/sound/music.ogg
index d33c37d..d33c37d 100644
--- a/music.ogg
+++ b/sound/music.ogg
Binary files differ
diff --git a/7segment-background.png b/sprites/7segment-background.png
index 56c1edd..56c1edd 100644
--- a/7segment-background.png
+++ b/sprites/7segment-background.png
Binary files differ
diff --git a/dash-background.png b/sprites/dash-background.png
index abb8e60..abb8e60 100644
--- a/dash-background.png
+++ b/sprites/dash-background.png
Binary files differ
diff --git a/grass.png b/sprites/grass.png
index 64d1261..64d1261 100644
--- a/grass.png
+++ b/sprites/grass.png
Binary files differ
diff --git a/road.png b/sprites/road.png
index c85bc43..c85bc43 100644
--- a/road.png
+++ b/sprites/road.png
Binary files differ
diff --git a/sprites/vehicles.png b/sprites/vehicles.png
new file mode 100644
index 0000000..5baa20e
--- /dev/null
+++ b/sprites/vehicles.png
Binary files differ
diff --git a/turbo.scm b/turbo.scm
index 7419a54..f2b5b07 100644
--- a/turbo.scm
+++ b/turbo.scm
@@ -9,27 +9,27 @@
;;;; Constants and variables
-(define the-font (load-bitmap-font "thick_8x8.xml"))
-(define font-7-segments (load-font "DSEG7Classic-Regular.ttf" 24))
+(define the-font (load-bitmap-font "fonts/thick_8x8.xml"))
+(define font-7-segments (load-font "fonts/DSEG7Classic-Regular.ttf" 24))
(define lane-height 65)
(define lane-length 192)
(define road-start-y 80)
(define road-section-position 0)
-(define road (load-tileset "road.png" lane-length lane-height))
+(define road (load-tileset "sprites/road.png" lane-length lane-height))
(define road-num-lanes 5)
(define road-end-y (+ road-start-y (* road-num-lanes lane-height)))
(define road-top (texture-atlas-ref road 2))
(define road-bottom (texture-atlas-ref road 0))
(define road-lane (texture-atlas-ref road 1))
-(define grass (load-image "grass.png"))
-(define dashboard-set (load-tileset "dash-background.png" 64 64))
+(define grass (load-image "sprites/grass.png"))
+(define dashboard-set (load-tileset "sprites/dash-background.png" 64 64))
(define dash-background (texture-atlas-ref dashboard-set 0))
(define dash-7seg-background (texture-atlas-ref dashboard-set 1))
(define grass-height 96)
-(define vehicles-sprites (load-tileset "vehicles.png" vehicle-length vehicle-height))
+(define vehicles-sprites (load-tileset "sprites/vehicles.png" vehicle-length vehicle-height))
(define player-velocity (vec2 0 0))
(define player-min-speed 250)
@@ -51,9 +51,9 @@
(define level-difficulty 1)
(define max-level 20)
-(define music-res (load-audio "music.ogg"))
+(define music-res (load-audio "sound/music.ogg"))
(define music (make-source #:audio music-res #:loop? #t))
-(define engine-res (load-audio "engine-loop-1.ogg"))
+(define engine-res (load-audio "sound/engine-loop-1.ogg"))
(define engine-sound (make-source #:audio engine-res #:loop? #t))
(define (calculate-vehicle-position lane)