Skip to content

Commit

Permalink
Added sfx, finished everything else
Browse files Browse the repository at this point in the history
net sux!!!!!
  • Loading branch information
orphillius committed Oct 5, 2024
1 parent 20321a3 commit 9025e46
Show file tree
Hide file tree
Showing 47 changed files with 544 additions and 38 deletions.
34 changes: 26 additions & 8 deletions Loungeware/Loungeware.yyp

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions Loungeware/objects/orphillius_pet_game_o/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ rmh=320

drawscale=4

gain=1

//game_phases:
// egg falling, cracks at floor
// creature care, player must perform tasks depending on creature's state
Expand Down Expand Up @@ -44,5 +46,8 @@ switch DIFFICULTY{
success_req=7
break;
}

successes=0
poops_possible=max(1,round(success_req/3)) //max number of poops poopable
if DIFFICULTY=5{poops_possible+=1}
poops_pooped=0 //tracks poops pooped
successes=0
postwin_c=0
8 changes: 4 additions & 4 deletions Loungeware/objects/orphillius_pet_game_o/Draw_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ if request!=noone and instance_exists(pet){
draw_sprite_ext(request,0,xx,yy,drawscale,drawscale,request_angle,c_white,1)
}

draw_set_color(c_white)
draw_set_font(fnt_impendium)
var mx=rmw-96
var mx=rmw-128-16
var my=32

