Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var stg_width, stg_height, top_x, top_y, scale_x, scale_y;
- stg_width = 902;
- stg_height = 513;
- scale_x = .725;
- scale_y = .725;
- top_x = stg_width * 0.5 - 402 * scale_x;
- top_y = ceil ( stg_height - 388 * scale_y );
- // Set the camera boundaries + maximal zoom level. Minimal zoom level is determined by camera boundaries.
- camera_boundary_l = 0;
- camera_boundary_u = 0;
- camera_boundary_r = stg_width;
- camera_boundary_d = stg_height;
- camera_boundary_zoom = 155;
- // Set the death boundaries.
- death_l = -96;
- death_u = -66;
- death_r = stg_width + 96;
- death_d = stg_height + 72;
- // Set the players' starting position and respawn point.
- player_spawn_x [ 0 ] = top_x + 48 * scale_x;
- player_spawn_y [ 0 ] = top_y + 122 * scale_y + 1;
- player_spawn_x [ 1 ] = top_x + 756 * scale_x;
- player_spawn_y [ 1 ] = player_spawn_y [ 0 ];
- player_spawn_x [ 2 ] = top_x + 189.6 * scale_x;
- player_spawn_y [ 2 ] = player_spawn_y [ 0 ];
- player_spawn_x [ 3 ] = top_x + 614.4 * scale_x;
- player_spawn_y [ 3 ] = player_spawn_y [ 0 ];
- player_spawn_x [ 4 ] = top_x + 331.2 * scale_x;
- player_spawn_y [ 4 ] = player_spawn_y [ 0 ];
- player_spawn_x [ 5 ] = top_x + 472.8 * scale_x;
- player_spawn_y [ 5 ] = player_spawn_y [ 0 ];
- respawn_x = stg_width * 0.5;
- respawn_y = player_spawn_y [ 0 ] - 150;
- // Load and set the stage collisions.
- stage_install_bg_object();
- obj_stage_bg.top_x = top_x;
- obj_stage_bg.top_y = top_y;
- obj_stage_bg.scale_x = scale_x;
- obj_stage_bg.scale_y = scale_y;
- obj_stage_bg.stg_width = stg_width;
- obj_stage_bg.stg_height = stg_height;
- global.msk_stg[0] = stage_msk_add ( 'stage/district/mask_floor.png' , 1 , 1 , 0 , 0 , 0 );
- global.msk_stg[1] = stage_msk_add ( 'stage/district/mask_lwall.png' , 1 , 1 , 0 , 0 , 0 );
- global.msk_stg[2] = stage_msk_add ( 'stage/district/mask_rwall.png' , 1 , 1 , 0 , 0 , 0 );
- global.msk_stg[3] = stage_msk_add ( 'stage/district/mask_ceil.png' , 1 , 1 , 0 , 0 , 0 );
- global.msk_stg[5] = spr_add_alpha ( 'stage/district/platform.png' , 1 , 1 , 0 , 123 , 16 );
- // asda
- obj_stage_bg.apollo_bashful = spr_add_alpha ( "stage/district/apollo_bashful.png" , 13 , 0 , 0 , 12 , 30 );
- obj_stage_bg.apollo_bashfultalk = spr_add_alpha ( "stage/district/apollo_bashfultalk.png" , 4 , 0 , 0 , 12 , 30 );
- obj_stage_bg.apollo_confident = spr_add_alpha ( "stage/district/apollo_confident.png" , 15 , 0 , 0 , 11 , 33 );
- obj_stage_bg.apollo_confidenttalk = spr_add_alpha ( "stage/district/apollo_confidenttalk.png" , 12 , 0 , 0 , 11 , 33 );
- obj_stage_bg.apollo_deskslam = spr_add_alpha ( "stage/district/apollo_deskslam.png" , 7 , 0 , 0 , 9 , 31 );
- obj_stage_bg.apollo_deskslamidle = spr_add_alpha ( "stage/district/apollo_deskslamidle.png" , 4 , 0 , 0 , 9 , 30 );
- obj_stage_bg.apollo_deskslamtalk = spr_add_alpha ( "stage/district/apollo_deskslamtalk.png" , 3 , 0 , 0 , 9 , 30 );
- obj_stage_bg.apollo_evidence = spr_add_alpha ( "stage/district/apollo_evidence.png" , 1 , 0 , 0 , 11 , 32 );
- obj_stage_bg.apollo_evidencetalk = spr_add_alpha ( "stage/district/apollo_evidencetalk.png" , 4 , 0 , 0 , 11 , 32 );
- obj_stage_bg.apollo_idle = spr_add_alpha ( "stage/district/apollo_idle.png" , 15 , 0 , 0 , 13 , 32 );
- obj_stage_bg.apollo_idletalk = spr_add_alpha ( "stage/district/apollo_idletalk.png" , 12 , 0 , 0 , 13 , 32 );
- obj_stage_bg.apollo_nod = spr_add_alpha ( "stage/district/apollo_nod.png" , 4 , 0 , 0 , 13 , 32 );
- obj_stage_bg.apollo_objection = spr_add_alpha ( "stage/district/apollo_objection.png" , 11 , 0 , 0 , 12 , 32 );
- obj_stage_bg.apollo_objectionidle = spr_add_alpha ( "stage/district/apollo_objectionidle.png" , 4 , 0 , 0 , 9 , 32 );
- obj_stage_bg.apollo_objectiontalk = spr_add_alpha ( "stage/district/apollo_objectiontalk.png" , 4 , 0 , 0 , 9 , 32 );
- obj_stage_bg.apollo_shakehead = spr_add_alpha ( "stage/district/apollo_shakehead.png" , 11 , 0 , 0 , 13 , 32 );
- obj_stage_bg.apollo_shock = spr_add_alpha ( "stage/district/apollo_shock.png" , 9 , 0 , 0 , 16 , 34 );
- obj_stage_bg.apollo_sweat = spr_add_alpha ( "stage/district/apollo_sweat.png" , 15 , 0 , 0 , 5 , 28 );
- obj_stage_bg.apollo_sweattalk = spr_add_alpha ( "stage/district/apollo_sweattalk.png" , 12 , 0 , 0 , 5 , 28 );
- obj_stage_bg.apollo_think = spr_add_alpha ( "stage/district/apollo_think.png" , 4 , 0 , 0 , 9 , 31 );
- obj_stage_bg.apollo_thinktalk = spr_add_alpha ( "stage/district/apollo_thinktalk.png" , 4 , 0 , 0 , 9 , 31 );
- obj_stage_bg.edgeworth_armfold = spr_add_alpha ( "stage/district/edgeworth_armfold.png" , 18 , 0 , 0 , 11 , 29 );
- obj_stage_bg.edgeworth_armfoldtalk = spr_add_alpha ( "stage/district/edgeworth_armfoldtalk.png" , 12 , 0 , 0 , 11 , 29 );
- obj_stage_bg.edgeworth_bow = spr_add_alpha ( "stage/district/edgeworth_bow.png" , 3 , 0 , 0 , 10 , 34 );
- obj_stage_bg.edgeworth_deskslam = spr_add_alpha ( "stage/district/edgeworth_deskslam.png" , 5 , 0 , 0 , 13 , 31 );
- obj_stage_bg.edgeworth_deskslamidle = spr_add_alpha ( "stage/district/edgeworth_deskslamidle.png" , 13 , 0 , 0 , 13 , 31 );
- obj_stage_bg.edgeworth_deskslamtalk = spr_add_alpha ( "stage/district/edgeworth_deskslamtalk.png" , 12 , 0 , 0 , 13 , 31 );
- obj_stage_bg.edgeworth_evidence = spr_add_alpha ( "stage/district/edgeworth_evidence.png" , 1 , 0 , 0 , 10 , 30 );
- obj_stage_bg.edgeworth_evidencetalk = spr_add_alpha ( "stage/district/edgeworth_evidencetalk.png" , 12 , 0 , 0 , 10 , 30 );
- obj_stage_bg.edgeworth_idle = spr_add_alpha ( "stage/district/edgeworth_idle.png" , 15 , 0 , 0 , 10 , 30 );
- obj_stage_bg.edgeworth_idletalk = spr_add_alpha ( "stage/district/edgeworth_idletalk.png" , 12 , 0 , 0 , 10 , 30 );
- obj_stage_bg.edgeworth_objection = spr_add_alpha ( "stage/district/edgeworth_objection.png" , 15 , 0 , 0 , 13 , 28 );
- obj_stage_bg.edgeworth_objectionidle = spr_add_alpha ( "stage/district/edgeworth_objectionidle.png" , 4 , 0 , 0 , 13 , 28 );
- obj_stage_bg.edgeworth_objectiontalk = spr_add_alpha ( "stage/district/edgeworth_objectiontalk.png" , 4 , 0 , 0 , 13 , 28 );
- obj_stage_bg.edgeworth_pointing = spr_add_alpha ( "stage/district/edgeworth_pointing.png" , 1 , 0 , 0 , 7 , 29 );
- obj_stage_bg.edgeworth_pointingtalk = spr_add_alpha ( "stage/district/edgeworth_pointingtalk.png" , 4 , 0 , 0 , 7 , 29 );
- obj_stage_bg.edgeworth_shocked = spr_add_alpha ( "stage/district/edgeworth_shocked.png" , 3 , 0 , 0 , 14 , 30 );
- obj_stage_bg.edgeworth_shockedidle = spr_add_alpha ( "stage/district/edgeworth_shockedidle.png" , 4 , 0 , 0 , 10 , 22 );
- obj_stage_bg.edgeworth_shockedtalk = spr_add_alpha ( "stage/district/edgeworth_shockedtalk.png" , 4 , 0 , 0 , 10 , 22 );
- obj_stage_bg.edgeworth_shrug = spr_add_alpha ( "stage/district/edgeworth_shrug.png" , 16 , 0 , 0 , 17 , 29 );
- obj_stage_bg.edgeworth_shrugidle = spr_add_alpha ( "stage/district/edgeworth_shrugidle.png" , 13 , 0 , 0 , 17 , 29 );
- obj_stage_bg.edgeworth_shrugtalk = spr_add_alpha ( "stage/district/edgeworth_shrugtalk.png" , 12 , 0 , 0 , 17 , 29 );
- obj_stage_bg.edgeworth_smirk = spr_add_alpha ( "stage/district/edgeworth_smirk.png" , 8 , 0 , 0 , 10 , 29 );
- obj_stage_bg.gumshoebottom = spr_add_alpha ( "stage/district/gumshoebottom.png" , 1 , 0 , 0 , 0 , 0 );
- obj_stage_bg.gumshoe_angry = spr_add_alpha ( "stage/district/gumshoe_angry.png" , 15 , 0 , 0 , 17 , 30 );
- obj_stage_bg.gumshoe_angrytalk = spr_add_alpha ( "stage/district/gumshoe_angrytalk.png" , 12 , 0 , 0 , 17 , 30 );
- obj_stage_bg.gumshoe_confident = spr_add_alpha ( "stage/district/gumshoe_confident.png" , 15 , 0 , 0 , 17 , 34 );
- obj_stage_bg.gumshoe_confidenttalk = spr_add_alpha ( "stage/district/gumshoe_confidenttalk.png" , 12 , 0 , 0 , 17 , 34 );
- obj_stage_bg.gumshoe_headscratch = spr_add_alpha ( "stage/district/gumshoe_headscratch.png" , 12 , 0 , 0 , 22 , 32 );
- obj_stage_bg.gumshoe_idle = spr_add_alpha ( "stage/district/gumshoe_idle.png" , 14 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_idletalk = spr_add_alpha ( "stage/district/gumshoe_idletalk.png" , 12 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_lol = spr_add_alpha ( "stage/district/gumshoe_lol.png" , 16 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_loltalk = spr_add_alpha ( "stage/district/gumshoe_loltalk.png" , 12 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_pumped = spr_add_alpha ( "stage/district/gumshoe_pumped.png" , 2 , 0 , 0 , 18 , 32 );
- obj_stage_bg.gumshoe_pumpedtalk = spr_add_alpha ( "stage/district/gumshoe_pumpedtalk.png" , 12 , 0 , 0 , 18 , 32 );
- obj_stage_bg.gumshoe_sad = spr_add_alpha ( "stage/district/gumshoe_sad.png" , 15 , 0 , 0 , 17 , 30 );
- obj_stage_bg.gumshoe_sadtalk = spr_add_alpha ( "stage/district/gumshoe_sadtalk.png" , 12 , 0 , 0 , 17 , 30 );
- obj_stage_bg.gumshoe_side = spr_add_alpha ( "stage/district/gumshoe_side.png" , 15 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_sidetalk = spr_add_alpha ( "stage/district/gumshoe_sidetalk.png" , 12 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_thinking = spr_add_alpha ( "stage/district/gumshoe_thinking.png" , 12 , 0 , 0 , 17 , 32 );
- obj_stage_bg.gumshoe_thinkingtalk = spr_add_alpha ( "stage/district/gumshoe_thinkingtalk.png" , 12 , 0 , 0 , 17 , 32 );
- obj_stage_bg.judge_angry = spr_add_alpha ( "stage/district/judge_angry.png" , 15 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_angrytalk = spr_add_alpha ( "stage/district/judge_angrytalk.png" , 12 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_gavel = spr_add_alpha ( "stage/district/judge_gavel.png" , 12 , 0 , 0 , 17 , 28 );
- obj_stage_bg.judge_idle = spr_add_alpha ( "stage/district/judge_idle.png" , 15 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_idletalk = spr_add_alpha ( "stage/district/judge_idletalk.png" , 12 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_no = spr_add_alpha ( "stage/district/judge_no.png" , 16 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_surprised = spr_add_alpha ( "stage/district/judge_surprised.png" , 15 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_surprisedtalk = spr_add_alpha ( "stage/district/judge_surprisedtalk.png" , 12 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_thinking = spr_add_alpha ( "stage/district/judge_thinking.png" , 1 , 0 , 0 , 16 , 24 );
- obj_stage_bg.judge_yes = spr_add_alpha ( "stage/district/judge_yes.png" , 5 , 0 , 0 , 16 , 24 );
- obj_stage_bg.spectator_idle = spr_add_alpha ( "stage/district/spectator_idle.png" , 16 , 0 , 0 , 0 , 23 );
- obj_stage_bg.spectator_rant = spr_add_alpha ( "stage/district/spectator_rant.png" , 8 , 0 , 0 , 0 , 23 );
- global.msk_stg[4] = spr_add_alpha ( 'stage/district/platform2.png' , 1 , 1 , 0 , 123 , 16 );
- //global.msk_stg[7] = spr_add_alpha ( 'stage/casinon/tree.png' , 3 , 0 , 0 , 0 , 0 );
- //global.msk_stg[4] = stage_msk_add ( 'stage/district/layoutproto.png' , 1 , 1 , 0 , 0 , 0 );
- var i;
- i = instance_create ( top_x , top_y , obj_floor );
- i . sprite_index = global.msk_stg[0];
- i . image_xscale *= scale_x;
- i . image_yscale *= scale_y;
- i = instance_create ( top_x , top_y , obj_leftwall );
- i . sprite_index = global.msk_stg[1];
- i . image_xscale *= scale_x;
- i . image_yscale *= scale_y;
- i = instance_create ( top_x , top_y , obj_rightwall );
- i . sprite_index = global.msk_stg[2];
- i . image_xscale *= scale_x;
- i . image_yscale *= scale_y;
- i = instance_create ( top_x , top_y , obj_ceiling );
- i . sprite_index = global.msk_stg[3];
- i . image_xscale *= scale_x;
- i . image_yscale *= scale_y;
- // Set the ledges.
- instance_create ( top_x + 9 * scale_x , top_y + 122 * scale_y , obj_edge_left );
- instance_create ( top_x + 795 * scale_x , top_y + 122 * scale_y , obj_edge_right );
- // Load and set up the background layers.
- background_index[0] = bg_add ( "stage/district/bg.png" );
- kk = instance_create ( top_x , top_y , obj_stage_bgd ); kk . depth = 9;
- kk . sprite_index = bg_add ( 'stage/district\main.png' , 0 , 0 );
- kk . visible = 1;
- kk . image_xscale = scale_x;
- kk . image_yscale = scale_y;
- kk . image_blend = 16777215;
- kk . image_alpha = 1;
- obj_stage_bg.x = top_x;
- obj_stage_bg.y = top_y;
- obj_stage_bg.image_xscale = scale_x;
- obj_stage_bg.image_yscale = scale_y;
- kk = instance_create ( top_x , top_y , obj_stage_bgd ); kk . depth = -6;
- kk . sprite_index = bg_add ( 'stage/district\mainfront.png' , 0 , 0 );
- kk . visible = 1;
- kk . image_xscale = scale_x;
- kk . image_yscale = scale_y;
- kk . image_blend = 16777215;
- kk . image_alpha = 1;
- kk = instance_create ( stg_width * 0.5 - 111.5 * scale_x , top_y - 48 , obj_stage_bgd ); kk . depth = 9;
- kk . sprite_index = bg_add ( 'stage/district\centerplatform.png' , 0 , 0 );
- kk . visible = 1;
- kk . image_xscale = scale_x;
- kk . image_yscale = scale_y;
- kk . image_blend = 16777215;
- kk . image_alpha = 1;
- kk = instance_create ( stg_width * 0.5 - 111.5 * scale_x , top_y - 48 , obj_stage_bgd ); kk . depth = -6;
- kk . sprite_index = bg_add ( 'stage/district\centerplatform2.png' , 0 , 0 );
- kk . visible = 1;
- kk . image_xscale = scale_x;
- kk . image_yscale = scale_y;
- kk . image_blend = 16777215;
- kk . image_alpha = 1;
- i = instance_create ( stg_width * 0.5 - 108.5 * scale_x , top_y - 48 + 15 * scale_y , obj_platform );
- i . image_xscale = 13.5625 * scale_x;
- i . image_yscale = 0.25;
- with ( obj_stage_bg )
- //obj_stage_bg.bump_snd = sound_add ( "stage/casinon/bump.wav" , 0 , 0 );
- gavel = sound_add ( "stage/district/gavel.wav" , 0 , 0 );
- spectator_rant = sound_add ( "stage/district/gallery.wav" , 0 , 0 );
- apollo_deskslamtalk = sound_add ( "stage/district/apolloholdit.wav" , 0 , 0 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement