This commit is contained in:
Alexey 2024-10-31 17:39:35 +03:00
commit 0556f63d2d
119 changed files with 2908 additions and 0 deletions

View file

@ -0,0 +1,7 @@
/// @description Действие с кнопкой
switch action
{
case 1:
show_message("ВСТАНЬ МИД! Ты конченый? Встань и стой со мной, Фишман, ты играешь по 20 ммов в день. Нахуя? Если ты долбоёб?");
break;
}

View file

@ -0,0 +1,9 @@
action = -1;
text = "";
_x = x;
_y = y;
__x = 0;
__y = 0;
width = 5 * image_xscale;
height = 5 * image_yscale;
color = global.playerColor;

View file

View file

@ -0,0 +1,2 @@
draw_sprite_stretched_ext(spMenuBack, 0, _x, _y, width, height, color, 1);
draw_text_color(_x + width/2, _y + height/2, text, color, color, color, color, 1);

View file

@ -0,0 +1,8 @@
__x = camera_get_view_x(view_camera[0]);
__y = camera_get_view_y(view_camera[0]);
x = _x + __x;
y = _y + __y;
if (mouse_x >= x and mouse_x <= x + width) and (mouse_y >= y and mouse_y <= y + height) and mouse_check_button_pressed(mb_left)
{
alarm[0] = 1;
}

View file

@ -0,0 +1,40 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obGuiButton",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":64,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": {
"name": "spMenuBack",
"path": "sprites/spMenuBack/spMenuBack.yy",
},
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,2 @@
global.money += amount;
instance_destroy();

View file

@ -0,0 +1 @@
amount = 0;

View file

@ -0,0 +1 @@
draw_text(x, y, string(amount) + " §")

View file

@ -0,0 +1,2 @@
x = obSpaceship.x;
y = obSpaceship.y;

View file

@ -0,0 +1,4 @@
if distance_to_object(obSpaceship) <= 64
{
alarm[0] = 1;
}

View file

@ -0,0 +1,37 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obBounty",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":7,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": null,
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,2 @@
r = 9; //радиус
host = obSpaceship

View file

@ -0,0 +1,6 @@
if !host.inMenu
{
draw_circle_color(xx, yy, r, global.playerColor, global.playerColor, true);
draw_line_color(xx - r, yy, xx + r, yy, global.playerColor, global.playerColor);
draw_line_color(xx, yy - r, xx, yy + r, global.playerColor, global.playerColor);
}

View file

@ -0,0 +1,5 @@
xx = device_mouse_x_to_gui(0);
yy = device_mouse_y_to_gui(0);
x = mouse_x;
y = mouse_y;

View file

@ -0,0 +1,35 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obCursor",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":64,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": null,
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,2 @@
destAngle = random(360);
shipSpeed = random(shipMaxSpeed);

View file

@ -0,0 +1 @@
shipSpeed *= 0.25

View file

View file

@ -0,0 +1,13 @@
image_xscale = 0.8;
image_yscale = 0.8;
alert = 0;
shipSpeed = 0;
shipMaxSpeed = 5;
shipTurnRate = 180;
destAngle = 0;
alarm[0] = 1;
shipHealth = 15;
rocketDir = point_direction(0, 0, 32, 0); //оффсеты для спавна ракет
rocketLen = point_distance(0, 0, 32, 0); //то же

View file

@ -0,0 +1,2 @@
draw_sprite_ext(spShip1, 0, x, y, 0.8, 0.8, image_angle, global.faction2Color, 1);
draw_text(x, y - 32, shipHealth);

View file