for (var menuc=0;menuc<array_length(menu_options);menuc++){
draw_text_ext_transformed(mx,my,menu_options[menuc],0,420,2,2,0)
draw_text_ext_transformed(mx,my,menu_options[menuc],0,420,4,4,0)
if menuc=menu_current{
draw_sprite_ext(orphillius_pet_menu_select_s,floor(anim_c),mx-32,my+16,drawscale,drawscale,0,c_white,1)
draw_sprite_ext(orphillius_pet_menu_select_s,floor(anim_c),mx-32,my+32,drawscale,drawscale,0,c_white,1)
}
my+=32
}
Expand Down
36 changes: 29 additions & 7 deletions Loungeware/objects/orphillius_pet_game_o/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ if successes>=success_req and !MICROGAME_WON{
dir+=360/15
}
}
sfx_play(orphillius_win)
sfx_play(orphillius_sfx_fwooh,gain)
//sfx_play(orphillius_win,gain)
}
if MICROGAME_WON{
with orphillius_pet_egg_o{ //makes smoke bits spin and disappear
Expand All @@ -26,6 +27,15 @@ if MICROGAME_WON{
image_yscale-=.07
if image_xscale<=.1{instance_destroy(id)}
}
postwin_c+=1 //counter to delay adult sfx
if postwin_c=10{
switch pet.sprite_index{
case orphillius_pet_adult_s: var sfx=orphillius_sfx_adult1;break
case orphillius_pet_adult2_s: var sfx=orphillius_sfx_adult2;break
case orphillius_pet_adult3_s: var sfx=orphillius_sfx_adult3;break
}
sfx_play(sfx,gain*1.2)
}
exit
}

Expand All @@ -34,13 +44,14 @@ switch game_phase{
egg=instance_create_depth(rmw/2,0,0,orphillius_pet_egg_o)
egg.yspd=2
egg.image_xscale=drawscale; egg.image_yscale=drawscale

sfx_play(orphillius_sfx_item_throw,gain)
game_phase+=1
break;
case 1: //eggs falls and explodes, create baby
egg.yspd+=.5
egg.y+=egg.yspd
if egg.y>=floory{
sfx_play(orphillius_sfx_egg_crack,gain)
////creates egg shell bits that go flying away
egg.image_index=1
var shell=instance_create_depth(egg.x,egg.y,egg.depth+5,orphillius_pet_egg_o)
Expand All @@ -66,20 +77,20 @@ switch game_phase{
break;
case 2: //pet makes requests and creates poop
action_c+=1
show_debug_message(action_c)
if action_c>=action_timer{
pet.sprite_index=orphillius_pet_baby_s
action_c=0
choices=[]
if request=noone{
array_push(choices,"request","request")
}
if !instance_exists(orphillius_pet_poop_o){array_push(choices,"poop")}
if !instance_exists(orphillius_pet_poop_o) and poops_pooped<poops_possible{array_push(choices,"poop")}
var choice=noone
if array_length(choices)>0{choice=choices[irandom(array_length(choices)-1)]}
switch choice{
case "request":
request=choose(orphillius_pet_play_s,orphillius_pet_food_s)
sfx_play(orphillius_sfx_request_appears,gain)
break
case "poop":
with instance_create_depth(pet.x,pet.y,pet.depth+5,orphillius_pet_poop_o){
Expand All @@ -88,6 +99,8 @@ switch game_phase{
speed=irandom_range(6,8)
friction=.2
}
poops_pooped+=1
sfx_play(orphillius_sfx_poop,gain)
break
}
}
Expand All @@ -105,14 +118,22 @@ with orphillius_pet_egg_o if image_index!=0{ //destroying egg bits

////controls
//menu scroll
if KEY_DOWN_PRESSED{menu_current+=1; if menu_current>=array_length(menu_options){menu_current=0}}
if KEY_UP_PRESSED{menu_current-=1; if menu_current<0{menu_current=array_length(menu_options)-1}}
if KEY_DOWN_PRESSED{
menu_current+=1; if menu_current>=array_length(menu_options){menu_current=0}
sfx_play(orphillius_sfx_menu_blip,gain)
}
if KEY_UP_PRESSED{
menu_current-=1; if menu_current<0{menu_current=array_length(menu_options)-1}
sfx_play(orphillius_sfx_menu_blip,gain)
}
//menu select
if instance_exists(pet) and (KEY_PRIMARY_PRESSED or KEY_SECONDARY_PRESSED){
sfx_play(orphillius_sfx_menu_blip2,gain)
switch menu_options[menu_current]{
case "Feed":
if request!=noone and !instance_exists(orphillius_pet_item_o){
with instance_create_depth(0,0,-100,orphillius_pet_item_o){sprite_index=orphillius_pet_food_s}
sfx_play(orphillius_sfx_item_throw,gain)
action_c=0
if request=orphillius_pet_food_s{ //correct request chosen
successes+=1
Expand All @@ -124,7 +145,7 @@ if instance_exists(pet) and (KEY_PRIMARY_PRESSED or KEY_SECONDARY_PRESSED){
}
break
case "Clean":
if instance_exists(orphillius_pet_poop_o){ //cleaning poop
if instance_exists(orphillius_pet_poop_o) and orphillius_pet_poop_o.anim=noone{ //cleaning poop
orphillius_pet_poop_o.anim=1
successes+=1
action_c=0
Expand All @@ -133,6 +154,7 @@ if instance_exists(pet) and (KEY_PRIMARY_PRESSED or KEY_SECONDARY_PRESSED){
case "Play":
if request!=noone and !instance_exists(orphillius_pet_item_o){
with instance_create_depth(0,0,-100,orphillius_pet_item_o){sprite_index=orphillius_pet_play_s}
sfx_play(orphillius_sfx_item_throw,gain)
action_c=0
if request=orphillius_pet_play_s{ //correct request chosen
successes+=1
Expand Down
1 change: 1 addition & 0 deletions Loungeware/objects/orphillius_pet_item_o/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ game=orphillius_pet_game_o
rmw=game.rmw
rmh=game.rmh
pet=game.pet
gain=game.gain

startx=choose(16,rmw-16)
starty=irandom_range(rmh-32,32)
Expand Down
16 changes: 13 additions & 3 deletions Loungeware/objects/orphillius_pet_item_o/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ if dist<4 or anim=1{
case orphillius_pet_food_s:
switch anim_phase{
case 0:
if game.request=orphillius_pet_food_s{
if game.request=orphillius_pet_food_s{ //food eaten (success)
pet.image_index=1
game.request=noone
game.action_c=0
repeat(6){
sfx_play(orphillius_sfx_crunch,gain)
repeat(6){ //creates bits
with instance_create_depth(pet.x,pet.y,pet.depth-10,orphillius_pet_egg_o){
image_index=irandom_range(3,6)
image_xscale=scale
Expand All @@ -23,6 +24,10 @@ if dist<4 or anim=1{
}
instance_destroy(id);exit
}else{ //wrong item used
if !MICROGAME_WON{
sfx_play(orphillius_sfx_boing,gain)
sfx_play(orphillius_sfx_pet_cry,gain)
}
speed=16
direction=90+choose(-20,20)
friction=0
Expand All @@ -35,13 +40,18 @@ if dist<4 or anim=1{
case orphillius_pet_play_s:
switch anim_phase{
case 0:
if game.request=orphillius_pet_play_s{
if game.request=orphillius_pet_play_s{ //ball bounced by pet (success)
pet.image_index=1
game.request=noone
game.action_c=0
anim_phase+=2
end_dir=choose(45,135)+irandom_range(-10,10)
sfx_play(orphillius_sfx_ball_hit,gain)
}else{ //wrong item used
if !MICROGAME_WON{
sfx_play(orphillius_sfx_boing,gain)
sfx_play(orphillius_sfx_pet_cry,gain)
}
speed=16
direction=90+choose(-20,20)
friction=0
Expand Down
2 changes: 2 additions & 0 deletions Loungeware/objects/orphillius_pet_poop_o/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ anim_phase=0;anim_c=0
game=orphillius_pet_game_o
rmw=game.rmw
rmh=game.rmh
gain=game.gain

mop=noone
11 changes: 7 additions & 4 deletions Loungeware/objects/orphillius_pet_poop_o/Draw_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ draw_self()
switch anim{
case 1:
switch anim_phase{
case 0: //mop comes down
case 0: //mop init
mop={
x: x-sign(x-rmw/2)*16,
y: -8,
image_index: 0
}
anim_phase+=1
break
case 1:
case 1: //mop comes down
mop.y+=16
if mop.y>=game.floory+32{anim_phase+=1}
if mop.y>=game.floory+32{
anim_phase+=1
sfx_play(orphillius_sfx_item_flyaway,gain)
}
break
case 2:
case 2: //mop to the side
var dir=sign(x-rmw/2)
if dir=1{mop.image_index=1}else{mop.image_index=2}
mop.x+=dir*12
Expand Down
20 changes: 10 additions & 10 deletions Loungeware/scripts/orphillius_metadata/orphillius_metadata.gml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ microgame_register("orphillius_lunch", {
how_to_play: [
"Watch the customers' reactions and serve them the food they want."
],
});

});

microgame_register("orphillius_pet", {
config_version: 1,
game_name: "pet",
game_name: "Perfect Petsitter",
authors : "Orphillius",
prompt: "Care",
init_room: orphillius_pet_rm,
Expand All @@ -53,24 +53,24 @@ microgame_register("orphillius_pet", {
music_track: sng_orphillius_zany, // nullable, defaults to noone. Accepts: sound name or false
music_loops: true, // nullable, defaults to true
interpolation_on: false,
cartridge_col_primary: [204,171,40],
cartridge_col_secondary: [153,9,38],
cartridge_label: orphillius_lunch_label_sp,
cartridge_col_primary: [0,0,0],
cartridge_col_secondary: [255,255,255],
cartridge_label: orphillius_pet_label_sp,
default_is_fail: true, // nullable, defaults to true
supports_difficulty_scaling: true,
credits: ["Orphillius"],
date_added:{
day : 18,
month : 6,
day : 4,
month : 10,
year : 2024
},
is_enabled: true,
supports_html: true,
show_on_website: true,
description: [
"It's lunch time and the crowd is rolling in!"
"Your new pet has just arrived! Take care of it and watch it grow!"
],
how_to_play: [
"Watch the customers' reactions and serve them the food they want."
"Satisfy your pet's requests and clean up after it!"
],
});
Binary file not shown.
23 changes: 23 additions & 0 deletions Loungeware/sounds/orphillius_sfx_adult1/orphillius_sfx_adult1.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
23 changes: 23 additions & 0 deletions Loungeware/sounds/orphillius_sfx_adult2/orphillius_sfx_adult2.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
23 changes: 23 additions & 0 deletions Loungeware/sounds/orphillius_sfx_adult3/orphillius_sfx_adult3.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 9025e46

Please sign in to comment.