A look ahead: At the end of your project, you’ll be given an opportunity to make a standalone (.exe) version of your project. For this to work, you’ll.

Slides:



Advertisements
Similar presentations
Games in Python – the easy way
Advertisements

CHAPTER 3 (P.49-53) Importing modules + pygame intro.
Creating Games For Windows, Xbox 360, and Windows Phone 7 Ryan Plemons
GUI Programming Alex Feldmeier.
Teaching with Greenfoot
How to prepare a PowerPoint presentation
Announcements At the end of your project, you’ll be given an opportunity to make a standalone (.exe) version of your project. For this to work, you’ll.
CS320n –Visual Programming Interactive Programs Mike Scott (Slides 5-1)
3.2 Presentation Software End Show Creating slide shows including audio,video and digital images End Show.
2 What is pyGame? A set of Python modules to make it easier to write games. –home page: –documentation:
Guide to Programming with Python
Working with Layouts and Graphics. 1. The layout of a slide can be changed at any time during the creation of the presentation. 2. Various types of slide.
Microsoft PowerPoint 2010 Lesson 6: Working with Layouts and Graphics.
Using PowerPoint: a beginner’s tutorial Betsey Davis MathScience Innovation Center 2005.
Input Devices. What is Input?  Everything we tell the computer is Input.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
CS 425 Game Programming I Jan M. Allbeck. Outline  Introductions  Expectations  Tools and setup  Quick introduction to C++ and Visual Studio  What.
Meet Pygame Noah Kantrowitz June 8, The Basics Cross-platform Based on SDL (don’t quote me on that) Handle input (keyboard, mouse) and output (graphics,
XNA An Introduction. What XNA is… Microsoft® XNA™ is composed of industry- leading software, services, resources, and communities focused on enabling.
CSCE 121: Introduction to Program Design and Concepts, Honors Dr. J. Michael Moore Spring 2015 Set 15: GUIs 1.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Reference: The Game Loop Animation / Game loop 1. Update variables 2. [Get input from the user] (GameLoop only) 3. Draw (using variables)
Macromedia Flash 8 Revealed WORKING WITH SYMBOLS AND INTERACTIVITY.
CHAPTER 3 (P.49-53) Importing modules + pygame intro.
Accessibility Features in. What is on the screen Contents of active windows Menu items Text that you have typed Narrator Screen reader program that reads:
What is PowerPoint? By Kettina L. Robinson. Unit Questions What do I want to accomplish? What do I want to accomplish? What content do I need to cover?
Software 3 See Edmodo for images Group name: topcat Group code: i4qf9a 11/03/11.
1.Begin by opening VB 2.Click New Project or the icon Hello World Tutorial NOTE: depending on your version of VB – the images might be slightly different.
1 EiffelMedia. 2 Overview Features of the library Documentation Demos Community Stats Roadmap.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 22 Game Graphics.
>>0 >>1 >> 2 >> 3 >> 4 >>
Intro to Pygame Lecture 05. What is Pygame? It is a set of Python modules designed for writing games. It makes writing games possible for beginners. import.
Reference: What is it? A multimedia python library – Window Management – Graphics geometric shapes bitmaps (sprites) – Input Mouse Keyboard.
Input Devices.
Building a rocks and spaceship game with Pygame Zero
Chp 4: Input and Output Devices
MOM! Phineas and Ferb are … Aims:
Catapult 2016.
Part II Reference:
PYGAME.
Let’s Learn 2. Installing Pygame
8. Installing Pygame
Keyboard Input.
Intro to Dreamweaver Web Design Section 8-1
Game Loops + Part II Reference:
International Computer Driving Licence Syllabus version 5.0
Chapter 2 – Introduction to the Visual Studio .NET IDE
Technologies Overview Media files, such as the sounds, are placed in the app’s resource folder res/raw. When an Activity is shut down, its Fragment.
Instructor Name Instructor Title Library Name
Catapult 2014 Session 10.
The Basics of Microsoft Word 2007 Excel
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/10.
Importing modules + pygame intro
< Corel WordPerfect 8 ~ A Study Guide
A Power Point Presentation
VISUAL BASIC FINAL PROGRAMMING PROJECT
8. Starting Pygame Let's Learn Python and Pygame
WICS - Flappy Anteater Python Tutorial
Cascading Style Sheets
Extend Text Editor to Draw shapes
Lesson 6: Working with Layout and Graphics
Game Loop Update & Draw.
Working with Symbols and Interactivity
SPREADSHEET BEGINNERS LEARNING OUTCOME 1
The Basics of Microsoft Word 2007 Excel
Microsoft Office Ribbon
Click Slide Show Tab Click From Beginning Complete Slide Show
The Basics of Microsoft Word 2007 Excel
CoE Software Lab II 1. Pygame Intro , Semester 2,
Presentation transcript:

A look ahead: At the end of your project, you’ll be given an opportunity to make a standalone (.exe) version of your project. For this to work, you’ll need to do the following: Any images should be in .bmp format (downside: they can’t be transparent) All pygame fonts that you use should be SysFonts (created using pygame.font.sysFont)

Pygame Pygame is a library designed for programming games using 2D graphics. Compared to zellegraphics, it has: much better mouse and keyboard input much faster drawing commands better image support collision-detection Sound For documentation, see pygame.org/docs (bright green box at the top of window)

Pygame Documentation http://www.pygame.org/docs

Moving objects on screen is much different With zellegraphics, you could do things like circle.move(dx, dy) In pygame, you repeatedly: Change the coordinates of your object Blank out the screen Redraw your item(s) in the new location cause them to display This is done in the event loop (next slide)

Event loop In an infinite loop, get input from the user, using it to change the state of your object (like the location) other code that affects objects (like collisions) blank out the screen redraw your item(s) in the new location cause everything to display

Demos PygameTest – an Intro. shows also: Classes as separate files Inclusion of graphics Smileys – A game for you to extend. We’ll write on the board some good things to try.