@ -0,0 +1,76 @@
if alert = 0 and distance_to_object(obSpaceship) > 256 and alarm[0]=-1
{
alarm[0] = irandom_range(room_speed * 5, room_speed * 10);
}
else if distance_to_object(obSpaceship) <= 256 and !obSpaceship.inMenu
{
alert = 1;
}
if alert = 1
{
if distance_to_object(obSpaceship) > 1024
{
alert = 0;
alarm[0] = 1;
}
shipSpeed = shipMaxSpeed;
if shipHealth > 5
{
if abs(angle_difference(destAngle, direction)) <= 10 and alarm[2] = -1
{
lat = point_direction(x, y, obCursor.x, obCursor.y);
lenX = lengthdir_x(rocketLen, lat + rocketDir);
lenY = lengthdir_y(rocketLen, lat + rocketDir);
laser = instance_create_layer(x + lenX, y + lenY, "Instances", obLaser);
laser.direction = direction;
laser.owner = id;
alarm[2] = room_speed/5;
}
if distance_to_object(obSpaceship) >= 128
{
destAngle = point_direction(x, y, obSpaceship.x, obSpaceship.y);
}
else
{
destAngle += 1;
}
}
}
image_angle = direction;
speed = shipSpeed;
if direction != destAngle
{
if angle_difference(destAngle, direction)<0
{
direction -= shipTurnRate/room_speed;
}
else
{
direction += shipTurnRate/room_speed;
}
}
if (x < 0 or x > room_width or y < 0 or y > room_height)
{
destAngle = point_direction(x, y, obSpacestation.x, obSpacestation.y);
shipSpeed = shipMaxSpeed;
}
if place_meeting(x, y, obSpacestation)
{
x = xprevious - lengthdir_x(16, point_direction(x, y, obSpacestation.x, obSpacestation.y));
y = yprevious - lengthdir_y(16, point_direction(x, y, obSpacestation.x, obSpacestation.y));
alarm[1] = 1;
alarm[0] = 1;
}
if shipHealth <= 0
{
instance_create_layer(random(room_width), random(room_height), "Instances", obEnemy);
bounty = instance_create_layer(x, y, "Instances", obBounty);
bounty.amount = irandom_range(10, 25);
instance_destroy();
}

View file

@ -0,0 +1,41 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obEnemy",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":1,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":2,"eventType":2,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": {
"name": "spShip1",
"path": "sprites/spShip1/spShip1.yy",
},
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,36 @@
randomize(); //рандомизировать...рандом.
stars = round(sqrt(room_width * room_height / 100) ) + irandom_range(50, 75)
global.bindAccelerate = ord("W");
global.bindDeaccelerate = ord("S");
global.bindFire = vk_space;
global.bindTurnLeft = ord("A");
global.bindTurnRight = ord("D");
global.bindTurbo = vk_lshift;
global.movementType = 0;//0 - мышь, 1 - клава
global.money = 0;
global.playerColor = make_color_hsv(random(255), irandom_range(128, 255), 255);
global.faction1Color = make_color_hsv(random(255), irandom_range(128, 255), 255);
global.faction2Color = make_color_hsv(random(255), irandom_range(128, 255), 255);
repeat(stars)
{
instance_create_layer(random(room_width), random(room_height), "Stars", obStar); //создание звёзд на фоне
}
if room = rMain
{
spaceship = instance_create_layer(room_width/2, room_height/2, "Instances", obSpaceship); //создание корабля
cursor = instance_create_layer(x, y, "Instances", obCursor); // создание курсора
station1 = instance_create_layer(irandom_range(576, room_width-576), irandom_range(576, room_height-576), "Instances", obSpacestation); //1 станция
}
window_set_cursor(cr_none); //прячет оригинальный курсор
repeat(5)
{
instance_create_layer(random(room_width), random(room_height), "Instances", obEnemy)
}

View file

@ -0,0 +1,3 @@
draw_set_halign(fa_middle);
draw_set_valign(fa_middle);
draw_set_font(fMenu);

View file

