Esempio n. 1
0
 public Prop(PropTemplate template, Level level_context, Body physics, Shape physics_shape)
     : base(template.Image, template.Name, template.Desc, template.Mass, template.Friction, template.Collides, template.CanMove)
 {
     Image.AcquireUse();
     if (Image is Animation animation)
     {
         isanimated = true;
         animation.UseSequence("idle", AnimationDirections.South);
     }
     LevelContext = level_context;
     Physics      = physics;
     PhysicsShape = physics_shape;
     lastposition = GetPosition();
 }