DOC PREVIEW
CU-Boulder CSCI 6448 - Pygame Framework

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Pygame Framework●Object-Oriented Analsis and Design●(CSCI 4448/6448)●Ryan Stout●Jon Meador●Marcus Seeland●Peter RobinsonIntroduction●Pygame is a framework which allows for easy manipulation of common game elements like:●Backgrounds●Sprites●Actions and Movements●Sounds and Music●Event HandlingMain Services●Display●Surface●Sprite●Group●Rect●Mixer●PygameDisplay●Display is what you see and the actual call to show the image on the screen●Init●Initializes the display variables●Flip●Replaces the current screen by the off screen bufferSurface●Surface is one of the primary services that you interact with when using pygame. Surface is used to represent an image or combination of images on the screen.Sprite●Sprite is also used often in game development to represent the actors●It is a base class to represent game objects●It comes with a great set of built in methods which take care of common interactions with the game environmentGroup●Group is a container class for sprites.●It is very helpful for manipulating large sets of sprites●It will define more specific behaviors for groups of sprites.Mixer●Mixer is the way the programmer implements sound effects and music within the game.●It has all the methods used to control the sounds in the game.Rect●Rect is the lower level representation of objects like sprites.●It defines and controls specific areas on the screensPygame●Pygame basically is only used for the Init() method which initializes all of the imported pygame modules. ●It is also capable of handling errors.Main Concepts●Pygame is the top-level package which is broken up by several submodules which perform the various services.●Rect and Surface are examples of classes which create these submodules.Main Concepts (Cont)●There are several classes like Display and Image and Font which create submodules of the lower-level submodules like Rect and SurfaceMain Concepts (Cont)●This is how the Invader Game demo is constructed using the Pygame frameworkDemos●Here are some of the games we created using PyGame!Any


View Full Document

CU-Boulder CSCI 6448 - Pygame Framework

Documents in this Course
Struts

Struts

12 pages

Adapter

Adapter

23 pages

Prototype

Prototype

16 pages

Weka

Weka

15 pages

qooxdoo

qooxdoo

16 pages

Django

Django

12 pages

Overview

Overview

22 pages

XNA

XNA

5 pages

Load more
Download Pygame Framework
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Pygame Framework and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Pygame Framework 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?