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

13 lines
314 B
Plaintext

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