Internally the new class represents fonts by an instance of class and an int value for the font size. Fonts are represented differently in Android and in JavaSE-AWT. The methods getColor and getRGB return that value.Ģ.7 Class Class is a substitute of class. In Android color information are stored in an int value (see class ). The class defines nearly the same methods as class. So method getClickCount will always return 1.Ģ.6 Class Class is a substitute of class. However, Droidfoot does not support double clicks. The return type of method getAwtImage is .Ģ.5 MouseInfo All methods of class MouseInfo are supported by Droidfoot. The rotation of actors is currently not incorporated in the implementation of the collision detection methods.Ģ.4 GreenfootImage The following methods of class GreenfootImage are not supported by Droidfoot: drawShape fillShape The methods with class or class in their signature are adapted to class and. Defining your own world class please note that you have to implement a constructor without parameters and that you have to call one of the setBackground methods in each constructor.Ģ.3 Actor Defining an actor class please note that you have to call one of the setImage methods in each constructor. In exchange for that package a package greenfoot.awt has been defined, which implements substitute classes Color and Font.Ģ.1 Greenfoot The following methods of class Greenfoot are not supported by Droidfoot: getMicLevel getKey isKeyDown mouseMoved mouseClicked The method mousePressed returns true due to a touch event.Ģ.2 World The methods with class in their signature are adapted to class. The JavaSE package jawa.awt is not accessible in Android. However, the method aySound can be used for playing sound files. Finally, Chapter 5 presents the basic procedure to implement already finished Greenfoot scenarios as Android apps.Ģ Greenfoot class library for Android The Greenfoot class library consists of the following classes: Actor Greenfoot GreenfootImage GreenfootSound MouseInfo UserInfo World The classes GreenfootSound und UserInfo are currently not supported by Droidfoot. Want to implement your own Greenfoot scenarios as Android apps. Chapter 4 is devoted to the installation of Droidfoot if you Chapter 3 introduces the basic structure and handling of the Android Greenfoot player. In this document the changes of the Android Greenfoot class library in contrast to the original Greenfoot class library are described in Section 2. Currently Android 4.0 and up is supported. Droidfoot consists of the Greenfoot class library that has been ported to Android, as well as a player with which the scenarios can be run on the Android device. Droidfoot () is a project that makes it possible to run Greenfoot scenarios as Android apps on Android devices. Programs developed with Greenfoot (called scenarios) can be run as JavaSE applications on the PC as well as in web browsers in form of java applets. It allows for the easy development of two-dimensional graphical applications such as simulations and games. Dietrich Boles University of Oldenburg (Germany)ĭroidfoot – Porting Greenfoot-Scenarios to Android Devices Version 1.0ġ Introduction Greenfoot (is an interactive Java development environment that has been developed primarily for educational purposes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |