Skip to content

Commit 5254e59

Browse files
committed
Updated
1.2.0
1 parent 20d603c commit 5254e59

34 files changed

+543
-42
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ This game made in **2 days**.
2222

2323
## Changelog
2424

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

2738
- Make game more playable (By decreasing its difficulty)

objects/obj_childship.object.gmx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ if(instance_exists(obj_player)) obj_player.hp -= global.enemy_dmg;
5656
if(instance_exists(obj_hitscreen)){
5757
if(!global.reduce){ obj_hitscreen.image_alpha = 1; obj_hitscreen.alarm[0] = 5;}
5858
audio_play_sound(snd_hit, 10, false);
59+
obj_player.get_hit = true;
60+
obj_player.alarm[0] = 10;
61+
62+
if(global.dif = 3 && instance_exists(obj_player)) obj_player.coin += global.coin_earn;
5963

6064
obj_game.vibrate = 10;
6165
}

objects/obj_count.object.gmx

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
2+
<object>
3+
<spriteName>spr_count</spriteName>
4+
<solid>0</solid>
5+
<visible>-1</visible>
6+
<depth>0</depth>
7+
<persistent>0</persistent>
8+
<parentName>&lt;undefined&gt;</parentName>
9+
<maskName>&lt;undefined&gt;</maskName>
10+
<events>
11+
<event eventtype="0" enumb="0">
12+
<action>
13+
<libid>1</libid>
14+
<id>603</id>
15+
<kind>7</kind>
16+
<userelative>0</userelative>
17+
<isquestion>0</isquestion>
18+
<useapplyto>-1</useapplyto>
19+
<exetype>2</exetype>
20+
<functionname></functionname>
21+
<codestring></codestring>
22+
<whoName>self</whoName>
23+
<relative>0</relative>
24+
<isnot>0</isnot>
25+
<arguments>
26+
<argument>
27+
<kind>1</kind>
28+
<string>x = room_width - 40;
29+
y = room_height - 40;
30+
</string>
31+
</argument>
32+
</arguments>
33+
</action>
34+
<action>
35+
<libid>1</libid>
36+
<id>541</id>
37+
<kind>0</kind>
38+
<userelative>0</userelative>
39+
<isquestion>0</isquestion>
40+
<useapplyto>-1</useapplyto>
41+
<exetype>1</exetype>
42+
<functionname>action_sprite_set</functionname>
43+
<codestring></codestring>
44+
<whoName>self</whoName>
45+
<relative>0</relative>
46+
<isnot>0</isnot>
47+
<arguments>
48+
<argument>
49+
<kind>5</kind>
50+
<sprite>spr_count</sprite>
51+
</argument>
52+
<argument>
53+
<kind>0</kind>
54+
<string>global.rank</string>
55+
</argument>
56+
<argument>
57+
<kind>0</kind>
58+
<string>0</string>
59+
</argument>
60+
</arguments>
61+
</action>
62+
</event>
63+
</events>
64+
<PhysicsObject>0</PhysicsObject>
65+
<PhysicsObjectSensor>0</PhysicsObjectSensor>
66+
<PhysicsObjectShape>0</PhysicsObjectShape>
67+
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
68+
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
69+
<PhysicsObjectGroup>0</PhysicsObjectGroup>
70+
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
71+
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
72+
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
73+
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
74+
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
75+
<PhysicsShapePoints/>
76+
</object>

