Compare commits

...

5 Commits

Author SHA1 Message Date
gemdude46 fec8f07aef final maybe 2023-01-30 22:38:20 +00:00
gemdude46 fc5f9630bd replays 2023-01-30 19:49:06 +00:00
gemdude46 599dbb66e4 Merge branch 'alt-movement' 2023-01-30 19:10:58 +00:00
gemdude46 63a7788709 level 2 2023-01-30 19:10:26 +00:00
gemdude46 21c800d772 scene 2023-01-30 16:27:39 +00:00
11 changed files with 18 additions and 16 deletions

BIN
Replays/L1Easy.dat Normal file

Binary file not shown.

BIN
Replays/L2Easy.dat Normal file

Binary file not shown.

Binary file not shown.

View File

@ -6,6 +6,7 @@ var letty_snow = load("res://BGM/Letty_Snow_-_Utsuho.mp3")
var score_end = load("res://BGM/Score_End_-_Utsuho.mp3")
var player : AudioStreamPlayer
var difficulty: String = "Easy"
func _ready():

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -141,7 +141,7 @@ tracks/1/keys = {
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
cutscene_name = "LostRace"
cutscene_name = "WonRace"
next_scene_to_load = "DownhillAutoscroller2"
[node name="DialogueBox" type="TextureRect" parent="."]

View File

@ -108,7 +108,7 @@ func _process(delta):
if !stage_finished:
time_elapsed_in_race += delta
# 1 grid unit = 2ft, 1 grid unit / s = 1.36 mph
player_speed_mph = player.h_speed * 1.36
player_speed_mph = player.target_move_speed#player.h_speed * 1.36
if not race_over and player.pos.x >= finish_x_pos:
race_over = true

View File

@ -2,7 +2,7 @@ extends Node
class_name PlayerRecorder
var replay: ReplayRecording
var this_frame: bool = true
var this_frame: int = 0
var sprite: int = 0
var player: Node
var scene: Node
@ -20,15 +20,15 @@ func _ready():
player.recorder = self
scene = player.get_parent()
func _process(_delta):
if this_frame:
this_frame = false
func _physics_process(_delta):
if this_frame == 0:
this_frame = 1
replay.positions.append(player.pos)
replay.sprites.append(sprite)
replay.frames += 1
else:
this_frame = true
this_frame -= 1
func save():
replay.save_to_uri(save_to)

View File

@ -7,7 +7,7 @@ export var replay_file: String
func _ready():
._ready()
replay = ReplayRecording.new()
replay.load_from_uri(replay_file)
replay.load_from_uri(replay_file % MusicController.difficulty)
func process_unit(delta : float, time_elapsed : float):

View File

@ -63,7 +63,7 @@ _global_script_class_icons={
[application]
config/name="Moriya's Wanton Winter Wager"
run/main_scene="res://Scenes/DownhillAutoscroller.tscn"
run/main_scene="res://Scenes/TitleScreen.tscn"
config/icon="res://icon.png"
[autoload]