From 7f5a9f8a34727873e17f0924720e4c9f21e93b19 Mon Sep 17 00:00:00 2001 From: magicalfeyfenny Date: Thu, 17 Jun 2021 02:58:58 -0400 Subject: [PATCH] fixed 'treat uninitialized variables as 0' errors from conversion, added README.md --- README.md | 3 +++ objects/obj_HUD/Create_0.gml | 1 + objects/obj_HUD/obj_HUD.yy | 3 ++- objects/obj_ef_cartridge/Create_0.gml | 3 ++- objects/obj_ef_cartridge/obj_ef_cartridge.yy | 4 ++-- objects/obj_enemy_boss/Create_0.gml | 6 ++++-- objects/obj_enemy_boss/obj_enemy_boss.yy | 8 ++++---- objects/obj_enemy_mook/Create_0.gml | 7 ++++++- objects/obj_enemy_mook/Step_0.gml | 4 ++-- objects/obj_enemy_mook_180deg/Create_0.gml | 6 +++--- objects/obj_enemy_mook_180deg/obj_enemy_mook_180deg.yy | 2 +- objects/obj_enemy_mook_270deg/Create_0.gml | 7 ++++--- objects/obj_enemy_mook_270deg/obj_enemy_mook_270deg.yy | 2 +- objects/obj_enemy_mook_359deg/Create_0.gml | 7 ++++--- objects/obj_enemy_mook_359deg/obj_enemy_mook_359deg.yy | 2 +- objects/obj_enemy_mook_90deg/Create_0.gml | 7 ++++--- objects/obj_enemy_mook_90deg/obj_enemy_mook_90deg.yy | 2 +- objects/obj_mimsy/Create_0.gml | 1 + objects/obj_mimsy/obj_mimsy.yy | 5 +++-- objects/obj_player/Create_0.gml | 3 ++- 20 files changed, 51 insertions(+), 32 deletions(-) create mode 100644 README.md create mode 100644 objects/obj_HUD/Create_0.gml create mode 100644 objects/obj_mimsy/Create_0.gml diff --git a/README.md b/README.md new file mode 100644 index 0000000..352e261 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +escape from the wintry fortress +=== +my ludum dare 21 entry converted to gamemaker studio 2 format diff --git a/objects/obj_HUD/Create_0.gml b/objects/obj_HUD/Create_0.gml new file mode 100644 index 0000000..ee15a51 --- /dev/null +++ b/objects/obj_HUD/Create_0.gml @@ -0,0 +1 @@ +tacos = 0; \ No newline at end of file diff --git a/objects/obj_HUD/obj_HUD.yy b/objects/obj_HUD/obj_HUD.yy index 7f35678..508725d 100644 --- a/objects/obj_HUD/obj_HUD.yy +++ b/objects/obj_HUD/obj_HUD.yy @@ -18,7 +18,8 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"parent":{"name":"obj_HUD","path":"objects/obj_HUD/obj_HUD.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_ef_cartridge/Create_0.gml b/objects/obj_ef_cartridge/Create_0.gml index ac933c7..f25f6c0 100644 --- a/objects/obj_ef_cartridge/Create_0.gml +++ b/objects/obj_ef_cartridge/Create_0.gml @@ -4,4 +4,5 @@ gravity_direction = 270 vspeed = -1.875 + random(.25) orig_y = y hspeed = random(.5) - .25; - + +tested = 0; \ No newline at end of file diff --git a/objects/obj_ef_cartridge/obj_ef_cartridge.yy b/objects/obj_ef_cartridge/obj_ef_cartridge.yy index 8243668..96b2da2 100644 --- a/objects/obj_ef_cartridge/obj_ef_cartridge.yy +++ b/objects/obj_ef_cartridge/obj_ef_cartridge.yy @@ -21,8 +21,8 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"obj_ef_cartridge","path":"objects/obj_ef_cartridge/obj_ef_cartridge.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, - {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"parent":{"name":"obj_ef_cartridge","path":"objects/obj_ef_cartridge/obj_ef_cartridge.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_enemy_boss/Create_0.gml b/objects/obj_enemy_boss/Create_0.gml index 627056f..39c1b80 100644 --- a/objects/obj_enemy_boss/Create_0.gml +++ b/objects/obj_enemy_boss/Create_0.gml @@ -1,3 +1,5 @@ +// Inherit the parent event +event_inherited(); + life = 1000; -direction = 359; - +direction = 359; \ No newline at end of file diff --git a/objects/obj_enemy_boss/obj_enemy_boss.yy b/objects/obj_enemy_boss/obj_enemy_boss.yy index 53adea5..f9d4933 100644 --- a/objects/obj_enemy_boss/obj_enemy_boss.yy +++ b/objects/obj_enemy_boss/obj_enemy_boss.yy @@ -24,10 +24,10 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"obj_enemy_boss","path":"objects/obj_enemy_boss/obj_enemy_boss.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, - {"isDnD":false,"eventNum":0,"eventType":1,"collisionObjectId":null,"parent":{"name":"obj_enemy_boss","path":"objects/obj_enemy_boss/obj_enemy_boss.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, - {"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"parent":{"name":"obj_enemy_boss","path":"objects/obj_enemy_boss/obj_enemy_boss.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, - {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"parent":{"name":"obj_enemy_boss","path":"objects/obj_enemy_boss/obj_enemy_boss.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":1,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_enemy_mook/Create_0.gml b/objects/obj_enemy_mook/Create_0.gml index 5b97762..cfd03fe 100644 --- a/objects/obj_enemy_mook/Create_0.gml +++ b/objects/obj_enemy_mook/Create_0.gml @@ -1,4 +1,9 @@ life = 250; -hit = 0; direction = 350; +alarms = 0; +sounder = 0; +hit = 0; +shots = 0; +lnp_x = 0; +lnp_y = 0; \ No newline at end of file diff --git a/objects/obj_enemy_mook/Step_0.gml b/objects/obj_enemy_mook/Step_0.gml index 1606e06..0fa7fb7 100644 --- a/objects/obj_enemy_mook/Step_0.gml +++ b/objects/obj_enemy_mook/Step_0.gml @@ -1,4 +1,4 @@ -if hit = 1 +if hit == 1 { life -= 100 if alarms = 0 @@ -136,4 +136,4 @@ if (place_meeting(x,y+vspeed,obj_walls)) vspeed = 0; } image_index = round(direction / 360 * 16); - + diff --git a/objects/obj_enemy_mook_180deg/Create_0.gml b/objects/obj_enemy_mook_180deg/Create_0.gml index 9d1a003..f602193 100644 --- a/objects/obj_enemy_mook_180deg/Create_0.gml +++ b/objects/obj_enemy_mook_180deg/Create_0.gml @@ -1,4 +1,4 @@ -life = 250; -direction = 180; +// Inherit the parent event +event_inherited(); - +direction = 180; \ No newline at end of file diff --git a/objects/obj_enemy_mook_180deg/obj_enemy_mook_180deg.yy b/objects/obj_enemy_mook_180deg/obj_enemy_mook_180deg.yy index da1454b..1ec9882 100644 --- a/objects/obj_enemy_mook_180deg/obj_enemy_mook_180deg.yy +++ b/objects/obj_enemy_mook_180deg/obj_enemy_mook_180deg.yy @@ -24,7 +24,7 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"obj_enemy_mook_180deg","path":"objects/obj_enemy_mook_180deg/obj_enemy_mook_180deg.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_enemy_mook_270deg/Create_0.gml b/objects/obj_enemy_mook_270deg/Create_0.gml index d952a30..9e9b7f2 100644 --- a/objects/obj_enemy_mook_270deg/Create_0.gml +++ b/objects/obj_enemy_mook_270deg/Create_0.gml @@ -1,3 +1,4 @@ -life = 250; -direction = 270; - +// Inherit the parent event +event_inherited(); + +direction = 270; \ No newline at end of file diff --git a/objects/obj_enemy_mook_270deg/obj_enemy_mook_270deg.yy b/objects/obj_enemy_mook_270deg/obj_enemy_mook_270deg.yy index d6a08a0..663816b 100644 --- a/objects/obj_enemy_mook_270deg/obj_enemy_mook_270deg.yy +++ b/objects/obj_enemy_mook_270deg/obj_enemy_mook_270deg.yy @@ -24,7 +24,7 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"obj_enemy_mook_270deg","path":"objects/obj_enemy_mook_270deg/obj_enemy_mook_270deg.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_enemy_mook_359deg/Create_0.gml b/objects/obj_enemy_mook_359deg/Create_0.gml index 172e9df..0a131ad 100644 --- a/objects/obj_enemy_mook_359deg/Create_0.gml +++ b/objects/obj_enemy_mook_359deg/Create_0.gml @@ -1,3 +1,4 @@ -life = 250; -direction = 359; - +// Inherit the parent event +event_inherited(); + +direction = 0; \ No newline at end of file diff --git a/objects/obj_enemy_mook_359deg/obj_enemy_mook_359deg.yy b/objects/obj_enemy_mook_359deg/obj_enemy_mook_359deg.yy index f7b6677..2a3c031 100644 --- a/objects/obj_enemy_mook_359deg/obj_enemy_mook_359deg.yy +++ b/objects/obj_enemy_mook_359deg/obj_enemy_mook_359deg.yy @@ -24,7 +24,7 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"obj_enemy_mook_359deg","path":"objects/obj_enemy_mook_359deg/obj_enemy_mook_359deg.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_enemy_mook_90deg/Create_0.gml b/objects/obj_enemy_mook_90deg/Create_0.gml index 2dc59e4..77ac1db 100644 --- a/objects/obj_enemy_mook_90deg/Create_0.gml +++ b/objects/obj_enemy_mook_90deg/Create_0.gml @@ -1,3 +1,4 @@ -life = 250; -direction = 90; - +// Inherit the parent event +event_inherited(); + +direction = 90; \ No newline at end of file diff --git a/objects/obj_enemy_mook_90deg/obj_enemy_mook_90deg.yy b/objects/obj_enemy_mook_90deg/obj_enemy_mook_90deg.yy index 5f17115..9b8b01f 100644 --- a/objects/obj_enemy_mook_90deg/obj_enemy_mook_90deg.yy +++ b/objects/obj_enemy_mook_90deg/obj_enemy_mook_90deg.yy @@ -24,7 +24,7 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"obj_enemy_mook_90deg","path":"objects/obj_enemy_mook_90deg/obj_enemy_mook_90deg.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_mimsy/Create_0.gml b/objects/obj_mimsy/Create_0.gml new file mode 100644 index 0000000..ee15a51 --- /dev/null +++ b/objects/obj_mimsy/Create_0.gml @@ -0,0 +1 @@ +tacos = 0; \ No newline at end of file diff --git a/objects/obj_mimsy/obj_mimsy.yy b/objects/obj_mimsy/obj_mimsy.yy index 2df343e..3f67aa2 100644 --- a/objects/obj_mimsy/obj_mimsy.yy +++ b/objects/obj_mimsy/obj_mimsy.yy @@ -18,8 +18,9 @@ "physicsKinematic": false, "physicsShapePoints": [], "eventList": [ - {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"parent":{"name":"obj_mimsy","path":"objects/obj_mimsy/obj_mimsy.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, - {"isDnD":false,"eventNum":90,"eventType":9,"collisionObjectId":null,"parent":{"name":"obj_mimsy","path":"objects/obj_mimsy/obj_mimsy.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":90,"eventType":9,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, ], "properties": [], "overriddenProperties": [], diff --git a/objects/obj_player/Create_0.gml b/objects/obj_player/Create_0.gml index 1df4a17..204e66b 100644 --- a/objects/obj_player/Create_0.gml +++ b/objects/obj_player/Create_0.gml @@ -3,4 +3,5 @@ global.ammos = 14; global.clips = 3; friction = .5; -shot = 0; \ No newline at end of file +shot = 0; +reloading = 0; \ No newline at end of file