objects/obj_debug.object.gmx

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
2+
<object>
3+
<spriteName>&lt;undefined&gt;</spriteName>
4+
<solid>0</solid>
5+
<visible>-1</visible>
6+
<depth>0</depth>
7+
<persistent>0</persistent>
8+
<parentName>&lt;undefined&gt;</parentName>
9+
<maskName>&lt;undefined&gt;</maskName>
10+
<events>
11+
<event eventtype="0" enumb="0">
12+
<action>
13+
<libid>1</libid>
14+
<id>603</id>
15+
<kind>7</kind>
16+
<userelative>0</userelative>
17+
<isquestion>0</isquestion>
18+
<useapplyto>-1</useapplyto>
19+
<exetype>2</exetype>
20+
<functionname></functionname>
21+
<codestring></codestring>
22+
<whoName>self</whoName>
23+
<relative>0</relative>
24+
<isnot>0</isnot>
25+
<arguments>
26+
<argument>
27+
<kind>1</kind>
28+
<string>debug = false;
29+
</string>
30+
</argument>
31+
</arguments>
32+
</action>
33+
</event>
34+
<event eventtype="8" enumb="0">
35+
<action>
36+
<libid>1</libid>
37+
<id>603</id>
38+
<kind>7</kind>
39+
<userelative>0</userelative>
40+
<isquestion>0</isquestion>
41+
<useapplyto>-1</useapplyto>
42+
<exetype>2</exetype>
43+
<functionname></functionname>
44+
<codestring></codestring>
45+
<whoName>self</whoName>
46+
<relative>0</relative>
47+
<isnot>0</isnot>
48+
<arguments>
49+
<argument>
50+
<kind>1</kind>
51+
<string>draw_set_colour(c_yellow);
52+
draw_set_font(ft_many_text);
53+
draw_set_halign(fa_center);
54+
draw_set_halign(fa_middle);
55+
if(instance_exists(obj_game) &amp;&amp; debug) draw_text(room_width / 2, room_height / 2, "calm_down: " + string(obj_game.init_spawn_calmdown));
56+
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));
57+
draw_set_halign(fa_left);
58+
draw_set_halign(fa_top);
59+
</string>
60+
</argument>
61+
</arguments>
62+
</action>
63+
</event>
64+
</events>
65+
<PhysicsObject>0</PhysicsObject>
66+
<PhysicsObjectSensor>0</PhysicsObjectSensor>
67+
<PhysicsObjectShape>0</PhysicsObjectShape>
68+
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
69+
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
70+
<PhysicsObjectGroup>0</PhysicsObjectGroup>
71+
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
72+
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
73+
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
74+
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
75+
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
76+
<PhysicsShapePoints/>
77+
</object>

objects/obj_enemy_obs.object.gmx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,17 @@ if(x &lt;= 0) instance_destroy(self);
5757
if(instance_exists(obj_player)) obj_player.hp -= global.enemy_dmg;
5858

5959
if(instance_exists(obj_hitscreen)){
60-
if(!global.reduce){ obj_hitscreen.image_alpha = 1; obj_hitscreen.alarm[0] = 5;}
60+
if(!global.reduce){
61+
obj_hitscreen.image_alpha = 1;
62+
obj_hitscreen.alarm[0] = 5;
63+
}
64+
obj_player.get_hit = true;
65+
obj_player.alarm[0] = 10;
66+
6167
audio_play_sound(snd_hit, 10, false);
6268

69+
if(global.dif = 3 &amp;&amp; instance_exists(obj_player)) obj_player.coin += global.coin_earn;
70+
6371
obj_game.vibrate = 10;
6472
}
6573
</string>

objects/obj_game.object.gmx

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ instance_create(room_width / 2, room_height / 2, obj_music_info);
3131
if(audio_is_playing(bgm_over)) audio_stop_sound(bgm_over);
3232

3333
//set bgm
34-
bgm = irandom_range(1, 5);
34+
bgm = irandom_range(1, 6);
3535
if (bgm = 1) audio_play_sound(bgm_1, 10, true);
3636
else if (bgm = 2) audio_play_sound(bgm_2, 10, true);
3737
else if (bgm = 3) audio_play_sound(bgm_3, 10, true);
3838
else if (bgm = 4) audio_play_sound(bgm_4, 10, true);
3939
else if (bgm = 5) audio_play_sound(bgm_5, 10, true);
40+
else if (bgm = 6) audio_play_sound(bgm_6, 10, true);
4041

4142
//set position
4243
x = room_width / 2;
@@ -53,11 +54,13 @@ opt_menu = 0;
5354
if(global.dif = 3) {add = 0.5; global.enemy_dmg = 10; global.coin_earn = 200; global.heal_earn = 300}
5455
else if(global.dif = 1) {add = 2; global.enemy_dmg = 3; global.coin_earn = 80; global.heal_earn = 180}
5556
else if(global.dif = 2) {add = 0.5; global.enemy_dmg = 5; global.coin_earn = 100; global.heal_earn = 200}
56-
57+
init_spawn_calmdown = 10;
58+
select_box_y = 0;
5759

5860
//alarms wake
5961
alarm[4] = 5;
6062
alarm[1] = 10;
63+
alarm[2] = 100;
6164

6265
//create hitscreen
6366
instance_create(0, 0, obj_hitscreen);
@@ -90,6 +93,32 @@ if(instance_exists(obj_player)) {
9093
else obj_player.coin += 1;
9194
}
9295
alarm[4] = 5;
96+
</string>
97+
</argument>
98+
</arguments>
99+
</action>
100+
</event>
101+
<event eventtype="2" enumb="2">
102+
<action>
103+
<libid>1</libid>
104+
<id>603</id>
105+
<kind>7</kind>
106+
<userelative>0</userelative>
107+
<isquestion>0</isquestion>
108+
<useapplyto>-1</useapplyto>
109+
<exetype>2</exetype>
110+
<functionname></functionname>
111+
<codestring></codestring>
112+
<whoName>self</whoName>
113+
<relative>0</relative>
114+
<isnot>0</isnot>
115+
<arguments>
116+
<argument>
117+
<kind>1</kind>
118+
<string>if (init_spawn_calmdown &gt; -2) {
119+
init_spawn_calmdown -= 1;
120+
alarm[2] = 100;
121+
}
93122
</string>
94123
</argument>
95124
</arguments>
@@ -141,24 +170,24 @@ alarm[1] = 10;
141170
<string>///spawn
142171

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

