1 / 12

Det skrå kast!

Det skrå kast!. Sebastian Smith. Koordinatsystemet. Vandrette og lodrette. Farver Eksempel: w.create_line (100,500,100,0, fill="#c4c1c1 "). Kodning. #--1.Creating horisontal lines-- w.create_line (0,400,700,400, fill="#000000",width=2) w.create_line (0,100,700,100, fill="#c4c1c1")

porter
Download Presentation

Det skrå kast!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Det skrå kast! Sebastian Smith

  2. Koordinatsystemet Vandrette og lodrette. Farver Eksempel: w.create_line(100,500,100,0, fill="#c4c1c1")

  3. Kodning. #--1.Creating horisontal lines-- w.create_line(0,400,700,400, fill="#000000",width=2) w.create_line(0,100,700,100, fill="#c4c1c1") w.create_line(0,200,700,200, fill="#c4c1c1") w.create_line(0,300,700,300, fill="#c4c1c1") #--2.Creating vertical lines-- w.create_line(600,500,600,0, fill="#000000",width=2) w.create_line(100,500,100,0, fill="#c4c1c1") w.create_line(200,500,200,0, fill="#c4c1c1") w.create_line(300,500,300,0, fill="#c4c1c1") w.create_line(400,500,400,0, fill="#c4c1c1") w.create_line(500,500,500,0, fill="#c4c1c1")

  4. Tal på koordinatsystemet (Labels) Placering. Text. Placering ved pixel. Eksemple: w.create_text(95, 100, anchor="se", text="300cm").

  5. Kodning. #--3.Creating horisontal axislabels-- w.create_text(95, 100, anchor="se", text="300cm") w.create_text(95, 200, anchor="se", text="200cm") w.create_text(95, 300, anchor="se", text="100cm") w.create_text(95, 400, anchor="se", text="0cm") w.create_text(605, 204, anchor="nw", text="Wall") w.create_text(335, 404, anchor="nw", text="Floor") w.create_text(105, 460, anchor="nw", text="0cm") w.create_text(205, 460, anchor="nw", text="100cm") w.create_text(305, 460, anchor="nw", text="200cm") w.create_text(405, 460, anchor="nw", text="300cm") w.create_text(505, 460, anchor="nw", text="400cm") w.create_text(605, 460, anchor="nw", text="500cm")

  6. Grafen. Start position. Start kræft. Bevægelse.

  7. Kodning w.create_line(x1,y1,x2,y2, fill="#ff0000") • x1=x2 • y1=y2 • x1=100.0 #x start position • y1=400.0#y start position • vx= float(Text10.get()) #x start velocity • vy= float(Text10.get())*-1 #y start velocity

  8. Tyngdekraft og luftmodstand. Tyngdekraft. Luftmodstand. Reducering af styrke.

  9. Sammenstød og bold Væg. Gulv. Tegning af bold.

  10. Bruger flade. Vindue. Labels. Bokse. Knapper.

  11. Test Løbende tests. Færdige produkt test. Forbedringer.

  12. Optimering. Vinkel bolden bliver skudt af sted fra. Design.

More Related