y=-2, z=35, texture=load_texture('stone.png'), scale_x=30, scale_y=0.30, scale_z=40, collider='box') # plat1 plat1 = Entity(model='cube', texture=load_texture('crates.png'), scale_x=2, scale_y=2, scale_z=2, collider='box', y=-1, x=-3, z=-3) plat1shadow = Entity(model='cube', texture=None, color=color.rgba(0, 0, 0, 50), scale_x=2, scale_z=2, scale_y=0.002, x=-3, y=-1.9, z=-1) player.y = grass.y Sky() app.run()
position = Vec2(0.4, -0.6) ) def active(self): self.position = Vec2(0.3, -0.5) def passive(self): self.position = Vec2(0.4, -0.6) for z in range(15): for x in range(15): for y in range(4): voxel = Voxel(position = (x, y, z), texture = random.choice([arm_texture, stone_texture, grass_texture, sky_texture, brick_texture])) for z in range(15): for x in range(15): voxel = Voxel(position = (x, 4, z)) player = FirstPersonController() player.y = 5 sky = Sky() hand = Hand() app.run()