2021-06-28 18:44:09 -07:00
|
|
|
draw_set_alpha(1-(alarm[0]/15))
|
|
|
|
z = 45 + (spinspeed/4)
|
|
|
|
d3d_set_lighting(true)
|
2021-07-07 23:43:05 -07:00
|
|
|
var tex = sprite_get_texture(spr_grave,0)
|
2021-06-28 18:44:09 -07:00
|
|
|
d3d_transform_set_identity()
|
|
|
|
d3d_transform_set_rotation_z(spin)
|
|
|
|
d3d_transform_add_translation(x,y,z)
|
|
|
|
d3d_draw_cylinder(-64,-64,-3,64,64,3,tex,1,1,true,9)
|
|
|
|
d3d_transform_set_identity()
|
2021-07-07 23:43:05 -07:00
|
|
|
var tex = sprite_get_texture(spr_meteor,0)
|
2021-06-28 18:44:09 -07:00
|
|
|
d3d_draw_cylinder(x-48,y-48,z-10,x+48,y+48,z+10,tex,1,1,true,9)
|
2021-07-07 23:43:05 -07:00
|
|
|
var tex = sprite_get_texture(spr_spin,0)
|
2021-06-28 18:44:09 -07:00
|
|
|
d3d_draw_cone(x-32,y-32,z+10,x+32,y+32,z+15,tex,1,1,true,9)
|
|
|
|
spin += spinspeed
|
|
|
|
if spintype = 1
|
|
|
|
spinspeed += .25
|
|
|
|
if spintype = 0
|
|
|
|
spinspeed -= .25
|
|
|
|
if spinspeed > 50
|
|
|
|
spintype = 0
|
|
|
|
if spinspeed < -50
|
|
|
|
spintype = 1
|
|
|
|
draw_set_alpha(1)
|
2021-07-07 23:43:05 -07:00
|
|
|
|