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

Report as inappropriate.

RcCookie
RcCookie presents ...

2020/10/21

Game Toolkit/ Template

This is my 'GameWorld' class. It functions as a base class for any game and simplifies the actual code A LOT.

DOCUMENTATION INCLUDED!
Look into the scenario folder.

Features:
- A simple structure that divides into the actual game and other stuff like a countdown before the game starts, a pause menu or a result after the game ended
- Methods that get automatically called when the game starts, pauses, resumes and ends
- A build-in score system that AUTOMATICALLY saves the highscore of each player and displays it
- Simple automatic checking if a player is still 'alive'
- Prepared to be linked to other worlds for example to use menus
- Better input system
- A build-in pause menu
- A build-in endscreen
- A build-in highscore display
- Animations when changing worlds
- Fully customizable color theme

All this can be freely enabled or disabled to customize your game.
Due to the simplification the actual coding of the game becomes really easy and you can really concentrate onto the game mechanics.

This example is using only GameWorld. Code for the game are exactly 18 (!) lines. The rest is done automatically.

To look at the code, simply press a 'Quit' button.

To use this in your scenario, do the following:
- Download the scenario
- Open the gfar: this will create a folder like a normal scenario wherever the gfar was
- Open that folder and copy the 'rccookie' folder
- Paste the folder in your scenario folder

2167 views / 1593 in the last 7 days

2 votes | 1 in the last 7 days

Tags: mouse game demo with-source tool reuse

This scenario is a member of: Reusable classes


open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on 2020-10-21 10:53:34 UTC Bug Fixing
A new version of this scenario was uploaded on 2020-10-21 11:02:01 UTC Bug Fixing
A new version of this scenario was uploaded on 2020-10-21 11:04:06 UTC Bug fixing
A new version of this scenario was uploaded on 2020-10-21 11:10:44 UTC Bug Fixing
A new version of this scenario was uploaded on 2020-10-21 11:11:41 UTC Bug Fixing
A new version of this scenario was uploaded on 2020-10-21 11:14:50 UTC Fixed bugs
A new version of this scenario was uploaded on 2020-10-21 11:16:30 UTC Fixed ui
A new version of this scenario was uploaded on 2020-10-21 11:39:42 UTC Added Thumbnail
A new version of this scenario was uploaded on 2020-10-21 11:40:30 UTC Updated thumbnail
A new version of this scenario was uploaded on 2020-10-21 11:43:04 UTC Fixed bug

See all comments

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

Who likes this?

AbdulrazaqAS Game/maniac