Friday, June 2

Electricity Project.

Matthew Robbins and I created a battery out of 10 cent coins, Zinc washers and cardboard soaked in Vinegar.Our question was to find out how much energy copper coins generator to do this we stacked copper coins cardboard and then zinc washers for my first battery i used 15 copper coins. Then I connected a volt meter to each end of the batter. We got a high voltage of 7.65 volts but sadly the battery only created a low current. Our oringal idea was to use the battery to power a small light bulb or a calculator but after that failed we decided to power a LED.


Positive
A positive of doing this experiment was that it was a lot of fun and it was great learning about how different metals create different levels of electricity.


Minus
We had a few distractions as there was a inappropriate group working near us. Our battery didnt have much current.

Interesting  
Ten cent coins create a lot of voltage but now a lot of current. Also Despite having a lot of voltage the LED still didn't glow very bright.

Tuesday, May 30

Problem solving with Python

Introduction

In the last few Sessions in Computing Science I have been working with Python as a language to design a game by writing code. We are using different platforms to learn about computer language  so that we can tell the computer what code to run. I understand that the coding (syntax) on python must be very precise other wise the code will not work. This means every line of code must be correct if there is even one mistake the hole code will not work.


Setting up the code 

We started by creating a template on Python IDLE that we would build our game from we created our template by following along with a video that had a step by step by step process to creating a game.I used hash tags to make reminders about what I need to do as I write my code. This is the code that sets up my window,Width, height and the rate my that the frames of the game run. The hash tags in my code is where I make my notes, if you put a hash tag before something it does not appere on the program window.

# 1 Start pygame
import pygame
import random

# 2. create a Window
WIDTH=360
HEIGHT=480
FPS=30

# 3. Define a few useful colours. This is where I created some of the colors I will use later in my code each color has a series of numbers that equal that color so instead of writing those numbers all the time I made the numbers equal the name of the color.

WHITE=(225, 255,255)
BLACK=(0,0,0)
RED=(255, 0,0)
GREEN=(0, 255,0)
BLUE=(0, 0,255)
CYAN=(0,255,255)

# create sprit movment

#setting up player

class Player(pygame.sprite.Sprite):
    #sprite for the player
    def __init__(self):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.surface((50,50))
        self.image.fill(GREEN)
        self.rect = self.image.get_rect()
        self.rect.center = (WIDTH, HEIGHT)

def update(self):
    self.rect.x+= 5
    if self.rect.left > WIDTH:
        self.rect.right = 0
                                    

# 4. iNITIALISE GAME AND MUSIC AND CREATE WINDOW 

pygame.init()
#pygame.mixer.init() 
pygame.mixer.init()
screen = pygame.display.set_mode(WIDTH, HEIGHT)
pygame.display.set_caption('MY GAME')
clock = pygame.time.Clock()

# Creating sprites
all_sprites = pygame.sprite.Group()
player = Player()
allsprites.add(player)
                                    
all_sprites = pygame.sprite.Group()
# Game loop
running = True
while running:
# keep loop running an the right speed
 clock.tick(FPS)
#Process input
running = True
while running:
    
    # Process input (events)
    for event in pyggame.get():
        
        # cheek for closing everything
        if event.type == pygame.QUIT:
          running = False 
    # Update
    all_sprites.update()
    #Draw / render
    screen.fill(RED)
    all_sprites.draw(screen)
    # after drawing everything, flip the display
    pygame.display.flip()

    pygame.quit()
    


Game Design with Blender.

As a student in a Year 9 class I Have been learning to use Blender Game engine to crate a basic logic game. I am learning the 3D skills to control my my cube using different sensors, controllers and actuator to make my cube move.

Blender is a game engine that uses logic to create a game. The first steps are to set up the platform with the game logic window showing the sensors, the logic controls and actuators. The Blender Game platform is selected from the top as well as the game logic.


 The next step is to add some physics to the game to ensure the it falls on a platform. To do this we added a platform and also enabled the motion in the character mode which allows the cube to act as player. I did this in the motion actuator and the jump aspect is enabled so that the player can show an up and down movement as well giving the character a 3D aspect.

Wednesday, April 12

Designing and Programming a Game on Python

Design Brief for Python- As a student I am learning to use Python and Pygames to design a simple Turtle game. I will learn how to make the Turtle do a number of different activities. I will be using a Python IDLE window to run my game.

Trinket is a amazing tool that teaches you some basic programming it uses a turtle to do different things like drawing different things and write anything you want.  It shows you what code you need to write so make the turtle do different things . What I like about Trinket is that is is easy to use and its shows you what to do step by step.

Wednesday, April 5

Designing and programming a Game on Scratch

As a student in a year 9 class I am going to design a game using scratch/Python. My game will be challenging but also enjoyable . When I am designing my game I will use the Forever and if/Then loop so that I can understand the basics of programming and how games work.

Wednesday, March 22

9LE Services

In theses past eight weeks in serveries we have been working on a plastic bottle glass house.