Compare commits
No commits in common. "master" and "alt-movement" have entirely different histories.
master
...
alt-moveme
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -6,7 +6,6 @@ var letty_snow = load("res://BGM/Letty_Snow_-_Utsuho.mp3")
|
||||||
var score_end = load("res://BGM/Score_End_-_Utsuho.mp3")
|
var score_end = load("res://BGM/Score_End_-_Utsuho.mp3")
|
||||||
|
|
||||||
var player : AudioStreamPlayer
|
var player : AudioStreamPlayer
|
||||||
var difficulty: String = "Easy"
|
|
||||||
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -141,7 +141,7 @@ tracks/1/keys = {
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
cutscene_name = "WonRace"
|
cutscene_name = "LostRace"
|
||||||
next_scene_to_load = "DownhillAutoscroller2"
|
next_scene_to_load = "DownhillAutoscroller2"
|
||||||
|
|
||||||
[node name="DialogueBox" type="TextureRect" parent="."]
|
[node name="DialogueBox" type="TextureRect" parent="."]
|
||||||
|
|
|
@ -108,7 +108,7 @@ func _process(delta):
|
||||||
if !stage_finished:
|
if !stage_finished:
|
||||||
time_elapsed_in_race += delta
|
time_elapsed_in_race += delta
|
||||||
# 1 grid unit = 2ft, 1 grid unit / s = 1.36 mph
|
# 1 grid unit = 2ft, 1 grid unit / s = 1.36 mph
|
||||||
player_speed_mph = player.target_move_speed#player.h_speed * 1.36
|
player_speed_mph = player.h_speed * 1.36
|
||||||
|
|
||||||
if not race_over and player.pos.x >= finish_x_pos:
|
if not race_over and player.pos.x >= finish_x_pos:
|
||||||
race_over = true
|
race_over = true
|
||||||
|
|
|
@ -2,7 +2,7 @@ extends Node
|
||||||
class_name PlayerRecorder
|
class_name PlayerRecorder
|
||||||
|
|
||||||
var replay: ReplayRecording
|
var replay: ReplayRecording
|
||||||
var this_frame: int = 0
|
var this_frame: bool = true
|
||||||
var sprite: int = 0
|
var sprite: int = 0
|
||||||
var player: Node
|
var player: Node
|
||||||
var scene: Node
|
var scene: Node
|
||||||
|
@ -20,15 +20,15 @@ func _ready():
|
||||||
player.recorder = self
|
player.recorder = self
|
||||||
scene = player.get_parent()
|
scene = player.get_parent()
|
||||||
|
|
||||||
func _physics_process(_delta):
|
func _process(_delta):
|
||||||
if this_frame == 0:
|
if this_frame:
|
||||||
this_frame = 1
|
this_frame = false
|
||||||
replay.positions.append(player.pos)
|
replay.positions.append(player.pos)
|
||||||
replay.sprites.append(sprite)
|
replay.sprites.append(sprite)
|
||||||
replay.frames += 1
|
replay.frames += 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
this_frame -= 1
|
this_frame = true
|
||||||
|
|
||||||
func save():
|
func save():
|
||||||
replay.save_to_uri(save_to)
|
replay.save_to_uri(save_to)
|
||||||
|
|
|
@ -7,7 +7,7 @@ export var replay_file: String
|
||||||
func _ready():
|
func _ready():
|
||||||
._ready()
|
._ready()
|
||||||
replay = ReplayRecording.new()
|
replay = ReplayRecording.new()
|
||||||
replay.load_from_uri(replay_file % MusicController.difficulty)
|
replay.load_from_uri(replay_file)
|
||||||
|
|
||||||
|
|
||||||
func process_unit(delta : float, time_elapsed : float):
|
func process_unit(delta : float, time_elapsed : float):
|
||||||
|
|
|
@ -63,7 +63,7 @@ _global_script_class_icons={
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Moriya's Wanton Winter Wager"
|
config/name="Moriya's Wanton Winter Wager"
|
||||||
run/main_scene="res://Scenes/TitleScreen.tscn"
|
run/main_scene="res://Scenes/DownhillAutoscroller.tscn"
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
Loading…
Reference in New Issue