gmc-jam-7/objects/obj_island/Draw_0.gml

44 lines
1.5 KiB
Plaintext
Executable File

if y < -400
{
instance_destroy()
}
if global.stage = 1
{
tex = sprite_get_texture(spr_textrees,0)
d3d_draw_cone(x-size,y-size,-450,x+size,y+size,-450 + length/3,tex,1,1,false,24)
d3d_draw_cone(x-2*size/3,y-2*size/3,-450+length/3,x+2*size/3,y+2*size/3,-450 + 2*length/3,tex,1,1,false,24)
d3d_draw_cone(x-size/3,y-size/3,-450+2*length/3,x+size/3,y+size/3,-450 + length,tex,1,1,false,24)
}
if global.stage = 2
{
tex = sprite_get_texture(spr_crystal,0)
d3d_draw_wall(x,y-150,-750,x,y+150,750,tex,1,1)
}
if global.stage = 3
{
tex = sprite_get_texture(spr_crystal,0)
d3d_draw_block(x-500,y-100,-500,x+500,y+100,-500+length,tex,10,length/100)
tex = sprite_get_texture(spr_textrees,0)
d3d_draw_floor(x-500,y-100,-499+length,x+500,y+100,-499+length,tex,10,2)
d3d_draw_wall(x-501,y-100,-500+length,x-501,y+100,-500,tex,2,length/100)
d3d_draw_wall(x+501,y-100,-500+length,x+501,y+100,-500,tex,2,length/100)
}
if global.stage = 4
{
d3d_transform_set_identity()
d3d_transform_add_rotation_x(rx)
d3d_transform_add_rotation_y(ry)
d3d_transform_add_rotation_z(rz)
d3d_transform_add_translation(x,y,z)
tex = sprite_get_texture(spr_crystal,0)
d3d_draw_cone(-size,-size,0,+size,+size,+length/2,tex,1,1,false,5)
d3d_draw_cone(-size,-size,0,+size,+size,-length/2,tex,1,1,false,5)
d3d_transform_set_identity()
}
if global.stage = 5
{
tex = sprite_get_texture(spr_crystal,0)
d3d_draw_cylinder(x-size,y-size,-1 + z,x+size,y+size,-length + z,tex,1,1,true,24)
}