@ -0,0 +1,58 @@
if keyboard_check_pressed(vk_f1)
{
show_message("Список изменений:\n"+
"1.0:\n"+
"Добавлен кораблик и механика полёта\n"+
"Добавлены звёзды\n"+
"Добавлена ракета и её цель\n"+
"1.1:\n"+
"Теперь всё, касающееся игрока, имеет рандомный, одинаковый цвет\n"+
"Изменены спрайты звезды, кораблика и ракеты\n"+
"Звёзды стали более рандомными\n"+
"Карта была расширена\n"+
"Скорость поворота ракеты увеличена\n"+
"Добавлен лазер\n"+
"1.2\n"+
"Добавлена космическая станция\n"+
"Добавлено управление кораблём через клавиатуру\n"+
"Звёзды теперь имеют свой цвет\n"+
"Немного увеличено кол-во звёзд\n"+
"Добавлен магазин и улучшения корабля\n"+
"Обновлён интерфейс\n"+
"Добавлены враги. Теперь игра имеет смысл\n"+
"Добавлена вкладка с управлением, вызывается на F3\n"+
"(p.s. в игре есть секретное сообщение)");
}
if keyboard_check_pressed(vk_f2)
{
if global.movementType = 0
{
global.movementType = 1;
}
else
{
global.movementType = 0;
}
}
if keyboard_check_pressed(vk_f3)
{
show_message("Управление:\n"+
"W - Ускорение, S - Торможение\n"+
"A/D - Поворот корабля (только в режиме управления клавиатурой)\n"+
"ЛКМ - Выстрел лазером\n"+
"Пробел - Выстрел ракетой\n"+
"Shift - Турбо\n"+
"F1 - Список изменений\n"+
"F2 - Изменить режим управления (мышь/клавиатура)\n"+
"F3 - Открыть вот это сообщение, которое вы прямо сейчас наблюдаете");
}
if obSpaceship.inMenu
{
window_set_cursor(cr_default);
}
else
{
window_set_cursor(cr_none);
}

View file

@ -0,0 +1,35 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obGlobal",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.yy",
},
"parentObjectId": null,
"persistent": true,
"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": [],
"solid": false,
"spriteId": null,
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,9 @@
damage = 1;
speed = 12;
lenX=0;
lenY=0;
x1 = 0;
x2 = 0;
y1 = 0;
y2 = 0;
owner = obSpaceship;

View file

@ -0,0 +1,8 @@
if owner = obSpaceship
{
draw_line_color(x1, y1, x2, y2, global.playerColor, global.playerColor);
}
else
{
draw_line_color(x1, y1, x2, y2, global.faction2Color, global.faction2Color);
}

View file

@ -0,0 +1 @@
instance_destroy();

View file

@ -0,0 +1,37 @@
lenX = lengthdir_x(8, direction);
lenY = lengthdir_y(8, direction);
x1 = x + lenX;
x2 = x - lenX;
y1 = y + lenY;
y2 = y - lenY;
if collision_line(x1, y1, x2, y2, obSpacestation, true, false)
{
instance_destroy();
}
if collision_line(x1, y1, x2, y2, obEnemy, true, false)
{
instance_nearest(x, y, obEnemy).shipHealth -= damage;
instance_destroy();
}
if collision_line(x1, y1, x2, y2, obSpaceship, true, false)
{
if obSpaceship.shipShield >= damage
{
obSpaceship.shipShield -= damage;
obSpaceship.alarm[5] = obSpaceship.shield.shieldDelay * room_speed;
}
else if obSpaceship.shipShield < damage and obSpaceship.shield > 0
{
damage -= obSpaceship.shipShield;
obSpaceship.shipShield = 0;
obSpaceship.alarm[5] = obSpaceship.shield.shieldDelay * room_speed;
obSpaceship.shipHealth -= damage;
}
else
{
obSpaceship.shipHealth -= damage;
}
instance_destroy();
}

View file

@ -0,0 +1,36 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obLaser",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":7,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": null,
"spriteMaskId": null,
"visible": true,
}

View file

View file

@ -0,0 +1,9 @@
host = instance_nearest(x, y, obRocket);
if distance_to_object(instance_nearest(x, y, obEnemy)) <= 128
{
target = instance_nearest(x, y, obEnemy);
}
else
{
target = 0;
}

View file

@ -0,0 +1,3 @@
draw_circle_color(x, y, 4, global.playerColor, global.playerColor, true);
draw_line_color(x - 4, y - 4, x + 4, y + 4, global.playerColor, global.playerColor);
draw_line_color(x - 4, y + 4, x + 4, y - 4, global.playerColor, global.playerColor);

View file

@ -0,0 +1,13 @@
if distance_to_object(host) <= 2
{
instance_destroy();
}
if instance_exists(target)
{
if target != 0
{
x = target.x;
y = target.y;
}
}

View file

@ -0,0 +1,36 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obMarker",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":2,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": null,
"spriteMaskId": null,
"visible": true,
}

View file

View file

