Skip to content

Commit

Permalink
added CatCarrier
Browse files Browse the repository at this point in the history
  • Loading branch information
othello777 committed Sep 15, 2023
1 parent a58d954 commit bdf947b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions build/src/catcarrier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ namespace DuckGame.src
[EditorGroup("DuckGnome")]
public class catcarrier : Holdable, IPlatform
{
private Sprite _pickupSprite;
private Sprite _sprite;

public catcarrier(float xval, float yval) : base(xval, yval)
{
//this.ammo = 1;
this.graphic = new Sprite("", 0f, 0f);
this._pickupSprite = new Sprite(this.GetPath("boomplate2.png"), 0f, 0f);
this._sprite = new Sprite(this.GetPath("boomplate2.png"), 0f, 0f);
this.center = new Vec2(6f, 18f);
this.collisionOffset = new Vec2(-8f, -3f);
this.collisionSize = new Vec2(16f, 9f);
this._holdOffset = new Vec2(-1f, 0f);
this.graphic = new Sprite(this.GetPath("catcarrier.png"));
this.center = new Vec2(6f, 6f);
this.collisionOffset = new Vec2(-4f, -6f);
this.collisionSize = new Vec2(18f, 14f);
this._holdOffset = new Vec2(-1f, -3f);
//this._bio = "Best prop in the game";
this._editorName = "Cat Carrier";
this.physicsMaterial = PhysicsMaterial.Plastic;
Expand All @@ -29,7 +24,7 @@ public override void OnPressAction()

this.duck.ThrowItem();
this.velocity = new Vec2(velocity.x * 8, velocity.y);
DevConsole.Log("CCVelocity: " + this.velocity.ToString());
//DevConsole.Log("CCVelocity: " + this.velocity.ToString());
}

public override void OnImpact(MaterialThing with, ImpactedFrom from)
Expand Down
Binary file added content/catcarrier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bdf947b

Please sign in to comment.