DOC PREVIEW
TRINITY CSCI 1311 - Lecture Notes
Pages 8

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 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 8 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 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Drawing3-8-2010Opening Discussion●Minute essays–Remembering Greenfoot methods.–Why did we have to cast the getWorld() call to a ConnectFourBoard?–Greenfoot in Greenfoot.getMouseInfo().Objective●We had gotten pretty close to having our city scenario be a game. In order to really make it work we need some more control over what is drawn.–Limit quantity alligator can eat in a time period and make it visible when it can eat again.–Display some text showing how many people have been eaten.–Consider the ability to destroy houses.Image and Drawing●Many of these things we can do with what we already know. Changing the image we haven't learned how to do yet though.●For this we need the GreenfootImage class. Let's go look at it in the API.–Three constructors–Draw methods–Get methods–Set methodsSwapping Images●We haven't worried too much about efficiency in most of the things we have done, but we will here.●Loading a redrawing images is inefficient. I want us to create two images for the alligator when it is created, and then swap between those.Text and Fonts●To signify how many people have been eaten I want to use an actor and write text to the image for that actor, then add that actor to the world.Other Additions●Most of the other things I want us to add simply require adding memories to the actors or the world and then putting proper logic into the act methods.Minute Essay●Do you have any questions about what we did today?●You should get me your design for the first project on


View Full Document

TRINITY CSCI 1311 - Lecture Notes

Course: Csci 1311-
Pages: 8
Documents in this Course
Arrays

Arrays

12 pages

Arrays

Arrays

10 pages

Applets

Applets

5 pages

Arrays

Arrays

8 pages

Methods

Methods

12 pages

Drawing

Drawing

8 pages

Load more
Download Lecture Notes
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 Lecture Notes 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 Lecture Notes 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?