DOC PREVIEW
TRINITY CSCI 1311 - Interesting Applets
Pages 9

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

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

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9More Interesting Applets11/23/2009Opening Discussion●Do you have any questions about the quiz?●Minute essay responses–Eclipse/applets – 11–Greenfoot – 4–VBScript – 1–Software industry – 1–Specific ideas●Networked notepad●Personal finance/investment software●Applet gamesMaking an Applet Game●We'll run with the idea of trying to make something game like in an applet.●To do this, I want us to write something that gives us functionality similar to Greenfoot?●Let's talk about this and think about what would have to go into something like this. What different elements do we need?Making Actors●Greenfoot really gave us two main elements we could work with: World and Actor.●Our applet will function as the World for now to keep things simple.●We need to create something that can function like the Actor type in Greenfoot.●What should go into this? We want to keep it simple so what are the pieces of information we really need to have?Images●We might want to have the ability to have images instead of just colored polygons.●For this we will use the java.awt.BufferedImage class. It is a subclass of java.awt.Image.●We can get the Graphics object of an image to draw things to them.Reading Images●The Applet class has a getImage method that we can use, but it has some complications.●The alternative is to use the javax.ImageIO class.●In both cases, if we are using an applet we specify the image we want to read with a URL.Making it Run●We can make our game run by putting in a timing and putting some logic into the actionPerformed method.●This is basically the same as what we did for animations only now we are telling some actors to act.Getting Input●We will get input the same way we did before with applets by making our class be a listener.●All of the input will come into the applet class. We have to decide if and how we want to get that information into any actors.Minute Essay●What questions do you have about what we did


View Full Document

TRINITY CSCI 1311 - Interesting Applets

Course: Csci 1311-
Pages: 9
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 Interesting Applets
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 Interesting Applets 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 Interesting Applets 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?