25 lines
713 B
Plaintext
25 lines
713 B
Plaintext
draw_set_alpha(1-(alarm[0]/15))
|
|
z = 45 + (spinspeed/4)
|
|
d3d_set_lighting(true)
|
|
var tex = sprite_get_texture(spr_grave,0)
|
|
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()
|
|
var tex = sprite_get_texture(spr_meteor,0)
|
|
d3d_draw_cylinder(x-48,y-48,z-10,x+48,y+48,z+10,tex,1,1,true,9)
|
|
var tex = sprite_get_texture(spr_spin,0)
|
|
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)
|
|
|