Add project code

This commit is contained in:
Andrew Trieu
2025-04-20 15:57:23 +03:00
committed by Andrew Trieu
commit 3fbd0e4977
612 changed files with 11196 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
depth = -600;
heal = 50;
float_dir = 0;
float_spd = 3;

View File

@@ -0,0 +1,12 @@
// Pause
if pause_movement() { exit; }
float_dir += float_spd;
y = ystart + dsin(float_dir) * 2;
// Heal player
if place_meeting(x, y, o_player) {
o_player.hp += heal;
audio_play_sound(item_pick, 0, false);
instance_destroy();
}

39
objects/o_potion/o_potion.yy generated Normal file
View File

@@ -0,0 +1,39 @@
{
"$GMObject":"",
"%Name":"o_potion",
"eventList":[
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
],
"managed":true,
"name":"o_potion",
"overriddenProperties":[],
"parent":{
"name":"Player",
"path":"folders/Player.yy",
},
"parentObjectId":null,
"persistent":false,
"physicsAngularDamping":0.1,
"physicsDensity":0.5,
"physicsFriction":0.2,
"physicsGroup":1,
"physicsKinematic":false,
"physicsLinearDamping":0.1,
"physicsObject":false,
"physicsRestitution":0.1,
"physicsSensor":false,
"physicsShape":1,
"physicsShapePoints":[],
"physicsStartAwake":true,
"properties":[],
"resourceType":"GMObject",
"resourceVersion":"2.0",
"solid":false,
"spriteId":{
"name":"s_potion",
"path":"sprites/s_potion/s_potion.yy",
},
"spriteMaskId":null,
"visible":true,
}