Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Drawing
- //Surface
- if surface_exists(global.bbox)
- draw_surface_part(global.bbox,
- TLeft.x + wall_size, TLeft.y + wall_size,
- wall_width - (wall_size * 2), wall_height - wall_size,
- TLeft.x + wall_size, TLeft.y + wall_size);
- ///////TLeft///////
- //Wall
- draw_sprite_ext(TLeft.sprite_index,0,
- TLeft.x + wall_size, TLeft.y,
- TLeft.image_xscale - (wall_size * 2), TLeft.image_yscale, 0,
- image_blend, image_alpha);
- //Corner
- draw_sprite_ext(spr_bat_BattleBoxCorner,0,
- TLeft.x, TLeft.y, 1, 1, 0, image_blend, image_alpha);
- ///////TRight///////
- //Wall
- draw_sprite_ext(TRight.sprite_index,0,
- TRight.x, TRight.y + wall_size,
- TRight.image_xscale, TRight.image_yscale - (wall_size * 2), 0,
- image_blend, image_alpha);
- //Corner
- draw_sprite_ext(spr_bat_BattleBoxCorner,0,
- TRight.x, TRight.y, -1, 1, 0, image_blend, image_alpha);
- ///////BRight///////
- //Wall
- draw_sprite_ext(BRight.sprite_index,0,
- BRight.x - wall_size, BRight.y,
- BRight.image_xscale + (wall_size * 2), BRight.image_yscale, 0,
- image_blend, image_alpha);
- //Corner
- draw_sprite_ext(spr_bat_BattleBoxCorner,0,
- BRight.x, BRight.y + wall_size, -1, -1, 0, image_blend, image_alpha);
- ///////BLeft///////
- //Wall
- draw_sprite_ext(BLeft.sprite_index,0,
- BLeft.x, BLeft.y - wall_size,
- BLeft.image_xscale, BLeft.image_yscale + (wall_size * 2), 0,
- image_blend, image_alpha);
- //Corner
- draw_sprite_ext(spr_bat_BattleBoxCorner,0,
- BLeft.x, BLeft.y, 1, -1, 0, image_blend, image_alpha);
Add Comment
Please, Sign In to add comment