From 6fb56f4fe0bb3e588d2aba1b563d6546de4beb89 Mon Sep 17 00:00:00 2001 From: SilicaAndPina Date: Wed, 22 Jul 2020 15:39:16 +1200 Subject: [PATCH] CommitLog | --- Spaceinator.project.gmx | 6 +++++- objects/obj_bullet_base.object.gmx | 23 +++++++++++++++++++++++ objects/obj_laser_bullet.object.gmx | 23 +++++++++++++++++++++++ objects/obj_player.object.gmx | 28 ++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 objects/obj_bullet_base.object.gmx create mode 100644 objects/obj_laser_bullet.object.gmx diff --git a/Spaceinator.project.gmx b/Spaceinator.project.gmx index b78c6f9..df39815 100644 --- a/Spaceinator.project.gmx +++ b/Spaceinator.project.gmx @@ -10,11 +10,11 @@ sprites\spr_player + sprites\spr_lazer_bullet sprites\spr_blocks sprites\spr_blackhole sprites\spr_enemy sprites\spr_asteroid - sprites\spr_lazer_bullet background\bg_space @@ -23,6 +23,10 @@ objects\obj_player objects\obj_controller + objects\obj_bullet_base + + objects\obj_laser_bullet + rooms\rm_game diff --git a/objects/obj_bullet_base.object.gmx b/objects/obj_bullet_base.object.gmx new file mode 100644 index 0000000..eeed8ac --- /dev/null +++ b/objects/obj_bullet_base.object.gmx @@ -0,0 +1,23 @@ + + + <undefined> + 0 + -1 + 0 + 0 + <undefined> + <undefined> + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + diff --git a/objects/obj_laser_bullet.object.gmx b/objects/obj_laser_bullet.object.gmx new file mode 100644 index 0000000..e831ec6 --- /dev/null +++ b/objects/obj_laser_bullet.object.gmx @@ -0,0 +1,23 @@ + + + spr_lazer_bullet + 0 + -1 + 0 + 0 + obj_bullet_base + <undefined> + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + diff --git a/objects/obj_player.object.gmx b/objects/obj_player.object.gmx index bea2b93..b5654e5 100644 --- a/objects/obj_player.object.gmx +++ b/objects/obj_player.object.gmx @@ -129,6 +129,34 @@ speed += 5 1 image_angle -= 5; + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + with(instance_create(x,y,obj_laser_bullet)) +{ + direction = image_angle + speed += 5 + +}