Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sc_Depth
- //Create Grid
- with (O_Depth)
- {
- if (!ds_exists(Ds_DepthGrid,ds_type_grid))
- {
- Ds_DepthGrid = ds_grid_create(2, 1);
- Ds_DepthGrid[# 0, 0] = other;
- Ds_DepthGrid[# 1, 0] = other.y;
- }
- else
- {
- var Hg = ds_grid_height(Ds_DepthGrid) ;
- ds_grid_resize(Ds_DepthGrid, 2, Hg+1);
- Ds_DepthGrid[# 0, Hg] = other;
- Ds_DepthGrid[# 1, Hg] = other.y;
- }
- }
- O_Text
- Create:
- Ds_DepthGrid = 0;
- Draw:
- if ds_exists(Ds_DepthGrid, ds_type_grid)
- {
- ds_grid_sort(Ds_DepthGrid, 1, true);
- for (var yy = 0; yy < ds_grid_height(Ds_DepthGrid); yy += 1;)
- {
- var Check = Ds_DepthGrid[# 0,yy];
- with Check
- {
- draw_self();
- }
- }
- ds_grid_destroy(Ds_DepthGrid);
- }
- Game End:
- if (ds_exists(Ds_DepthGrid, ds_type_grid))
- {
- ds_grid_destroy(Ds_DepthGrid);
- }
- Object O_Check_Depth
- Draw:
- /// @desc Work
- //MINDLESS COMMENTS ARE EVERY WHERE TO MUCH FLUFF
- //NEEDS TO BE EVEN MORE CLOSTERPHOPIC! (WHY ARE THERE SO MAIN TABS IT ANNOYING)
- Pre Draw:
- Sc_Depth();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement