|
@ -19,7 +19,8 @@ var player = new Entity(layer); |
|
|
debugLayer.Attach(player); |
|
|
debugLayer.Attach(player); |
|
|
player.Attach(new Transform2DComponent(128, 128, 0, 1)); |
|
|
player.Attach(new Transform2DComponent(128, 128, 0, 1)); |
|
|
player.Attach(new CrosshairGizmoComponent()); |
|
|
player.Attach(new CrosshairGizmoComponent()); |
|
|
player.Attach(new ExampleInputComponent(100f, 0.25f)); |
|
|
|
|
|
|
|
|
player.Attach(new ExampleInputComponent(250f, 0.35f)); |
|
|
|
|
|
player.Attach(new InertiaComponent(0.999f)); |
|
|
|
|
|
|
|
|
var entity = new Entity(player); |
|
|
var entity = new Entity(player); |
|
|
entity.Attach(new Transform2DComponent(-16, -16, 0, 4)); |
|
|
entity.Attach(new Transform2DComponent(-16, -16, 0, 4)); |
|
@ -31,7 +32,7 @@ var entity2 = new Entity(entity); |
|
|
entity2.Attach(new Transform2DComponent(5, -10, 0)); |
|
|
entity2.Attach(new Transform2DComponent(5, -10, 0)); |
|
|
entity2.Attach(new SpriteComponent("Laser.png")); |
|
|
entity2.Attach(new SpriteComponent("Laser.png")); |
|
|
var arrow = new ArrowComponent(2, 0); |
|
|
var arrow = new ArrowComponent(2, 0); |
|
|
arrow.rawValue = new System.Numerics.Complex(0, -12); |
|
|
|
|
|
|
|
|
arrow.rawValue = new System.Numerics.Complex(0, -48); |
|
|
entity2.Attach(arrow); |
|
|
entity2.Attach(arrow); |
|
|
entity2.Attach(new ExampleShootingInputComponent()); |
|
|
entity2.Attach(new ExampleShootingInputComponent()); |
|
|
|
|
|
|
|
|