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

16 lines
431 B
Plaintext
Raw Normal View History

d3d_set_lighting(false)
z += zspeed
tex = sprite_get_texture(spr_star,0)
d3d_transform_set_identity()
d3d_transform_add_rotation_x(xangle)
d3d_transform_add_rotation_y(yangle)
d3d_transform_add_rotation_z(zangle)
d3d_transform_add_translation(x,y,z)
o_o = (alarm[0]/30)
d3d_draw_floor(-o_o,-o_o,-o_o,o_o,o_o,o_o,tex,1,1)
d3d_transform_set_identity()
xangle += xanglespeed
yangle += yanglespeed
zangle += zanglespeed