@ -0,0 +1,16 @@
rocketSpeed = 10; //тек. скорость
rocketTurnRate = 180; //скорость поворота
destination = instance_create_layer(obCursor.x, obCursor.y, "Instances", obMarker); //точка назначения
destination.host = id;
destAngle = point_direction(x, y, destination.x, destination.y); //угол назначения
alarm[0] = 10;
lx = 0;
ly = 0;
damage = 5;
owner = obSpaceship;

View file

@ -0,0 +1,8 @@
if owner = obSpaceship
{
draw_sprite_ext(spRocket1, image_index, x, y, 1, 1, direction, global.playerColor, 1)
}
else
{
draw_sprite_ext(spRocket1, image_index, x, y, 1, 1, direction, global.faction2Color, 1)
}

View file

@ -0,0 +1,4 @@
if !instance_exists(destination)
{
instance_destroy();
}

View file

@ -0,0 +1,77 @@
if !instance_exists(destination) and alarm[0] = -1
{
destAngle = direction;
}
else if instance_exists(destination)
{
speed = rocketSpeed;
image_angle = direction;
if direction != destAngle //ограниченный поворот
{
if angle_difference(destAngle, direction) < 0
{
direction -= rocketTurnRate/room_speed;
}
else
{
direction += rocketTurnRate/room_speed;
}
}
else
{
direction = destAngle;
}
destAngle = point_direction(x, y, destination.x, destination.y);
if collision_line(x - 6 + lx, y + ly, x + 6 + lx, y + ly, obSpacestation, true, false) and alarm[0] = -1
{
instance_destroy(destination);
instance_destroy();
}
if collision_line(x - 6 + lx, y + ly, x + 6 + lx, y + ly, obEnemy, true, false) and alarm[0] = -1
{
instance_nearest(x, y, obEnemy).shipHealth -= damage;
instance_destroy();
}
if collision_line(x - 6 + lx, y + ly, x + 6 + lx, y + ly, obSpaceship, true, false) and alarm[0] = -1
{
if obSpaceship.shipShield >= damage
{
obSpaceship.shipShield -= damage;
obSpaceship.alarm[5] = obSpaceship.shield.shieldDelay * room_speed;
}
else if obSpaceship.shipShield < damage and obSpaceship.shield > 0
{
damage -= obSpaceship.shipShield;
obSpaceship.shipShield = 0;
obSpaceship.alarm[5] = obSpaceship.shield.shieldDelay * room_speed;
obSpaceship.shipHealth -= damage;
}
else
{
obSpaceship.shipHealth -= damage;
}
instance_destroy();
}
if collision_line(x - 6 + lx, y + ly, x + 6 + lx, y + ly, obRocket, true, true)
{
instance_destroy(destination);
instance_destroy(other);
instance_destroy();
}
lx = lengthdir_x(4, direction);
ly = lengthdir_y(4, direction);
}
if instance_exists(destination)
{
if destination.target = 0
{
rocketTurnRate++;
}
}

View file

@ -0,0 +1,40 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obRocket",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":7,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": {
"name": "spRocket1",
"path": "sprites/spRocket1/spRocket1.yy",
},
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1 @@
///@description первичка

View file

@ -0,0 +1 @@
shipSpeed *= 0.75;

View file

@ -0,0 +1,2 @@
x = obSpacestationMenu.x;
y = obSpacestationMenu.y;

View file

@ -0,0 +1,71 @@
/// @description магазин
switch action
{
case 1:
if shipHealth < shipMaxHealth and global.money >= 30
{
shipHealth = shipMaxHealth;
global.money -= 30;
action = 0;
}
break;
case 2:
if global.money >= 20
{
shipTurboFuel += shipTurboFuelLimit/5;
global.money -= 20;
action = 0;
}
break;
case 3:
if global.money >= 10
{
rockets += 5;
global.money -= 10;
action = 0;
}
break;
case 4:
if global.money >= 100
{
switch shipType
{
case global.shipMk1:
shipType = global.shipMk2;
global.money -= 100;
action = 0;
break;
case global.shipMk2:
shipType = global.shipMk3;
global.money -= 100;
action = 0;
break;
case global.shipMk3:
show_message("Слышь, ублюдок ебаный, прекрати хуярить лес, немедленно, блядская тварь 2000 ранга нахуй!\n"+
"Ты заебал уже, меня твоё нахуй присутствие в игре раздражает блять!\n"+
"Выйди нахуй, разбей свои тревела ебучие, не позорься, блять, тварь блядская.");
break;
}
}
case 5:
shield = global.shieldMk1;
action = 0;
break;
case 6:
shield = global.shieldMk2;
action = 0;
break;
case 7:
primaryWeapon = global.laserMk1;
action = 0;
break;
case 8:
primaryWeapon = global.laserMk2;
action = 0;
break;
}