146175
//spawn heal
147-
if(irandom(110 * add) = 1 &amp;&amp; !paused &amp;&amp; obj_player.hp &lt; 95) instance_create(960, irandom_range(90, 454), obj_health);
176+
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);
148177

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

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

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

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

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

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

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

210+
select_box_y = clamp(select_box_y, 330 + (40 * select), 330 + (40 * select));
211+
181212
//perform action for:
182213

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

220251
if(paused) audio_pause_all();
221252
else if(!paused) audio_resume_all();
253+
254+
//clamp things
255+
init_spawn_calmdown = clamp(init_spawn_calmdown, -2, 10);
222256
</string>
223257
</argument>
224258
</arguments>
@@ -269,10 +303,10 @@ else if(paused){
269303
draw_set_colour(c_red);
270304

271305
//selection box
272-
if(select = 0) draw_rectangle(0, 330 - 20, room_width, 330 + 20, false);
273-
else if(select = 1) draw_rectangle(0, 370 - 20, room_width, 370 + 20, false);
274-
else if(select = 2) draw_rectangle(0, 410 - 20, room_width, 410 + 20, false);
275-
306+
// if(select = 0) draw_rectangle(0, 330 - 20, room_width, 330 + 20, false);
307+
//else if(select = 1) draw_rectangle(0, 370 - 20, room_width, 370 + 20, false);
308+
// if(select = 2) draw_rectangle(0, 410 - 20, room_width, 410 + 20, false);
309+
draw_rectangle(0, select_box_y - 20, room_width, select_box_y + 20, false);
276310

277311

278312
//draw selection
@@ -307,8 +341,10 @@ draw_set_halign(fa_left);
307341
draw_set_valign(fa_top);
308342

309343
//info on player
310-
draw_set_colour(c_yellow);
311-
if(instance_exists(obj_player))draw_text(32, obj_player.y, string(obj_player.hp) + " &gt;");
344+
if(instance_exists(obj_player)){
345+
draw_set_colour(obj_player.image_blend);
346+
draw_text(32, obj_player.y, string(obj_player.hp) + " &gt;");
347+
}
312348
</string>
313349
</argument>
314350
</arguments>

objects/obj_gameover.object.gmx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@
2727
<kind>1</kind>
2828
<string>final_score = obj_player.coin;
2929

30-
if(audio_is_playing(bgm_1)) audio_stop_sound(bgm_1);
31-
else if(audio_is_playing(bgm_2)) audio_stop_sound(bgm_2);
32-
else if(audio_is_playing(bgm_3)) audio_stop_sound(bgm_3);
33-
else if(audio_is_playing(bgm_4)) audio_stop_sound(bgm_4);
34-
else if(audio_is_playing(bgm_5)) audio_stop_sound(bgm_5);
30+
//if(audio_is_playing(bgm_1)) audio_stop_sound(bgm_1);
31+
//else if(audio_is_playing(bgm_2)) audio_stop_sound(bgm_2);
32+
//else if(audio_is_playing(bgm_3)) audio_stop_sound(bgm_3);
33+
//else if(audio_is_playing(bgm_4)) audio_stop_sound(bgm_4);
34+
//else if(audio_is_playing(bgm_5)) audio_stop_sound(bgm_5);
35+
//else if(audio_is_playing(bgm_6)) audio_stop_sound(bgm_6);
36+
37+
audio_stop_all();
3538

3639
audio_play_sound(bgm_over, 10, true);
3740

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

4447
if(final_score &gt; global.hscore){
48+
audio_play_sound(snd_yipee, 10, false);
4549
ini_open("data.ini");
4650
ini_write_real("data", "highscore", final_score);
4751
ini_close();

objects/obj_health.object.gmx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if(x &lt;= 0) instance_destroy(self);
5757
<string>instance_destroy(self);
5858
if(instance_exists(obj_player)) {
5959
obj_player.coin += global.heal_earn;
60-
obj_player.hp += 10;
60+
obj_player.hp += 5;
6161
}
6262
audio_play_sound(snd_heal, 10, false);
6363
</string>

0 commit comments

Comments
 (0)