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

26 lines
811 B
Plaintext
Raw Permalink Normal View History

d3d_set_lighting(true)
d3d_transform_set_identity()
d3d_transform_set_rotation_z(pointsdirection+180)
d3d_transform_add_translation(x,y,z)
var tex = sprite_get_texture(spr_star,0)
d3d_draw_ellipsoid(-o_o,-o_o,19,o_o,o_o,25,tex,1,1,5)
d3d_draw_ellipsoid(-o_o,-o_o,5,o_o,o_o,11,tex,1,1,5)
d3d_draw_ellipsoid(-o_o,-o_o,-15,o_o,o_o,-9,tex,1,1,5)
var tex = sprite_get_texture(spr_player,0)
d3d_draw_cone(-16,-16,-20,16,16,20,tex,1,1,false,5)
d3d_draw_ellipsoid(-6,-6,15,6,6,27,tex,1,1,5)
o_o = 3
draw_set_alpha(.5)
d3d_draw_floor(-16,-16,-450,16,16,-450,tex,1,1)
draw_set_alpha(1)
d3d_transform_set_identity()
tex = sprite_get_texture(spr_barrier,0)
if global.invuln > 0
{
draw_set_alpha(.25)
d3d_draw_ellipsoid(x-40,y-40,z-40,x+40,y+40,z+40,tex,1,1,12)
draw_set_alpha(1)
}