Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if surface_exists(surf){
- var cx = round(camera_get_view_width(view_camera[0]) - 2 ),
- var cy = round(camera_get_view_height(view_camera[0]) - 2);
- surface_set_target(surf)
- draw_clear_alpha(c_black,1);
- gpu_set_blendmode(bm_add);
- draw_circle_color(mouse_x, mouse_y, 32, c_white, c_black, 0);
- if instance_exists(o_player){
- with(o_player) {
- draw_circle_color(x, y, 80, lcol, c_black, 0);
- }
- }
- surface_reset_target();
- gpu_set_blendmode_ext(bm_zero, bm_subtract);
- draw_surface(surf, 0, 0);
- gpu_set_blendmode(bm_normal);
- } else {
- // 4 is the buffer so it engulves the whole screen
- //surf = surface_create( camera_get_view_width(view_camera[0])+4,
- //camera_get_view_height(view_camera[0])+4);
- surf = surface_create(room_width+4, room_height+4);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement