EXCODE. Code An App From Scratch

Size: px
Start display at page:

Download "EXCODE. Code An App From Scratch"

Transcription

1 3 EXCODE Code An App From Scratch

2 Course Overview Weeks 1-2 Learning Python Weeks 3-5 Creating your game Week 6 Presenting the games

3 Get the course notes exeterentrepreneurs.com/excode-content exeterentrepreneurs.com/excode-content/

4 Recap my_list = [2, 3, 5, 2, 9, 22] indexed_list = my_list[2] if name == "John" or age == 17: print("name is John") my_list = [2,5,3] for x in (my_list): print(x)

5 More practice Any questions on CodeAcademy s Lessons 3, 5 or 8

6 PyGame Pygame is a cross-platform set of Python modules designed for creating games. The modules are designed to be simple, easy to use, and fun a key part of Pygame's ideology.

7 Why PyGame Simple Large community Open Source Suitable to be converted for Android It's Simple Python is often regarded as the best "first programming language" to learn, and has been praised for its easy-to-learn syntax and gradual learning curve. For this reason, many new programmers start by learning Python. Pygame extends Python, adopts Python s philosophy, and aims to be easy to use. Plus, aspiring new game developers with no programming experience can use Pygame, as they can quickly pick up Python first. It Has a Large Community Pygame has been available since 2000 and, since then, a large community has built up around it. It's Open Source The fact that Pygame is open source means that bugs are generally fixed very quickly by the community. It also means that you can extend Pygame to suit your needs and maybe even give back to the community. Suitable to be converted for Android

8 What we are aiming for (run demo)

9 Develop the game in teams Ideally in pairs, in a three or on your own if this isn t possible

10 Install Python Mac: /python macosx10.6.pkg Windows: python/2.7.13/python msi Choose 2.7 version Common issue: no matching architecture error: Check bit version of python: import platform print ( platform.architecture() )

11 Install PyGame Windows pygame.org/download.shtml Mac Open Terminal Type in and press enter: sudo pip install pygame Choose 2.7 version

12 Create a new Project and file Create a folder with appropriate name Open PyCharm, File->New Project->Save in that folder (THIS WINDOW OPTION FINE IF APPEARS) File->New ->Python File->call it main

13 Verify Python print( 2+2 ) Type print( 2+2 ) and run it

14 Verify PyGame installed import pygame To verify that you have PyGame installed properly, type in import pygame at the Python prompt. If this doesn t result in any output, then you re good.

15 Download resources LINK TO RESOURCES FOLDER Unzip it and copy resources folder into project folder

16 # 1 - Import library import pygame from pygame.locals import * Add the actor # 2 - Initialize the game pygame.init() width, height = 640, 480 screen=pygame.display.set_mode((width, height)) # 3 - Load images actor_image = pygame.image.load("resources/images/cannon.png") # 4 - keep looping through while 1: # 5 - clear the screen before drawing it again screen.fill(0) # 6 - draw the screen elements screen.blit(actor_image, (100,100)) # 7 - update the screen pygame.display.flip() # 8 - loop through the events for event in pygame.event.get(): # check if the event is the X button if event.type==pygame.quit: # if it is quit the game pygame.quit() exit(0) 1. Import the PyGame library. This allows you to use functions from the library in your program. 2. Initialise PyGame and set up the display window. 3. Load the image that you will use for the actor. 4. Keep looping over the following indented code. Note: Python uses indenting to identify code blocks. So proper indentation is very important in Python 5. Fill the screen with black before you draw anything. 6. Add the actor image that you loaded to the screen at x=100 and y= Update the screen. 8. Check for any new events and if there is one, and it is a quit command, exit the program.

17 Add the scenery Add at the end of section #3 background_image = pygame.image.load("resources/images/grass.png") castle_image = pygame.image.load("resources/images/castle.png") Add at the start of section #6 for x in range(width/background_image.get_width()+1): for y in range(height/background_image.get_height()+1): screen.blit(background_image,(x*100,y*100)) screen.blit(castle_image,(0,30)) screen.blit(castle_image,(0,135)) screen.blit(castle_image,(0,240)) screen.blit(castle_image,(0,345)) 1. Let s start by adding a background to the game scene. This can be done with a couple more screen.blit() calls. 2. At the end of section #3, after loading the actor image, add the following code. This loads the images and puts them into specific variables. Now they have to be drawn on screen. But if you check the background_image image, you will notice that it won t cover the entire screen area, which is 640 x 480. This means you have to tile the background_image over the screen area to cover it completely. 3. Add the following code to game.py at the beginning of section #6 (before the actor is drawn on screen) As you can see, the for statement loops through x first. Then, within that for loop, it loops through y and draws the background_image at the x and y values generated by the for loops. The next couple of lines just draw the castle_images on the screen.

18 Make the actor rotate import math Add at the end of section #1 actorpos=[150,240] Add at the end of section #2 import math contains maths functions needed to calculate rotation The actorpos variable is where the program draws the actor. Since the game will move the actor to different positions, it s easier to have a variable that contains the actor position and then simply draw the actor at that position.

19 Make the actor rotate screen.blit(actor_image, (100,100)) Change this in section #6 To this # Set actor position and rotation position = pygame.mouse.get_pos() angle = math.atan2(position[1]-(actorpos[1]+32),position[0]-(actorpos[0]+26)) actorrot = pygame.transform.rotate(actor_image, 360-angle*57.29) actorpos1 = (actorpos[0]-actorrot.get_rect().width/2, actorpos[1]-actorrot.get_rect().height/2) screen.blit(actorrot, actorpos1) Let s go through the basic structure of the above code. First you get the mouse and actor positions. Then you feed those into the atan2 function. After that, you convert the angle received from the atan2 function from radians to degrees (multiply radians by approximately or 360/2π). Since the actor will be rotated, its position will change. So now you calculate the new actor position and display the actor on screen. Run the game again. If you move your mouse, the actor rotates too.

20 Make the actor shoot acc=[0,0] bullets=[] Add at the end of section #2 Add at the end of section #3 bullet_image = pygame.image.load( resources/images/ball.png") This step is a bit more complicated because you have to keep track of all the bullets, update them, rotate them, and delete them when they go off-screen. First of all, add the necessary variables to the end of the initialisation section, section #2. The first variable keeps track of the actor s accuracy and the second array tracks all the bullets. The accuracy variable is essentially a list of the number of shots fired and the number of enemies hit. Later, we will be using this information to calculate an accuracy percentage. Next, load the bullet image at the end of section #3.

21 Make the actor shoot Add at the end of section #8 if event.type==pygame.mousebuttondown: position=pygame.mouse.get_pos() acc[1]+=1 bullets.append([math.atan2(position[1]-(actorpos1[1]+32),position[0]- (actorpos1[0]+26)),actorpos1[0]+32,actorpos1[1]+32]) Add at the end of section #6.1 # Draw bullets for bullet in bullets: index=0 velx=math.cos(bullet[0])*10 vely=math.sin(bullet[0])*10 bullet[1]+=velx bullet[2]+=vely if bullet[1]<-64 or bullet[1]>640 or bullet[2]<-64 or bullet[2]>480: bullets.pop(index) index+=1 for projectile in bullets: bullet1 = pygame.transform.rotate(bullet_image, 360-projectile[0]*57.29) screen.blit(bullet1, (projectile[1], projectile[2])) Now when a user clicks the mouse, a bullet needs to fire. Add the following to the end of section #8 as a new event handler. This code checks if the mouse was clicked and if it was, it gets the mouse position and calculates the bullet rotation based on the rotated actor position and the cursor position. This rotation value is stored in the bullets array. Next, you have to actually draw the bullets on screen. Add the following code right after section #6.1. The vely and velx values are calculated using basic trigonometry. 10 is the speed of the bullets. The if statement just checks if the bullet is out of bounds and if it is, it deletes the bullet. The second for statement loops through the bullets and draws them with the correct rotation. Try and run the program. You should have an actor that shoots bullets when you click the mouse.

22 Ask us questions & keep up to date facebook.com/groups/excode2017spring

23 Attendance Please make sure to sign in

24 3 EXCODE Code An App From Scratch

There s already a ton of code written called libraries that we can use by importing. One that we use often is random

There s already a ton of code written called libraries that we can use by importing. One that we use often is random There s already a ton of code written called libraries that we can use by importing. One that we use often is random import random print random.randint(2, 22) Random frequently used methods Name Use random.randint(a,

More information

PYTHON NOTES (drawing.py and drawstuff.py)

PYTHON NOTES (drawing.py and drawstuff.py) PYTHON NOTES (drawing.py and drawstuff.py) INTRODUCTION TO PROGRAMMING USING PYGAME STEP 1: Importing Modules and Initialization All the Pygame functions that are required to implement features like graphics

More information

PyGame Unit ?

PyGame Unit ? PyGame Unit 1 1.1 1.? 1.1 Introduction to PyGame Text Book for Python Module Making Games With Python and PyGame By Al Swiegert Easily found on the Internet: http://inventwithpython.com/pygame/chapters

More information

slide 1 gaius Python Classes you can use theclass keyword to create your own classes here is a tiny example of a class

slide 1 gaius Python Classes you can use theclass keyword to create your own classes here is a tiny example of a class Python Classes slide 1 you can use theclass keyword to create your own classes here is a tiny example of a class Python Classes slide 2 tinyclass.py #!/usr/bin/python import math class vector: def init

More information

EEN118 LAB FOUR. h = v t ½ g t 2

EEN118 LAB FOUR. h = v t ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

Pyganim Documentation

Pyganim Documentation Pyganim Documentation Release 0.9.0 Al Sweigart Oct 30, 2017 Contents 1 Installation 3 1.1 Background Information......................................... 3 1.2 Installation................................................

More information

GETTING STARTED WITH RASPBERRY PI

GETTING STARTED WITH RASPBERRY PI GETTING STARTED WITH RASPBERRY PI Workshop Handout Created by Furtherfield Commissioned by Southend Education Trust GETTING STARTED WITH RASPBERRY PI INTRODUCTION Introduce Raspberry Pi and answer some

More information

EEN118 LAB FOUR. h = v t - ½ g t 2

EEN118 LAB FOUR. h = v t - ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

EEN118 LAB FOUR. h = v t ½ g t 2

EEN118 LAB FOUR. h = v t ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

Introduction to Game Programming Lesson 5 Lecture Notes, Part 1: The draw Module

Introduction to Game Programming Lesson 5 Lecture Notes, Part 1: The draw Module Introduction to Game Programming Lesson 5 Lecture Notes, Part 1: The draw Module Learning Objectives: Following this lecture, the student should be able to: Draw a line with pygame, using all parameters

More information

EEN118 LAB FOUR. h = v t ½ g t 2

EEN118 LAB FOUR. h = v t ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

BobCAD-CAM FAQ #50: How do I use a rotary 4th axis on a mill?

BobCAD-CAM FAQ #50: How do I use a rotary 4th axis on a mill? BobCAD-CAM FAQ #50: How do I use a rotary 4th axis on a mill? Q: I ve read FAQ #46 on how to set up my milling machine. How do I enable 4th axis to actually use it? A: Enabling 4th axis in the machine

More information

Before submitting the file project5.py, check carefully that the header above is correctly completed:

Before submitting the file project5.py, check carefully that the header above is correctly completed: 1 of 10 8/26/2013 12:43 PM Due date: December 6th, 23:59PM Teamwork reflection due date: December 6th, 23:59PM This is a team project. The project is worth 100 points. All the team members will get an

More information

YCL Session 4 Lesson Plan

YCL Session 4 Lesson Plan YCL Session 4 Lesson Plan Summary In this session, students will learn about functions, including the parts that make up a function, how to define and call a function, and how to use variables and expression

More information

[ the academy_of_code] Senior Beginners

[ the academy_of_code] Senior Beginners [ the academy_of_code] Senior Beginners 1 Drawing Circles First step open Processing Open Processing by clicking on the Processing icon (that s the white P on the blue background your teacher will tell

More information

Introduction to Game Programming Lesson 4 Lecture Notes

Introduction to Game Programming Lesson 4 Lecture Notes Introduction to Game Programming Lesson 4 Lecture Notes Learning Objectives: Following this lecture, the student should be able to: Define frame rate List the factors that affect the amount of time a game

More information

Video Games. Writing Games with Pygame

Video Games. Writing Games with Pygame Video Games Writing Games with Pygame Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where otherwise noted, this work is licensed under: http://creativecommons.org/licenses/by-nc-sa/3.0

More information

pygame Lecture #2 (Examples: movingellipse, bouncingball, planets, bouncingballgravity)

pygame Lecture #2 (Examples: movingellipse, bouncingball, planets, bouncingballgravity) pygame Lecture #2 (Examples: movingellipse, bouncingball, planets, bouncingballgravity) MOVEMENT IN PYGAME I. Realizing the screen is getting redrawn many times. Let's take a look at the key portion of

More information

Creative Sewing Machines Workbook based on BERNINA Embroidery Software V8

Creative Sewing Machines Workbook based on BERNINA Embroidery Software V8 V8 Lesson 49 Using an Object for a Carving Stamp Edited for V8.1 update. We will start by using Corel to find and save an image. On your desktop there should be 4 Corel icons. I have grouped mine together

More information

Laboratory 1: Eclipse and Karel the Robot

Laboratory 1: Eclipse and Karel the Robot Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also

More information

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle 5 Transforming Shapes with Geometry In the teahouse one day Nasrudin announced he was selling his house. When the other patrons asked him to describe it, he brought out a brick. It s just a collection

More information

pygame Lecture #5 (Examples: fruitgame)

pygame Lecture #5 (Examples: fruitgame) pygame Lecture #5 (Examples: fruitgame) MOUSE INPUT IN PYGAME I. Detecting Mouse Input in pygame In addition to waiting for a keyboard event to precipitate some action, pygame allows us to wait for a mouse

More information

COMP : Practical 8 ActionScript II: The If statement and Variables

COMP : Practical 8 ActionScript II: The If statement and Variables COMP126-2006: Practical 8 ActionScript II: The If statement and Variables The goal of this practical is to introduce the ActionScript if statement and variables. If statements allow us to write scripts

More information

Decisions, Decisions. Testing, testing C H A P T E R 7

Decisions, Decisions. Testing, testing C H A P T E R 7 C H A P T E R 7 In the first few chapters, we saw some of the basic building blocks of a program. We can now make a program with input, processing, and output. We can even make our input and output a little

More information

CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts

CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts CMPSCI 119 LAB #2 Anime Eyes Professor William T. Verts The goal of this Python programming assignment is to write your own code inside a provided program framework, with some new graphical and mathematical

More information

STEP 1: Download Unity

STEP 1: Download Unity STEP 1: Download Unity In order to download the Unity Editor, you need to create an account. There are three levels of Unity membership. For hobbyists, artists, and educators, The free version is satisfactory.

More information

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this

More information

To use the keyboard emulation, you must activate it in the tray icon menu (see 2.6 Enable keyboard emulation)

To use the keyboard emulation, you must activate it in the tray icon menu (see 2.6 Enable keyboard emulation) LEA USER GUIDE Notice: To use LEA you have to buy the client and download the free server at: https://www.leaextendedinput.com/download.php The Client is available in the App Store for IOS and Android

More information

Digital Microscopes Zoomy 2.0 Digital Microscope What software/devices will I need to use a Zoomy? Connecting Zoomy 2.0

Digital Microscopes Zoomy 2.0 Digital Microscope What software/devices will I need to use a Zoomy? Connecting Zoomy 2.0 Digital Microscopes Zoomy 2.0 Digital Microscope Zoomy 2.0 is a handheld digital microscope that children can use to examine objects. Zoomy plugs into a computer using a built in USB cable. The computer

More information

Multimedia-Programmierung Übung 6

Multimedia-Programmierung Übung 6 Multimedia-Programmierung Übung 6 Ludwig-Maximilians-Universität München Sommersemester 2018 Ludwig-Maximilians-Universität München Multimedia-Programmierung 6-1 Today Sprites, Sprite Groups and Sprite

More information

SPRITES Moving Two At the Same Using Game State

SPRITES Moving Two At the Same Using Game State If you recall our collision detection lesson, you ll likely remember that you couldn t move both sprites at the same time unless you hit a movement key for each at exactly the same time. Why was that?

More information

Week 1 The Blender Interface and Basic Shapes

Week 1 The Blender Interface and Basic Shapes Week 1 The Blender Interface and Basic Shapes Blender Blender is an open-source 3d software that we will use for this class to create our 3d game. Blender is as powerful as 3d Studio Max and Maya and has

More information

An Introduction to Python

An Introduction to Python An Introduction to Python Day 2 Renaud Dessalles dessalles@ucla.edu Python s Data Structures - Lists * Lists can store lots of information. * The data doesn t have to all be the same type! (unlike many

More information

Quick Setup Guide. Date: October 27, Document version: v 1.0.1

Quick Setup Guide. Date: October 27, Document version: v 1.0.1 Quick Setup Guide Date: October 27, 2016 Document version: v 1.0.1 Table of Contents 1. Overview... 3 2. Features... 3 3. ColorTracker library... 3 4. Integration with Unity3D... 3 Creating a simple color

More information

Using the SHARP touchscreen

Using the SHARP touchscreen Click a menu link to jump straight to that section: SHARP touchscreen essentials Accessing & saving files Annotation with SHARP touchscreens Connecting other devices SHARP touchscreens with Adobe Troubleshooting

More information

Understanding the Screen

Understanding the Screen Starting Starting Logo Logo Understanding the Screen Where you will write programs. You can just type methods or commands in here. Ex: t.forward() A Little Logo History What is LOGO? A programming language

More information

Editing Polygons. Adding material/volume: Extrude. Learning objectives

Editing Polygons. Adding material/volume: Extrude. Learning objectives Learning objectives Be able to: use the Extrude tool to add volume to a polygon know what edge loops are and how to insert edge loops in a polygon cut edges in a polygon know multiple methods of sewing

More information

SNOWFLAKES PHOTO BORDER - PHOTOSHOP CS6 / CC

SNOWFLAKES PHOTO BORDER - PHOTOSHOP CS6 / CC Photo Effects: Snowflakes Photo Border (Photoshop CS6 / CC) SNOWFLAKES PHOTO BORDER - PHOTOSHOP CS6 / CC In this Photoshop tutorial, we ll learn how to create a simple and fun snowflakes photo border,

More information

Math Learning Center Boise State 2010, Quadratic Modeling STEM 10

Math Learning Center Boise State 2010, Quadratic Modeling STEM 10 Quadratic Modeling STEM 10 Today we are going to put together an understanding of the two physics equations we have been using. Distance: Height : Recall the variables: o acceleration o gravitation force

More information

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners Getting Started Excerpted from Hello World! Computer Programming for Kids and Other Beginners EARLY ACCESS EDITION Warren D. Sande and Carter Sande MEAP Release: May 2008 Softbound print: November 2008

More information

An introduction to Linux Part 4

An introduction to Linux Part 4 An introduction to Linux Part 4 Open a terminal window (Ctrl-Alt-T) and follow along with these step-by-step instruction to learn some more about how to navigate in the Linux Environment. Open the terminal

More information

Use lists. Use loops. Use conditionals. Define and use functions. Create and use code modules

Use lists. Use loops. Use conditionals. Define and use functions. Create and use code modules Hunt the Wumpus Objectives Use lists Use loops Use conditionals Define and use functions Create and use code modules Assignment Hunt the Wumpus is a game that has been around in computing for over 40 years.

More information

Duplicate and customize an existing kahoot to fit your needs. Launch and host a kahoot game in your class

Duplicate and customize an existing kahoot to fit your needs. Launch and host a kahoot game in your class Course 1 Get started and discover with Kahoot! Welcome to the first course of the Kahoot! Certified program! Before we get started, please be sure not to share these guides further, as they are only for

More information

Introduction to: Computers & Programming: Review prior to 1 st Midterm

Introduction to: Computers & Programming: Review prior to 1 st Midterm Introduction to: Computers & Programming: Review prior to 1 st Midterm Adam Meyers New York University Summary Some Procedural Matters Summary of what you need to Know For the Test and To Go Further in

More information

Part II: Creating Visio Drawings

Part II: Creating Visio Drawings 128 Part II: Creating Visio Drawings Figure 5-3: Use any of five alignment styles where appropriate. Figure 5-4: Vertical alignment places your text at the top, bottom, or middle of a text block. You could

More information

Silverlight Invaders Step 0: general overview The purpose of this tutorial is to create a small game like space invaders. The first thing we will do is set up the canvas of design some user controls (

More information

Navigate to Success: A Guide to Microsoft Word 2016 For History Majors

Navigate to Success: A Guide to Microsoft Word 2016 For History Majors Navigate to Success: A Guide to Microsoft Word 2016 For History Majors Navigate to Success: A Guide to Microsoft Word 2016 for History Majors Navigate to Success: A Guide to Microsoft Word 2016 For History

More information

Step 1: Create A New Photoshop Document

Step 1: Create A New Photoshop Document Snowflakes Photo Border In this Photoshop tutorial, we ll learn how to create a simple snowflakes photo border, which can be a fun finishing touch for photos of family and friends during the holidays,

More information

CS 140 Final Exam Review Problems

CS 140 Final Exam Review Problems This is a cumulative final exam, so please review all of the practice problems as well as your quizzes and exam. There is some material that you haven t been tested on yet (images, strings, and lists),

More information

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed

More information

Chapter 1: Introduction to the Microsoft Excel Spreadsheet

Chapter 1: Introduction to the Microsoft Excel Spreadsheet Chapter 1: Introduction to the Microsoft Excel Spreadsheet Objectives This chapter introduces you to the Microsoft Excel spreadsheet. You should gain an understanding of the following topics: The range

More information

Practice Creator 4.0 Users Guide

Practice Creator 4.0 Users Guide Practice Creator 4.0 Users Guide Copyright 2003-2011 Team Sport Software, LLC Initial Setup Version 4.0 requires the Microsoft.NET framework 3.5, which is part of Windows 7, Vista & XP Operating System..NET

More information

Contents. 1. What is otree? 2. The Shell and Python. 3. Example: simple questionnaire. 4. Example: public goods game. 5. Test bots.

Contents. 1. What is otree? 2. The Shell and Python. 3. Example: simple questionnaire. 4. Example: public goods game. 5. Test bots. Contents 1. What is otree? 2. The Shell and Python 3. Example: simple questionnaire 4. Example: public goods game 5. Test bots David Klinowski 2 What is otree? What is otree? platform to program social

More information

Working with the Dope Sheet Editor to speed up animation and reverse time.

Working with the Dope Sheet Editor to speed up animation and reverse time. Bouncing a Ball Page 1 of 2 Tutorial Bouncing a Ball A bouncing ball is a common first project for new animators. This classic example is an excellent tool for explaining basic animation processes in 3ds

More information

Semester 2, 2018: Lab 1

Semester 2, 2018: Lab 1 Semester 2, 2018: Lab 1 S2 2018 Lab 1 This lab has two parts. Part A is intended to help you familiarise yourself with the computing environment found on the CSIT lab computers which you will be using

More information

Creating a Mask in ENVI

Creating a Mask in ENVI Creating a Mask in ENVI When mapping particles or materials of interest you may only want to see them and find their distribution within a certain area, like a cell or area of interest. This can be accomplished

More information

4) Finish the spline here. To complete the spline, double click the last point or select the spline tool again.

4) Finish the spline here. To complete the spline, double click the last point or select the spline tool again. 1) Select the line tool 3) Move the cursor along the X direction (be careful to stay on the X axis alignment so that the line is perpendicular) and click for the second point of the line. Type 0.5 for

More information

qbal - v1.06 User Manual

qbal - v1.06 User Manual qbal - v1.06 User Manual qbal User Manual Page 1 / 12 1 Introduction Qbal is a ballistic simulator for the practice of shooting. All details about the software can be found on the internet at: http://mankonit.free.fr/qbal/

More information

Pong in Unity a basic Intro

Pong in Unity a basic Intro This tutorial recreates the classic game Pong, for those unfamiliar with the game, shame on you what have you been doing, living under a rock?! Go google it. Go on. For those that now know the game, this

More information

You are going to need to access the video that was taken of your device - it can be accessed here:

You are going to need to access the video that was taken of your device - it can be accessed here: Part 2: Projectile Launcher Analysis Report Submit Assignment Due Dec 17, 2015 by 10:30am Points 100 Submitting a file upload Available after Dec 17, 2015 at 6am Step 2 - Now We Look At The Real World

More information

Lesson 2. Introducing Apps. In this lesson, you ll unlock the true power of your computer by learning to use apps!

Lesson 2. Introducing Apps. In this lesson, you ll unlock the true power of your computer by learning to use apps! Lesson 2 Introducing Apps In this lesson, you ll unlock the true power of your computer by learning to use apps! So What Is an App?...258 Did Someone Say Free?... 259 The Microsoft Solitaire Collection

More information

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Assignment 1: Turtle Graphics Page 1 600.112: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Peter H. Fröhlich phf@cs.jhu.edu Joanne Selinski joanne@cs.jhu.edu Due Date: Wednesdays

More information

COS 116 The Computational Universe Laboratory 10: Computer Graphics

COS 116 The Computational Universe Laboratory 10: Computer Graphics COS 116 The Computational Universe Laboratory 10: Computer Graphics As mentioned in lecture, computer graphics has four major parts: imaging, rendering, modeling, and animation. In this lab you will learn

More information

Getting Started. 1 by Conner Irwin

Getting Started. 1 by Conner Irwin If you are a fan of the.net family of languages C#, Visual Basic, and so forth and you own a copy of AGK, then you ve got a new toy to play with. The AGK Wrapper for.net is an open source project that

More information

In this lesson, you ll learn how to:

In this lesson, you ll learn how to: LESSON 5: ADVANCED DRAWING TECHNIQUES OBJECTIVES In this lesson, you ll learn how to: apply gradient fills modify graphics by smoothing, straightening, and optimizing understand the difference between

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

Use Parametric notation. Interpret the effect that T has on the graph as motion.

Use Parametric notation. Interpret the effect that T has on the graph as motion. Learning Objectives Parametric Functions Lesson 3: Go Speed Racer! Level: Algebra 2 Time required: 90 minutes One of the main ideas of the previous lesson is that the control variable t does not appear

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons

Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons The Inkscape Program Inkscape is a free, but very powerful vector graphics program. Available for all computer formats

More information

Creative Sewing Machines Workbook based on BERNINA Embroidery Software V8.1

Creative Sewing Machines Workbook based on BERNINA Embroidery Software V8.1 : Photosnap Edited for 8.1 This lesson has been rewritten to reflect V8.1 changes from the original 8.0 version. Another auto digitizing feature of BERNINA Embroidery Software V8 is PhotoSnap. PhotoSnap

More information

FrontPage 98 Quick Guide. Copyright 2000 Peter Pappas. edteck press All rights reserved.

FrontPage 98 Quick Guide. Copyright 2000 Peter Pappas. edteck press All rights reserved. Master web design skills with Microsoft FrontPage 98. This step-by-step guide uses over 40 full color close-up screen shots to clearly explain the fast and easy way to design a web site. Use edteck s QuickGuide

More information

Shape and Line Tools. tip: Some drawing techniques are so much easier if you use a pressuresensitive

Shape and Line Tools. tip: Some drawing techniques are so much easier if you use a pressuresensitive 4Drawing with Shape and Line Tools Illustrator provides tools for easily creating lines and shapes. Drawing with shapes (rectangles, ellipses, stars, etc.) can be a surprisingly creative and satisfying

More information

Documentation ENGLISH VERSION

Documentation ENGLISH VERSION xplan 3.8 for Mac Project management with Gantt charts Documentation ENGLISH VERSION PRESENTTION With xplan, creating, tracking and managing your projects will be much easier than ever! xplan is designed

More information

Python Pygame: Mario movement. Python Pygame: Mario movement. Python Pygame: Mario movement. Mario on rails

Python Pygame: Mario movement. Python Pygame: Mario movement. Python Pygame: Mario movement. Mario on rails Python Pygame: Mario movement slide 1 Python Pygame: Mario movement slide 2 r1l l1t Mario requires the movement along ramps up ladders up to next ramp and down to lower ramp, when he reaches the end r2l

More information

OMINO PYTHON for After Effects

OMINO PYTHON for After Effects OMINO PYTHON for After Effects from omino.com, 2010 1 Contents Introduction... 3 Installation & Licensing... 4 Quick Start! Instant Gratification... 5 The Workflow... 6 A Script... 7 A Script That Draws...

More information

Introduction to version Instruction date

Introduction to version Instruction date Introduction to version 1.1.0 Instruction date 16.5.2008 Windows and Files Start by creating the window Open FCS data file By right-clicking the axis the list of available parameters appear. Right-click

More information

Quick Crash Scene Tutorial

Quick Crash Scene Tutorial Quick Crash Scene Tutorial With Crash Zone or Crime Zone, even new users can create a quick crash scene diagram in less than 10 minutes! In this tutorial we ll show how to use Crash Zone s unique features

More information

micro:bit game controller with Scratch

micro:bit game controller with Scratch Raspberry Pi Learning Resources rpf.io/learn 1 micro:bit game controller with Scratch What you will learn By creating a micro:bit game controller with a micro:bit and your Raspberry Pi, you will learn:

More information

I-Carver CNC Project Computer Directions. Rob MacIlreith Last Update Oct 2017

I-Carver CNC Project Computer Directions. Rob MacIlreith Last Update Oct 2017 I-Carver CNC Project Computer Directions Rob MacIlreith Last Update Oct 2017 READ THIS ENTIRE SLIDE FIRST Make sure you follow all the directions carefully. Mistakes in programming your design can be disastrous

More information

Chapter 0. Getting Started. Objectives

Chapter 0. Getting Started. Objectives Chapter 0 Getting Started Objectives Install the Java editor Install the Alice environment Setup the Java editor to work with the Alice environment Explain the purpose of Alice Setup an Alice scene Installing

More information

4) Click on Load Point Cloud to load the.czp file from Scene. Open Intersection_Demo.czp

4) Click on Load Point Cloud to load the.czp file from Scene. Open Intersection_Demo.czp Intersection 3D Demo 1) Open the Crash Zone or Crime Zone diagram program. 2) Click on to open the CZ Point Cloud tool. 3) Click on 3D/Cloud Preferences. a) Set the Cloud File Units (Feet or Meters). b)

More information

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python

More information

Please pick up a new book on the back table.

Please pick up a new book on the back table. Please pick up a new book on the back table. Use the graphing side of your whiteboard or get graph paper from the counter in the black trays plot the following points: 1. ( 3, 5) 2. (4, 0) 3. ( 5, 2) 4.

More information

SlickEdit Gadgets. SlickEdit Gadgets

SlickEdit Gadgets. SlickEdit Gadgets SlickEdit Gadgets As a programmer, one of the best feelings in the world is writing something that makes you want to call your programming buddies over and say, This is cool! Check this out. Sometimes

More information

2. Drag and drop the cloud image onto your desktop to be used later in the tutorial.

2. Drag and drop the cloud image onto your desktop to be used later in the tutorial. Do the following tutorial. You will use the Earth Map image and Photo image below. 1. Copy the Earth Map image and paste it into photoshop. Open photoshop. Go to menu/file/new. Name it lastname-earth.

More information

PyGame Sprites. an excellent turorial exists for PyGame sprites here kai.vm.bytemark.co.uk/ piman/writing/spritetutorial.shtml.

PyGame Sprites. an excellent turorial exists for PyGame sprites here  kai.vm.bytemark.co.uk/ piman/writing/spritetutorial.shtml. PyGame Sprites slide 1 an excellent turorial exists for PyGame sprites here http:// kai.vm.bytemark.co.uk/ piman/writing/spritetutorial.shtml. these notes are derived from this tutorial and the examples