View file

@ -0,0 +1 @@
/// @description вторичка

View file

@ -0,0 +1 @@
/// @description щиты

View file

@ -0,0 +1,2 @@
x = xprevious;
y = yprevious;

View file

@ -0,0 +1,49 @@
shipSpeed = 0; //тек. скорость
shipAccel = 2; //скорость ускорения
shipTurnRate = 180; //скорость поворота
shipTurboSpeed = 10;
shipTurboFuel = room_speed * 30;
shipTurboFuelLimit = room_speed * 30;
shipSpeedUpCap = 5; //макс скорость
shipSpeedDownCap = -1.25; //мин скорость
destAngle = 0; //угол назначения
rocketDir = point_direction(0, 0, 32, 0); //оффсеты для спавна ракет
rocketLen = point_distance(0, 0, 32, 0); //то же
spacestationLocation = 0; //угол станции отн корабля
inMenu = 0;
camX = 0;
camY = 0;
guiMouseX = 0;
guiMouseY = 0;
shipHealth = 40;
shipMaxHealth = 40;
alarm[2] = 1;
turbo = 0;
shipType = global.shipMk1;
primaryWeapon = global.laserMk1;
secondaryWeapon = global.rocketMk1;
engine = global.engineMk1;
action = 0;
rockets = 20;
shield = global.shieldMk1;
shipShield = 5;
inventory = array_create(5, global.nonei);

View file

