Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
1.2.0
  • Loading branch information
kaonkaon committed Dec 29, 2023
1 parent 20d603c commit 5254e59
Show file tree
Hide file tree
Showing 34 changed files with 543 additions and 42 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ This game made in **2 days**.

## Changelog

**v1.2.0**

- Make the density of red gradualy increase. (so it doesnt go all out on the begining)
- Make hit red hit screen more "milder" decreasing its max opacity
- Rank system. Player color will change depends on your high score (so dont reset your highscore if you want to flex them color)
- Added vita image on "how to play" page
- Changed one of bgm: Shockwave - Xifien to: Emotional Catharsis - Private Manbou
- Added new bgm: Memento - MoGura
- Getting damaged on "Hurt Me Plenty" difficuly will earn score! idk if its worth taking damage tho
- Added sound effect when you get into high score

**V1.1.0**

- Make game more playable (By decreasing its difficulty)
Expand Down
4 changes: 4 additions & 0 deletions objects/obj_childship.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ if(instance_exists(obj_player)) obj_player.hp -= global.enemy_dmg;
if(instance_exists(obj_hitscreen)){
if(!global.reduce){ obj_hitscreen.image_alpha = 1; obj_hitscreen.alarm[0] = 5;}
audio_play_sound(snd_hit, 10, false);
obj_player.get_hit = true;
obj_player.alarm[0] = 10;

if(global.dif = 3 && instance_exists(obj_player)) obj_player.coin += global.coin_earn;

obj_game.vibrate = 10;
}
Expand Down
76 changes: 76 additions & 0 deletions objects/obj_count.object.gmx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>spr_count</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>0</persistent>
<parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</maskName>
<events>
<event eventtype="0" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>x = room_width - 40;
y = room_height - 40;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>541</id>
<kind>0</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_sprite_set</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>5</kind>
<sprite>spr_count</sprite>
</argument>
<argument>
<kind>0</kind>
<string>global.rank</string>
</argument>
<argument>
<kind>0</kind>
<string>0</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
<PhysicsObjectGroup>0</PhysicsObjectGroup>
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>
77 changes: 77 additions & 0 deletions objects/obj_debug.object.gmx
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>&lt;undefined&gt;</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>0</persistent>
<parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</maskName>
<events>
<event eventtype="0" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>debug = false;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="8" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>draw_set_colour(c_yellow);
draw_set_font(ft_many_text);
draw_set_halign(fa_center);
draw_set_halign(fa_middle);
if(instance_exists(obj_game) &amp;&amp; debug) draw_text(room_width / 2, room_height / 2, "calm_down: " + string(obj_game.init_spawn_calmdown));
else if(instance_exists(obj_mainmenu) &amp;&amp; debug) draw_text(room_width / 2, room_height / 2, "select_y: " + string(obj_mainmenu.select_box_y));
draw_set_halign(fa_left);
draw_set_halign(fa_top);
</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
<PhysicsObjectGroup>0</PhysicsObjectGroup>
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>
10 changes: 9 additions & 1 deletion objects/obj_enemy_obs.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,17 @@ if(x &lt;= 0) instance_destroy(self);
if(instance_exists(obj_player)) obj_player.hp -= global.enemy_dmg;

if(instance_exists(obj_hitscreen)){
if(!global.reduce){ obj_hitscreen.image_alpha = 1; obj_hitscreen.alarm[0] = 5;}
if(!global.reduce){
obj_hitscreen.image_alpha = 1;
obj_hitscreen.alarm[0] = 5;
}
obj_player.get_hit = true;
obj_player.alarm[0] = 10;

audio_play_sound(snd_hit, 10, false);

if(global.dif = 3 &amp;&amp; instance_exists(obj_player)) obj_player.coin += global.coin_earn;

obj_game.vibrate = 10;
}
</string>
Expand Down
66 changes: 51 additions & 15 deletions objects/obj_game.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ instance_create(room_width / 2, room_height / 2, obj_music_info);
if(audio_is_playing(bgm_over)) audio_stop_sound(bgm_over);

