CoCalc Shared Filesgame.sagews
Authors: KingSlime57 ., William A. Stein
Views : 9
Description: cape man gets adopted by Santi...
metal = cube(size=1.5, color=['gray', 'gray', 'gray'], frame_thickness=0,
frame_color='black', opacity=1)

bat = metal
for i in [1..14]:
if i > 0 and i < 4:
else:
col = 'gray'
bat += cube(size=1 + i/10, frame_thickness=0,frame_color='black', color=((col, col, col))).translate((0,0,i))
bat

3D rendering not yet implemented


from sage.plot.plot3d.shapes import Cone
player = Cone(1.2, 1.2, color='darkorange').translate(0,0,2.5)
player += cube(color='darkblue').scale([1,1,3])
player += cube(color='lime').scale([2,.5,.5]).translate((1,0,.5))
player += cube(color='lime').scale([-2,.5,.5]).translate((-1,0,.5))
player += sphere(color='aqua').translate([0,0,2])
player += sphere((-.3, 1.2,2.15), size=.3, color='white') + sphere((-.3,1.4,2.17), size=.15, color='black')
player += sphere((.3, 1.2, 2.15), size=.3, color='white') + sphere(( .2,1.4,2.17), size=.15, color='black')
player += cube(color='black').scale([.5,.5,3]).translate([-0.5,0,-2])
player += cube(color='black').scale([.5,.5,3]).translate([0.5,0,-2])
player += sphere(color='black', size=.3).translate([0,.8,1.5])
player += icosahedron(color='darkorange').translate([0,0,3])
player += bat.scale(0.3).translate((2,0,0))
show(player, aspect_ratio=1)


3D rendering not yet implemented

B = 20
floor = plot3d(lambda x, y: 0, (0, B), (0,B), color='green')
p0 = player.translate((40,40,4)).scale(0.25)

world = p0 + floor

#for i in range(0):
#    world += p0.translate((B*random(), B*random(), random()))

show(world, width=1000, frame=True)

3D rendering not yet implemented