@ -0,0 +1,24 @@
draw_sprite_ext(spShip1, 0, x, y, 1, 1, image_angle, global.playerColor, 1)
if inMenu
{
draw_sprite_stretched_ext(spMenuBack, 0, camX+128, camY+128, 128, 128, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+132, camY+131, 120, 28, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+132, camY+162, 120, 28, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+132, camY+193, 120, 28, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+132, camY+224, 120, 28, global.faction1Color, 1);
draw_text_ext_color(camX + 192, camY + 145, "Восстановить здоровье (30 §)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_text_ext_color(camX + 192, camY + 176, "+20% топлива (20 §)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_text_ext_color(camX + 192, camY + 207, "+5 ракет (10 §)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_text_ext_color(camX + 192, camY + 238, "Улучшить корабль (100 §)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+272, camY+128, 128, 128, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+276, camY+131, 120, 28, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+276, camY+162, 120, 28, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+276, camY+193, 120, 28, global.faction1Color, 1);
draw_sprite_stretched_ext(spMenuBack, 0, camX+276, camY+224, 120, 28, global.faction1Color, 1);
draw_text_ext_color(camX + 336, camY + 145, "Щит Mk1 (5, 1, 3)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_text_ext_color(camX + 336, camY + 176, "Щит Mk2 (10, 1, 5)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_text_ext_color(camX + 336, camY + 207, "Лазер Mk1 (1, 12, 5)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
draw_text_ext_color(camX + 336, camY + 238, "Лазер Mk2 (2, 12, 5)", 9, 120, global.faction1Color, global.faction1Color, global.faction1Color, global.faction1Color, 1);
}

View file

@ -0,0 +1,28 @@
draw_set_valign(fa_middle);
draw_set_halign(fa_middle);
draw_line_color(1366-75, 768-256, 1366-200, 768-256, global.playerColor, global.playerColor);
draw_line_color(1366-100, 768-271, 1366-100, 768-241, global.playerColor, global.playerColor);
draw_rectangle_color(1366-100, 768-266, 1366-shipSpeed/shipSpeedUpCap*100-100, 768-246, global.playerColor, global.playerColor, global.playerColor, global.playerColor, true); //скорость
draw_rectangle_color(1366-76, 768-270, 1366-199, 768-240, global.playerColor, global.playerColor, global.playerColor, global.playerColor, true);
draw_text_color(150, 768-160, string(shipShield) + " # " + string(global.money) + " § " + string(round(shipTurboFuel/shipTurboFuelLimit*100)) + " % » " + string(rockets) + " ¤", global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1)
if !inMenu
{
draw_line_color(1366/2 + lengthdir_x(128, spacestationLocation), 768/2 + lengthdir_y(128, spacestationLocation), 1366/2 + lengthdir_x(192, spacestationLocation), 768/2 + lengthdir_y(192, spacestationLocation), global.faction1Color, global.faction1Color); //указатель станции
}
draw_line_color(1366/2 + lengthdir_x(160, point_direction(x, y, obEnemy.x, obEnemy.y)), 768/2 + lengthdir_y(160, point_direction(x, y, obEnemy.x, obEnemy.y)), 1366/2 + lengthdir_x(192, point_direction(x, y, obEnemy.x, obEnemy.y)), 768/2 + lengthdir_y(192, point_direction(x, y, obEnemy.x, obEnemy.y)), global.faction2Color, global.faction2Color);
draw_rectangle_color(64, 768-64, 96, 768-96, global.playerColor, global.playerColor, global.playerColor, global.playerColor, true);
draw_text_color(80, 768-78, string(shipHealth) + " +", global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1);
draw_sprite_stretched_ext(spMenuBack, 0, 1366-144, 768-184, 128, 168, global.playerColor, 1);
draw_sprite_stretched_ext(spMenuBack, 0, 1366-140, 768-180, 120, 28, global.playerColor, 1);
draw_sprite_stretched_ext(spMenuBack, 0, 1366-140, 768-149, 120, 28, global.playerColor, 1);
draw_sprite_stretched_ext(spMenuBack, 0, 1366-140, 768-118, 120, 28, global.playerColor, 1);
draw_sprite_stretched_ext(spMenuBack, 0, 1366-140, 768-87, 120, 28, global.playerColor, 1);
draw_sprite_stretched_ext(spMenuBack, 0, 1366-140, 768-56, 120, 28, global.playerColor, 1);
draw_text_ext_color(1366-80, 768-166, shipType.sname, 9, 120, global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1);
draw_text_ext_color(1366-80, 768-135, engine.sname, 9, 120, global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1);
draw_text_ext_color(1366-80, 768-104, primaryWeapon.sname, 9, 120, global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1);
draw_text_ext_color(1366-80, 768-73, secondaryWeapon.sname, 9, 120, global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1);
draw_text_ext_color(1366-80, 768-42, shield.sname, 9, 120, global.playerColor, global.playerColor, global.playerColor, global.playerColor, 1);

View file

@ -0,0 +1,236 @@
destAngle = point_direction(x, y, obCursor.x, obCursor.y);
if direction != destAngle //ограниченный поворот
{
if global.movementType = 0
{
if angle_difference(destAngle, direction)<0
{
direction -= shipTurnRate/room_speed;
}
else
{
direction += shipTurnRate/room_speed;
}
}
else
{
if keyboard_check(global.bindTurnLeft)
{
direction += shipTurnRate/room_speed;
}
if keyboard_check(global.bindTurnRight)
{
direction -= shipTurnRate/room_speed;
}
}
}
else
{
direction = destAngle;
}
image_angle = direction;
speed = shipSpeed;
if keyboard_check(global.bindAccelerate) //ускорение
{
if shipSpeed < shipSpeedUpCap and !turbo
{
shipSpeed += shipAccel/room_speed;
}
else
{
shipSpeed = shipSpeedUpCap;
}
}
if keyboard_check(global.bindDeaccelerate) //торможение
{
if shipSpeed > shipSpeedDownCap
{
shipSpeed -= shipAccel/room_speed;
}
else
{
shipSpeed = shipSpeedDownCap;
}
}
if !inMenu and (keyboard_check_pressed(global.bindFire) or mouse_check_button_pressed(mb_right)) and alarm[4] = -1
{
switch secondaryWeapon.weapontype
{
case weaponType.rocket:
if rockets > 0 //ракеты
{
lat = point_direction(x, y, obCursor.x, obCursor.y);
lenX = lengthdir_x(rocketLen, lat + rocketDir);
lenY = lengthdir_y(rocketLen, lat + rocketDir);
rocket = instance_create_layer(x + lenX, y + lenY, "Instances", obRocket);
rocket.direction = direction;
rocket.owner = obSpaceship;
rocket.damage = secondaryWeapon.damage;
rocket.rocketTurnRate = secondaryWeapon.rotationspeed;
rocket.speed = secondaryWeapon.projspeed;
rockets--;
alarm[4] = room_speed / secondaryWeapon.firerate;
}
break;
case weaponType.laser: //лазеры
lat = point_direction(x, y, obCursor.x, obCursor.y);
lenX = lengthdir_x(rocketLen, lat + rocketDir);
lenY = lengthdir_y(rocketLen, lat + rocketDir);
laser = instance_create_layer(x + lenX, y + lenY, "Instances", obLaser);
laser.direction = direction;
laser.owner = obSpaceship;
laser.damage = secondaryWeapon.damage;
laser.speed = secondaryWeapon.projspeed;
alarm[4] = room_speed / secondaryWeapon.firerate;
}
}
if !inMenu and mouse_check_button(mb_left) and alarm[0] = -1
{
switch primaryWeapon.weapontype
{
case weaponType.rocket:
if rockets > 0 //ракеты
{
lat = point_direction(x, y, obCursor.x, obCursor.y);
lenX = lengthdir_x(rocketLen, lat + rocketDir);
lenY = lengthdir_y(rocketLen, lat + rocketDir);
rocket = instance_create_layer(x + lenX, y + lenY, "Instances", obRocket);
rocket.direction = direction;
rocket.owner = obSpaceship;
rocket.damage = primaryWeapon.damage;
rocket.rocketTurnRate = primaryWeapon.rotationspeed;
rocket.speed = primaryWeapon.projspeed;
rockets--;
alarm[0] = room_speed / primaryWeapon.firerate;
}
break;
case weaponType.laser: //лазеры
lat = point_direction(x, y, obCursor.x, obCursor.y);
lenX = lengthdir_x(rocketLen, lat + rocketDir);
lenY = lengthdir_y(rocketLen, lat + rocketDir);
laser = instance_create_layer(x + lenX, y + lenY, "Instances", obLaser);
laser.direction = direction;
laser.owner = obSpaceship;
laser.damage = primaryWeapon.damage;
laser.speed = primaryWeapon.projspeed;
alarm[0] = room_speed / primaryWeapon.firerate;
}
}
if place_meeting(x, y, obSpacestation)
{
x = xprevious - lengthdir_x(16, spacestationLocation);
y = yprevious - lengthdir_y(16, spacestationLocation);
alarm[1] = 1;
if inMenu
{
shipSpeed = 0;
}
}
spacestationLocation = point_direction(x, y, obSpacestation.x, obSpacestation.y);
with obSpacestationMenu
{
obSpaceship.inMenu = collision_circle(x, y, radius, obSpaceship, true, false);
}
camX = camera_get_view_x(view_camera[0]);
camY = camera_get_view_y(view_camera[0]);
guiMouseX = device_mouse_x_to_gui(0);
guiMouseY = device_mouse_y_to_gui(0);
if inMenu
{
if guiMouseX >= 132 and guiMouseX <= 252 and guiMouseY >= 131 and guiMouseY <= 159 and mouse_check_button_released(mb_left)
{
action = 1;
alarm[3] = 1;
}
if guiMouseX >= 132 and guiMouseX <= 252 and guiMouseY >= 162 and guiMouseY <= 190 and mouse_check_button_released(mb_left)
{
action = 2;
alarm[3] = 1;
}
if guiMouseX >= 132 and guiMouseX <= 252 and guiMouseY >= 193 and guiMouseY <= 221 and mouse_check_button_released(mb_left)
{
action = 3;
alarm[3] = 1;
}
if guiMouseX >= 132 and guiMouseX <= 252 and guiMouseY >= 224 and guiMouseY <= 252 and mouse_check_button_released(mb_left)
{
action = 4;
alarm[3] = 1;
}
if guiMouseX >= 276 and guiMouseX <= 456 and guiMouseY >= 131 and guiMouseY <= 159 and mouse_check_button_released(mb_left)
{
action = 5;
alarm[3] = 1;
}
if guiMouseX >= 276 and guiMouseX <= 456 and guiMouseY >= 162 and guiMouseY <= 190 and mouse_check_button_released(mb_left)
{
action = 6;
alarm[3] = 1;
}
if guiMouseX >= 276 and guiMouseX <= 456 and guiMouseY >= 193 and guiMouseY <= 221 and mouse_check_button_released(mb_left)
{
action = 7;
alarm[3] = 1;
}
if guiMouseX >= 276 and guiMouseX <= 456 and guiMouseY >= 224 and guiMouseY <= 252 and mouse_check_button_released(mb_left)
{
action = 8;
alarm[3] = 1;
}
}
if shipHealth <= 0
{
shipHealth = round(shipMaxHealth/2);
shipSpeed = 0;
alarm[2] = 1;
}
if keyboard_check(global.bindTurbo) and shipTurboFuel > 0 and engine.shipTurbo
{
turbo = 1;
shipTurboFuel--;
shipSpeed = shipTurboSpeed;
}
else
{
turbo = 0;
if shipSpeed > shipSpeedUpCap
{
shipSpeed = shipSpeedUpCap;
}
}
shipMaxHealth = shipType.shipHealth;
shipSpeedUpCap = engine.shipSpeedUpCap;
shipSpeedDownCap = engine.shipSpeedDownCap;
shipTurboSpeed = engine.shipTurboSpeed;
shipTurboFuelLimit = engine.shipTurboFuelLimit;
if shipTurboFuel > shipTurboFuelLimit
{
shipTurboFuel = shipTurboFuelLimit;
}
if alarm[5] = -1 and shipShield < shield.shieldCapacity
{
shipShield += shield.shieldChargerate/room_speed;
}
if shipShield > shield.shieldCapacity
{
shipShield = shield.shieldCapacity
}

View file

@ -0,0 +1,45 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obSpaceship",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":64,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":1,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":2,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":3,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":4,"eventType":2,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":5,"eventType":2,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": {
"name": "spShip1",
"path": "sprites/spShip1/spShip1.yy",
},
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,4 @@
direction = random(360);
image_angle = direction;
mask_index = spSpacestation;
menu = instance_create_layer(x, y, "Instances", obSpacestationMenu);

View file

@ -0,0 +1 @@
draw_sprite_ext(spSpacestation, 0, x, y, 1, 1, direction, global.faction1Color, 1);

View file

@ -0,0 +1,37 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obSpacestation",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": true,
"spriteId": {
"name": "spSpacestation",
"path": "sprites/spSpacestation/spSpacestation.yy",
},
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,4 @@
host = obSpacestation;
x = host.x + lengthdir_x(192, host.direction-90);
y = host.y + lengthdir_y(192, host.direction-90);
radius = 80;

View file

View file

@ -0,0 +1,34 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obSpacestationMenu",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": null,
"spriteMaskId": null,
"visible": true,
}

View file

@ -0,0 +1,6 @@
size = random(1.5);
image_xscale = size;
image_yscale = size;
image_speed = random(2);
image_index = round(random(7));
color = choose(make_color_hsv(32, random(255), random(255)), make_color_hsv(190, random(255), random(255)));

View file

@ -0,0 +1 @@
draw_sprite_ext(spStar, image_index, x, y, image_xscale, image_yscale, 0, color, 1);

View file

@ -0,0 +1,5 @@
if distance_to_object(instance_nearest(x, y, obStar)) <= 16
{
x = random(room_width);
y = random(room_height);
}

38
objects/obstar/obStar.yy Normal file
View file

@ -0,0 +1,38 @@
{
"resourceType": "GMObject",
"resourceVersion": "1.0",
"name": "obStar",
"eventList": [
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":false,},
{"resourceType":"GMEvent","resourceVersion":"1.0","name":"","collisionObjectId":null,"eventNum":0,"eventType":8,"isDnD":false,},
],
"managed": true,
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.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": [],
"solid": false,
"spriteId": {
"name": "spStar",
"path": "sprites/spStar/spStar.yy",
},
"spriteMaskId": null,
"visible": true,
}