Tuesday, 27 March 2018

Problem Solving With Python #1

INTRO

Over the last couple of weeks I have been learning the basics of  Python and by learning the rules of it. I have been learning about the codes and how they need to be perfectly set out, (if you missed out one letter or you haven't put a capital letter you code/game wouldn't work). When I'm Writing out the code I cheek several times just to see if the code is right.

# When you put a hashtag in your game template it turns into a note which the game software doesn't turn into a code so if you want to label things just put a hashtag and write next to it (it should turn red).

SETTING UP THE GAME

The first thing that you have to do at the start of every template/game you make you have to import the player and the scene otherwise there would be nothing and your game wouldn't work.

#Import Game/Player
Code: import pygame
      import player 
The next part is the template layout (the Width, Height and the FPS)

#Setting up the window
Code: WIDTH =360
      HEIGHT = 460
      FPS = 30
The following step is defining colors (I'll show you the basic colors) and setting up the page with the colors that you put in, (you can do it two ways but I'll show you the easiest way)

#Defining colors and screen
Code: WHITE = (255, 255, 255)
      BLACK = (0, 0, 0)
      Red = (255, 0, 0)
      Green = (0, 255, 0)
      Blue = (0, 0, 255)
      pygame.init()
      pygame.mixer.init()
      screen = pygame.display.set_mode (WIDTH, HEIGHT)
      pygame.display.set_caption ("My Game")
      clock = pygame.time.Clock()


GAME LOOP

In the loop sections there are 4 main parts of it, The

USING PYTHON WITH 3 DIFFERENT PLATFORMS


PROBLEM SOLVING

I managed to write the code down by following the video and  Ms Chowfin explained the reason


Time Management And Working Independently




For unit 1 I think I am showing the following time management skill level Extended abstract.
I have chosen this because I have worked independently and to my full potential for the work that has been given. I finished all work that has such as, creating a form, a social inquiry slide and an Anne Frank poster. I managed this survey on my own and recorded results. Link

I have evidence for choosing this level from class when I’m completing or editing work that has to be changed and staying on task.

For unit 1 I think I am showing the following working independently skill level Extended abstract.
I have chosen this because I get on my work by myself and I don’t have to be reminded to work on the task. I can adjust to whatever changes in the classroom because I work well with everyone.

I have evidence for choosing this level from class when I’m working independently and working without any distractions to the class. I also world reflect on my work for what I can improve on next.

Form Results:
Reuben Taylor has lived in New Zealand for 14 years. His family has lived in Taylorville, West Coast New Zealand for his entire life, his Mum and Dad have lived in New Zealand their entire lives as well.They moved to the south island about 30 years ago. When I asked him about the images his answers were interesting because he chose the shoes say that “everyone needs to have empathy”.I also asked Reuben about the 3 Videos and 4 movie trailers. He enjoyed the The Invictus movie Trailer and the Dave Dobbyn - Welcome Home (Official Music Video).
This photo about diversity that I related to the most. It means that you should have a jump into someone else's shoes which means the persons prospective.