remplissage, menu, gamin audio et autre
This commit is contained in:
@@ -48,7 +48,8 @@ public partial class Player : CharacterBody2D
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
this.AddToGroup("player");
|
||||
cam.PositionSmoothingEnabled = false;
|
||||
this.AddToGroup("player");
|
||||
|
||||
}
|
||||
|
||||
@@ -95,7 +96,7 @@ public partial class Player : CharacterBody2D
|
||||
}
|
||||
|
||||
Vector2 direction = Input.GetVector("left", "right", "up", "down");
|
||||
direction = direction.Normalized();
|
||||
//direction = direction.Normalized();
|
||||
if (direction != Vector2.Zero)
|
||||
{
|
||||
velocity = direction * Speed * (float)delta;
|
||||
|
||||
Reference in New Issue
Block a user