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,3 @@
depth = -600;
float_dir = 0;
float_spd = 3;

View File

@@ -0,0 +1,18 @@
// Pause
if pause_movement() { exit; }
// Floating animation
float_dir += float_spd;
y = ystart + dsin(float_dir) * 2;
// Check player collision
if place_meeting(x, y, o_player) {
var obtained_weapon = get_random_weapon();
if (obtained_weapon != undefined) {
audio_play_sound(item_pick, 0, false);
// Set global notification
global.weapon_notification = "Got " + obtained_weapon.name + "!";
global.weapon_notification_timer = 90; // 1.5 seconds at 60FPS
instance_destroy();
}
}

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

@@ -0,0 +1,39 @@
{
"$GMObject":"",
"%Name":"o_new_spell",
"eventList":[
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
],
"managed":true,
"name":"o_new_spell",
"overriddenProperties":[],
"parent":{
"name":"Spells",
"path":"folders/Spells.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_new_spell",
"path":"sprites/s_new_spell/s_new_spell.yy",
},
"spriteMaskId":null,
"visible":true,
}