ludum-dare-22/objects/obj_spinner/Draw_0.gml

13 lines
324 B
Plaintext
Raw Normal View History

draw_set_alpha(1-(alarm[0]/15))
z = 45
d3d_set_lighting(true)
var tex = sprite_get_texture(spr_spin,0)
d3d_transform_set_identity()
d3d_transform_set_rotation_z(spin)
d3d_transform_add_translation(x,y,z)
d3d_draw_ellipsoid(-16,-16,-3,16,16,3,tex,1,1,5)
d3d_transform_set_identity()
spin += 20
draw_set_alpha(1)