This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2017/5/15

Combo Support Demo

This demo contains the following support classes:

Scroller
Animation
Level (modified)
TextImage
QActor
GQActor
BgInk
LevelControl
ScoreControl

The last two are new ones that allow the value in each class to be usable across multiple worlds without having to pass anything around.

Of all my different scroller classes, the one used here is the one recommeended to be used in any scrolling world. Be aware that a single modification was made to allow it the Scroller class to work with QActor objects (see class documentation).

2438 views / 10 in the last 7 days

Tags: demo with-source animation gravity scroller levels danpost support textimage

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
Super_HippoSuper_Hippo

2017/5/15

It gives me a NullPointer Exception when trying to open it here on the site. (Because of the new API, the downloaded version is not working without changing a lot of things which I didn't try right now.) ---- java.lang.NullPointerException at TextImage.<init>(TextImage.java:153) at Level.drawCircText(Level.java:127) at Level.<init>(Level.java:49) ----
danpostdanpost

2017/5/15

@Hippo, you can probably comment out most of the title page text operations and remove anything dealing with 'drawCircText'. Then it would just be a matter of the two control classes -- changing the TexttImage constructors to GreenfootImage constructors.
danpostdanpost

2017/5/15

@Hippo -- yeah, and remove the Textimage class.
A new version of this scenario was uploaded on 2017-05-15 15:59:09 UTC

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.