//set bgm
bgm = irandom_range(1, 5);
bgm = irandom_range(1, 6);
if (bgm = 1) audio_play_sound(bgm_1, 10, true);
else if (bgm = 2) audio_play_sound(bgm_2, 10, true);
else if (bgm = 3) audio_play_sound(bgm_3, 10, true);
else if (bgm = 4) audio_play_sound(bgm_4, 10, true);
else if (bgm = 5) audio_play_sound(bgm_5, 10, true);
else if (bgm = 6) audio_play_sound(bgm_6, 10, true);

//set position
x = room_width / 2;
Expand All @@ -53,11 +54,13 @@ opt_menu = 0;
if(global.dif = 3) {add = 0.5; global.enemy_dmg = 10; global.coin_earn = 200; global.heal_earn = 300}
else if(global.dif = 1) {add = 2; global.enemy_dmg = 3; global.coin_earn = 80; global.heal_earn = 180}
else if(global.dif = 2) {add = 0.5; global.enemy_dmg = 5; global.coin_earn = 100; global.heal_earn = 200}

init_spawn_calmdown = 10;
select_box_y = 0;

//alarms wake
alarm[4] = 5;
alarm[1] = 10;
alarm[2] = 100;

//create hitscreen
instance_create(0, 0, obj_hitscreen);
Expand Down Expand Up @@ -90,6 +93,32 @@ if(instance_exists(obj_player)) {
else obj_player.coin += 1;
}
alarm[4] = 5;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="2">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if (init_spawn_calmdown &gt; -2) {
init_spawn_calmdown -= 1;
alarm[2] = 100;
}
</string>
</argument>
</arguments>
Expand Down Expand Up @@ -141,24 +170,24 @@ alarm[1] = 10;
<string>///spawn

//spawn coins
if(irandom(15 * add) = 1 &amp;&amp; !paused) instance_create(960, irandom_range(90, 454), obj_coins);
if(irandom((15 * add) + init_spawn_calmdown) = 1 &amp;&amp; !paused) instance_create(960, irandom_range(90, 454), obj_coins);

//spawn heal
if(irandom(110 * add) = 1 &amp;&amp; !paused &amp;&amp; obj_player.hp &lt; 95) instance_create(960, irandom_range(90, 454), obj_health);
if(irandom((110 * add) + init_spawn_calmdown) = 1 &amp;&amp; !paused &amp;&amp; obj_player.hp &lt; 95 &amp;&amp; instance_exists(obj_player)) instance_create(960, irandom_range(90, 454), obj_health);

//spawn enemy: orb
if(irandom(24 * add) = 1 &amp;&amp; !paused) instance_create(960, irandom_range(90, 454), obj_enemy_obs);
if(irandom((24 * add) + init_spawn_calmdown) = 1 &amp;&amp; !paused) instance_create(960, irandom_range(90, 454), obj_enemy_obs);

//spawn star
if(irandom(2) = 1 &amp;&amp; !paused) instance_create(960, irandom_range(90, 454), obj_star);

//spawn mother ship
if(irandom(180 * add) = 1 &amp;&amp; !paused){
if(irandom((180 * add) + init_spawn_calmdown) = 1 &amp;&amp; !paused){
if !(instance_exists(obj_mothership)) instance_create(1, irandom_range(90, 454), obj_mothership);
}

//spawn obstacle wall
if(irandom(110 * add) = 1 &amp;&amp; !paused &amp;&amp; instance_exists(obj_player)){
if(irandom((110 * add) + init_spawn_calmdown) = 1 &amp;&amp; !paused &amp;&amp; instance_exists(obj_player)){
if !(instance_exists(obj_wall)) instance_create(958, irandom_range(90, 454), obj_wall);
}

Expand All @@ -171,13 +200,15 @@ if(paused) {
instance_deactivate_all(1);

//let user make selection
if(gamepad_button_check_pressed(0, gp_padd)) {select += 1;}
else if(gamepad_button_check_pressed(0, gp_padu)) {select -= 1;}
if(gamepad_button_check_pressed(0, gp_padd)) {select += 1; select_box_y += 40;}
else if(gamepad_button_check_pressed(0, gp_padu)) {select -= 1; select_box_y -= 40;}

//clamp variable
if(!exit_sure || opt_menu) select = clamp(select, 0, 2);
else if(exit_sure) select = clamp(select, 0, 1);

select_box_y = clamp(select_box_y, 330 + (40 * select), 330 + (40 * select));

//perform action for:

//pause
Expand Down Expand Up @@ -219,6 +250,9 @@ if(instance_exists(obj_player) &amp;&amp; obj_player.hp &lt;= 0 &amp;&amp; !inst

if(paused) audio_pause_all();
else if(!paused) audio_resume_all();

//clamp things
init_spawn_calmdown = clamp(init_spawn_calmdown, -2, 10);
</string>
</argument>
</arguments>
Expand Down Expand Up @@ -269,10 +303,10 @@ else if(paused){
draw_set_colour(c_red);

//selection box
if(select = 0) draw_rectangle(0, 330 - 20, room_width, 330 + 20, false);
else if(select = 1) draw_rectangle(0, 370 - 20, room_width, 370 + 20, false);
else if(select = 2) draw_rectangle(0, 410 - 20, room_width, 410 + 20, false);

// if(select = 0) draw_rectangle(0, 330 - 20, room_width, 330 + 20, false);
//else if(select = 1) draw_rectangle(0, 370 - 20, room_width, 370 + 20, false);
// if(select = 2) draw_rectangle(0, 410 - 20, room_width, 410 + 20, false);
draw_rectangle(0, select_box_y - 20, room_width, select_box_y + 20, false);


//draw selection
Expand Down Expand Up @@ -307,8 +341,10 @@ draw_set_halign(fa_left);
draw_set_valign(fa_top);

//info on player
draw_set_colour(c_yellow);
if(instance_exists(obj_player))draw_text(32, obj_player.y, string(obj_player.hp) + " &gt;");
if(instance_exists(obj_player)){
draw_set_colour(obj_player.image_blend);
draw_text(32, obj_player.y, string(obj_player.hp) + " &gt;");
}
</string>
</argument>
</arguments>
Expand Down
14 changes: 9 additions & 5 deletions objects/obj_gameover.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
<kind>1</kind>
<string>final_score = obj_player.coin;

if(audio_is_playing(bgm_1)) audio_stop_sound(bgm_1);
else if(audio_is_playing(bgm_2)) audio_stop_sound(bgm_2);
else if(audio_is_playing(bgm_3)) audio_stop_sound(bgm_3);
else if(audio_is_playing(bgm_4)) audio_stop_sound(bgm_4);
else if(audio_is_playing(bgm_5)) audio_stop_sound(bgm_5);
//if(audio_is_playing(bgm_1)) audio_stop_sound(bgm_1);
//else if(audio_is_playing(bgm_2)) audio_stop_sound(bgm_2);
//else if(audio_is_playing(bgm_3)) audio_stop_sound(bgm_3);
//else if(audio_is_playing(bgm_4)) audio_stop_sound(bgm_4);
//else if(audio_is_playing(bgm_5)) audio_stop_sound(bgm_5);
//else if(audio_is_playing(bgm_6)) audio_stop_sound(bgm_6);

audio_stop_all();

audio_play_sound(bgm_over, 10, true);

Expand All @@ -42,6 +45,7 @@ active = false;
alarm[0] = 5;

if(final_score &gt; global.hscore){
audio_play_sound(snd_yipee, 10, false);
ini_open("data.ini");
ini_write_real("data", "highscore", final_score);
ini_close();
Expand Down
2 changes: 1 addition & 1 deletion objects/obj_health.object.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if(x &lt;= 0) instance_destroy(self);
<string>instance_destroy(self);
if(instance_exists(obj_player)) {
obj_player.coin += global.heal_earn;
obj_player.hp += 10;
obj_player.hp += 5;
}
audio_play_sound(snd_heal, 10, false);
</string>
Expand Down
Loading

0 comments on commit 5254e59

Please sign in to comment.