More information

CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts

CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts CMPSCI 119 LAB #2 Greebles / Anime Eyes Professor William T. Verts The goal of this Python programming assignment is to write your own code inside a provided program framework, with some new graphical

More information

Welcome! So you want to learn to code, eh?

Welcome! So you want to learn to code, eh? Code Combat Welcome! So you want to learn to code, eh? Welcome I will be your host to the dark arts of err I mean Programming CodeCombat is a fun, addictive, and effective way of learning real, line based

More information

Chapter Four: Loops II

Chapter Four: Loops II Chapter Four: Loops II Slides by Evan Gallagher & Nikolay Kirov Chapter Goals To understand nested loops To implement programs that read and process data sets To use a computer for simulations Processing

More information

Before submitting the file project4.py, check carefully that the header above is correctly completed:

Before submitting the file project4.py, check carefully that the header above is correctly completed: 1 of 7 8/26/2013 12:43 PM Due date: November 7th, 23:59PM This is a team project. The project is worth 100 points. All the team members will get an equal grade. ONLY the team leader must turn-in the project.

More information

append() function, 66 appending, 65, 97, 296 applications (apps; programs), defined, 2, 296

append() function, 66 appending, 65, 97, 296 applications (apps; programs), defined, 2, 296 Index Note: Page numbers followed by f, n, or t indicate figures, notes, and tables, respectively. Symbols += (addition and assignment operator), 100, 187 + (addition operator), \ (backslash), 240 / (division

More information

ADOBE ILLUSTRATOR CS3

ADOBE ILLUSTRATOR CS3 ADOBE ILLUSTRATOR CS3 Chapter 2 Creating Text and Gradients Chapter 2 1 Creating type Create and Format Text Create text anywhere Select the Type Tool Click the artboard and start typing or click and drag

More information

EE 355 Lab 3 - Algorithms & Control Structures

EE 355 Lab 3 - Algorithms & Control Structures 1 Introduction In this lab you will gain experience writing C/C++ programs that utilize loops and conditional structures. This assignment should be performed INDIVIDUALLY. This is a peer evaluated lab

More information

A QUICK TOUR OF ADOBE ILLUSTRATOR CC (2018 RELEASE)

A QUICK TOUR OF ADOBE ILLUSTRATOR CC (2018 RELEASE) A QUICK TOUR OF ADOBE ILLUSTRATOR CC (2018 RELEASE) Lesson overview In this interactive demonstration of Adobe Illustrator CC (2018 release), you ll get an overview of the main features of the application.

More information

Multimedia-Programmierung Übung 5

Multimedia-Programmierung Übung 5 Multimedia-Programmierung Übung 5 Ludwig-Maximilians-Universität München Sommersemester 2009 Ludwig-Maximilians-Universität München Multimedia-Programmierung 5-1 Today Sprite animations in Advanced collision

More information

Authoring World Wide Web Pages with Dreamweaver

Authoring World Wide Web Pages with Dreamweaver Authoring World Wide Web Pages with Dreamweaver Overview: Now that you have read a little bit about HTML in the textbook, we turn our attention to creating basic web pages using HTML and a WYSIWYG Web

More information

SWITCHING FROM GRASSHOPPER TO VECTORWORKS

SWITCHING FROM GRASSHOPPER TO VECTORWORKS SWITCHING FROM GRASSHOPPER TO VECTORWORKS HOW TO PLACE A MARIONETTE NODE To use the Marionette tool in Vectorworks, you don t need to load a plug-in or work in a separate interface. The Marionette tool

More information

Week 5 Creating a Calendar. About Tables. Making a Calendar From a Table Template. Week 5 Word 2010

Week 5 Creating a Calendar. About Tables. Making a Calendar From a Table Template. Week 5 Word 2010 Week 5 Creating a Calendar About Tables Tables are a good way to organize information. They can consist of only a few cells, or many cells that cover several pages. You can arrange boxes or cells vertically

More information

6.3 Converting Between Systems

6.3 Converting Between Systems www.ck1.org Chapter 6. The Polar System 6. Converting Between Systems Learning Objectives Convert rectangular coordinates to polar coordinates. Convert equations given in rectangular form to equations

More information

Introduction to Computer Science Using Python and Pygame

Introduction to Computer Science Using Python and Pygame Introduction to Computer Science Using Python and Pygame Paul Vincent Craven Computer Science Department, Simpson College Indianola, Iowa http://cs.simpson.edu c Draft date May 15, 2011 2 Contents Contents

More information