Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zedseven/green
A gaming library that enables easy 2D game creation within Processing.
https://github.com/zedseven/green
education game-development game-library greenfoot jar java learning library pde processing processing-language processing-library
Last synced: 3 months ago
JSON representation
A gaming library that enables easy 2D game creation within Processing.
- Host: GitHub
- URL: https://github.com/zedseven/green
- Owner: zedseven
- License: mit
- Created: 2018-10-19T19:38:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-19T21:16:09.000Z (over 2 years ago)
- Last Synced: 2024-04-17T23:58:23.789Z (10 months ago)
- Topics: education, game-development, game-library, greenfoot, jar, java, learning, library, pde, processing, processing-language, processing-library
- Language: Java
- Homepage: https://ztdp.ca/projects/school/Green/
- Size: 3.03 MB
- Stars: 12
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Green](https://zedseven.github.io/Green/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![# Issues](https://img.shields.io/github/issues/zedseven/Green.svg?logo=github)](https://github.com/zedseven/Green/issues)This is a relatively simple library designed to emulate most of the features of [Greenfoot](https://www.greenfoot.org/)
in [Processing](https://processing.org/).
This was originally made for a school project and aims to enable easy 2D game creation within Processing.If you're using this in a class or as a teaching tool, I'd love to hear about it!
## Installation
1. `Sketch > Import Library... > Add Library...`
2. Search for `Green`
3. Select the library and click `Install`### Manual Installation
These steps are only in case the above steps don't work. You should try them first.1. Go to the [latest GitHub release](https://github.com/zedseven/Green/releases/latest)
2. Download the `.zip` file
3. Unzip it to wherever you want to keep the library
4. Open `Green-.zip/library/` and put `Green.jar` in your Processing libraries folder
5. Processing's `libraries` folder is located in `/libraries`
- Its sketchbook location can be found in the editor under `File > Preferences...`Once installed:
1. Add it to a project with `Sketch > Import Library...`
2. Select it from the popup list## Reference
To see the Javadoc reference, please visit https://zedseven.github.io/Green/.## The Basic Idea
The library works with two concepts: worlds and actors.The `World` class is where all the interaction and gameplay takes place - it's where all the `Actors` live, and for most
games one `World` is enough.The `Actor` class is where all the per-item code goes: you might have a player `Actor`, one for an item the player can
pick up, and maybe a few for obstacles.