Mindmap
Night sky
Inhalt der Mindmap
Night sky
Task Requirement
- Self Determined Criteria
- Have a sky with variation star/plantes
- SDC Requirements
- Have a sky that has stars and planets
- Have A Moon
- Have a comet with a comet tail
- SDC Requirements
- Have a sky with variation star/plantes
- Prescribed Criteria
- Use multiple types of graphic functions
- The circles will create a drawing of the moon stars of planets
- Have rectangles created buildings or trees ect
- Have lines forming a comet tail or northern lights
- Create a coherent picture related to the STEM video games theme
- The picture will incorporate the Stem theme.
- The pictures are visuals understandable by the user.
- The picture will have stars and planets
- Use multiple colours
- Have a sky with a large variation of colours
- There will be different coloured stars
- There will be a city or another large visible area on the ground
- Create three functions that draw something
- Using circles for moons
- Using circles for stars
- Using rectangles for building or trees
- Create a coherent animation related to the STEM video game theme
- Have incorporated the STEM theme
- Have animations for the moon stars or another planet
- Use for loops to create and position multiple items
- Randomized star x and y
- Animate at least two aspects of this drawing
- Have a animated moon that moves
- Have stars that flicker
- Use multiple types of graphic functions
- Self Determined Criteria
Developer Problem
- Coding Environment
- Loops
- For Loops
- for star in self.stars: x, y, size, brightness = star brightness = random.uniform(0.5, 1.0) color = (int(255 * brightness), int(255 * brightness), int(255 * brightness)) arcade.draw_point(x, y, color, size)
- This code draws each star as a small white point and changes the brightness from 0.5 to 1 every frame which in return makes the stars look like they flicker
- self.stars = [(random.randint(0, screen_width), random.randint(200, screen_height), random.randint(1, 3), random.uniform(10, 100)) for _ in range(NUM_STARS)] self.frame_count = 0
- This code generates a list of random positions of x and y integer to randomly place stars across the sky
- for star in self.stars: x, y, size, brightness = star brightness = random.uniform(0.5, 1.0) color = (int(255 * brightness), int(255 * brightness), int(255 * brightness)) arcade.draw_point(x, y, color, size)
- For Loops
- Development Tools
- Thonny
- Arcade
- Thonny
- Key Algorithm
- Conditional Statements
- If Statements
- if self.frame_count > total_frames:
- This code resets the number of frames if it reaches higher than the total number of frames
- if self.frame_count > total_frames:
- If Statements
- Custom defined functions
- def on_update(self, delta_time): self.frame_count += 1
- This code increments the frame count
- def main(): game = MyGame() arcade.run()
- This code creates an instance of MyGame and runs the extension from thonny, arcade
- def on_update(self, delta_time): self.frame_count += 1
- Loops
- Coding Environment
Informationen
- Beschreibung
- Year 10 Digital Technologies Mindmap am Night sky, erstellt von Aiden FRAPPELL am 09/06/2024.
- Erstellt von
- Aiden FRAPPELL
- Aufrufe
- 1
- Bewertung