ladder.py

Created by wperez274

Created on August 05, 2022

964 Bytes


# Type your text here

from math import *
from random import *
from kandinsky import *
from time import *


ladder_1_x=randint(5,300)
ladder_1_y=100
ladder_1_w=15
ladder_1_h=25
ladder_1_c=(randint(50,255),randint(50,255),randint(50,255))


fill_rect(0,0,322,222,(0,0,0))

floor_1_x=0
floor_1_y=100
floor_1_w=322
floor_1_h=3
floor_1_c="cyan"


floor_2_x=0
floor_2_y=120
floor_2_w=322
floor_2_h=3
floor_2_c="cyan"



fill_rect(floor_1_x,floor_1_y,floor_1_w,floor_1_h,floor_1_c)

fill_rect(floor_2_x,floor_2_y,floor_2_w,floor_2_h,floor_2_c)

fill_rect(ladder_1_x,ladder_1_y,ladder_1_w,2,ladder_1_c)
fill_rect(ladder_1_x,ladder_1_y+5,ladder_1_w,2,ladder_1_c)
fill_rect(ladder_1_x,ladder_1_y+10,ladder_1_w,2,ladder_1_c)

fill_rect(ladder_1_x,ladder_1_y+15,ladder_1_w,2,ladder_1_c)
fill_rect(ladder_1_x,ladder_1_y+20,ladder_1_w,2,ladder_1_c)
fill_rect(ladder_1_x,ladder_1_y,2,20,ladder_1_c)

fill_rect(ladder_1_x+ladder_1_w-2,ladder_1_y,2,20,ladder_1_c)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.