From 9c649efacdf14096fe3d2bfb862d7016c0bcb7ec Mon Sep 17 00:00:00 2001 From: Gene Pasquet <dev@etenil.net> Date: Sat, 25 May 2024 06:12:50 +0100 Subject: Better vehicle sprites --- turbo.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'turbo.scm') diff --git a/turbo.scm b/turbo.scm index c28f508..d813518 100644 --- a/turbo.scm +++ b/turbo.scm @@ -58,7 +58,7 @@ (vec2 (window-width (current-window)) (+ road-start-y (* 65 (- lane 1)) - (/ (- lane-height vehicle-height) 2)))) + (floor (/ (- lane-height vehicle-height) 2))))) (define (random-lane-start-pos) (calculate-vehicle-position (+ 1 (random road-num-lanes)))) @@ -81,7 +81,7 @@ (set-vehicle-speed! veh (+ player-min-speed (* 75 lane-num)) ) (set-vehicle-active! veh #f))) -(define vehicles (make-vehicle-list (list) 0)) +(define vehicles (make-vehicle-list (list) 1)) (for-each vehicle-reset-ahead vehicles) ;; Important: set one vehicle active to bootstrap the game ???? -- cgit v1.2.3