Skip to content

Commit

Permalink
Quality control
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Feb 18, 2019
1 parent f5a5dc4 commit 246122b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Game/GameLogic/Properties/Resources_Session_1.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<value>Hilfe! Helft mir!</value>
</data>
<data name="Not_knowing_how_the_hell_I_was_going_to_get_out_of_there_or_if_I_ever_would_living_in_a_constant_state_of_fear" xml:space="preserve">
<value>Nicht zu wissen, wie zur Hölle ich da raus komme, oder ob ich das überhaupt jemals schaffen würde... in einem stetigen Zustand der Angst zu leben.</value>
<value>Nicht zu wissen, wie zur Hölle ich da raus komme, oder ob ich das überhaupt jemals schaffen würde... in einem ständigen Zustand der Angst zu leben.</value>
</data>
<data name="That_by_far_was_the_worst_part_of_it" xml:space="preserve">
<value>Das war bei weitem das Schlimmste daran.</value>
Expand Down
20 changes: 12 additions & 8 deletions src/Game/GameLogic/actors/RyanBlooddrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,20 @@ public override void OnUpdate()
Get<SpriteData>().Color = new Color(255, 255, 255, TimeToLive / 2);
}

if (UpdateCount < 11)
if (UpdateCount <= 11)
{
UpdateCount++;
var Displacement = GetDisplacement(UpdateCount);

Get<Transform>().Position = TargetPosition + Displacement;
Get<Interaction>().Position = Get<Transform>().Position;
}
else if (UpdateCount == 11)
{
UpdateCount++;
Get<Sprite>().CurrentFrame = TargetFrame;
if (UpdateCount < 11)
{
Get<Interaction>().Position = Get<Transform>().Position;
}
else
{
Get<Sprite>().CurrentFrame = TargetFrame;
}
}

base.OnUpdate();
Expand All @@ -116,7 +118,9 @@ private Vector2 GetDisplacement(int updates)
case 7: return new Vector2(0, -15);
case 8: return new Vector2(0, -10);
case 9: return new Vector2(0, -5);
default: return Vector2.Zero;
case 10: return new Vector2(0, -5);
default:
return new Vector2(2, 0);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/Game/GameLogic/sessions/SessionOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ IEnumerator SessionOneScript()
Game.EnableSkipping();
Game.EnableTextSkipping(false);

yield return Delay.Seconds(1);

Game.PlaySong(content.audio.intro);

Tree.GUI.Interaction.Scene.Visible = false;
Expand Down

0 comments on commit 246122b

Please sign in to comment.