diff options
author | Gene Pasquet <dev@etenil.net> | 2024-05-26 12:09:48 +0100 |
---|---|---|
committer | Gene Pasquet <dev@etenil.net> | 2024-05-26 12:09:48 +0100 |
commit | b90d133377c259d00477491d9a58319fece77f14 (patch) | |
tree | 7b2aa4148854ee0fa24e820b26ace98338db97d6 | |
parent | 01e9651b1ad8051ec43a6a9ac5ef5a933cee744c (diff) |
Reorganise game files
-rwxr-xr-x | fonts/DSEG-LICENSE.txt (renamed from DSEG-LICENSE.txt) | 0 | ||||
-rw-r--r-- | fonts/DSEG7Classic-Regular.ttf (renamed from DSEG7Classic-Regular.ttf) | bin | 23272 -> 23272 bytes | |||
-rw-r--r-- | fonts/thick_8x8.png (renamed from thick_8x8.png) | bin | 1197 -> 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) | bin | 58862 -> 58862 bytes | |||
-rw-r--r-- | sound/music.ogg (renamed from music.ogg) | bin | 5237415 -> 5237415 bytes | |||
-rw-r--r-- | sprites/7segment-background.png (renamed from 7segment-background.png) | bin | 160 -> 160 bytes | |||
-rw-r--r-- | sprites/dash-background.png (renamed from dash-background.png) | bin | 303 -> 303 bytes | |||
-rw-r--r-- | sprites/grass.png (renamed from grass.png) | bin | 3706 -> 3706 bytes | |||
-rw-r--r-- | sprites/road.png (renamed from road.png) | bin | 2091 -> 2091 bytes | |||
-rw-r--r-- | sprites/vehicles.png | bin | 0 -> 6438 bytes | |||
-rw-r--r-- | turbo.scm | 16 |
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 Binary files differindex 5e02edc..5e02edc 100644 --- a/DSEG7Classic-Regular.ttf +++ b/fonts/DSEG7Classic-Regular.ttf diff --git a/thick_8x8.png b/fonts/thick_8x8.png Binary files differindex 8f5fd09..8f5fd09 100644 --- a/thick_8x8.png +++ b/fonts/thick_8x8.png 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 Binary files differindex d4fe9c6..d4fe9c6 100644 --- a/engine-loop-1.ogg +++ b/sound/engine-loop-1.ogg diff --git a/music.ogg b/sound/music.ogg Binary files differindex d33c37d..d33c37d 100644 --- a/music.ogg +++ b/sound/music.ogg diff --git a/7segment-background.png b/sprites/7segment-background.png Binary files differindex 56c1edd..56c1edd 100644 --- a/7segment-background.png +++ b/sprites/7segment-background.png diff --git a/dash-background.png b/sprites/dash-background.png Binary files differindex abb8e60..abb8e60 100644 --- a/dash-background.png +++ b/sprites/dash-background.png diff --git a/grass.png b/sprites/grass.png Binary files differindex 64d1261..64d1261 100644 --- a/grass.png +++ b/sprites/grass.png diff --git a/road.png b/sprites/road.png Binary files differindex c85bc43..c85bc43 100644 --- a/road.png +++ b/sprites/road.png diff --git a/sprites/vehicles.png b/sprites/vehicles.png Binary files differnew file mode 100644 index 0000000..5baa20e --- /dev/null +++ b/sprites/vehicles.png @@ -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) |