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,12 @@
// Draw player's weapon
function draw_own_weapon() {
var _x_offset = lengthdir_x(weapon_offset_dist, aim_dir);
var _y_offset = lengthdir_y(weapon_offset_dist, aim_dir);
var _weapon_y_scale = 1;
if aim_dir > 90 and aim_dir < 270 {
_weapon_y_scale = -1;
}
draw_sprite_ext(s_aimer, 0, x + _x_offset, center_y + _y_offset, 1, _weapon_y_scale, aim_dir, c_white, 0.5);
};

13
scripts/draw_aimer/draw_aimer.yy generated Normal file
View File

@@ -0,0 +1,13 @@
{
"$GMScript":"v1",
"%Name":"draw_aimer",
"isCompatibility":false,
"isDnD":false,
"name":"draw_aimer",
"parent":{
"name":"Scripts",
"path":"folders/Scripts.yy",
},
"resourceType":"GMScript",
"resourceVersion":"2.0",
}