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

Report as inappropriate.

MrCohen
MrCohen presents ...

2020/2/12

Preview - GreenTreeChronicles

This is a performance test of my code in it's current state. This is a Tile-and-objects engine I wrote to allow the creation of massive 2D game worlds. It's a long term project. For now, it's just a test/preview. I am trying to keep everything I do Greenfoot Gallery compatible, so I test each iteration on here.

Click to move the player. You can pick up, and then put on items. The skeletons are presently paused. There is not much to do except walk around. There are borders which demonstrate the tile collision system, which is similar to what I use in Collider within my AnimatedCharacter class (click my scenarios to find it if you're interested in seeing some of my graphics import and manipulation code).

On my local computer, the game runs at 60 fps (reports 61) consistently. On here, it has little dips, but still runs pretty smooth. I hope to release this one day as a project for my students to learn from, and optionally add content of their own.

979 views / 27 in the last 7 days

3 votes | 0 in the last 7 days

Tags: None

This scenario is a member of: instant play


Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on 2020-12-25 18:23:38 UTC Testing some internal changes for Gallery effect.
A new version of this scenario was uploaded on 2020-12-25 18:27:32 UTC
A new version of this scenario was uploaded on 2020-12-25 18:30:58 UTC
A new version of this scenario was uploaded on 2020-12-25 18:37:51 UTC
A new version of this scenario was uploaded on 2020-12-25 18:45:29 UTC
MrCohenMrCohen

2020/12/25

I do plan to share this! I can offer no timeline, but ultimately I try to share everything I create, for the benefit of my students, and educators and students everywhere :)
SwaggyXiaoSwaggyXiao

2020/12/25

❤️ Mr. Cohen is the best
MrBradleyMrBradley

2020/12/26

I've designed game-based projects for my classes. When I looked into game design there was so much: Threading, fps, collisions, etc. So in order to scaffold it I turned to GF. Are you using timers for managing fps, or in the act-cycle loop?
A new version of this scenario was uploaded on 2021-01-21 03:17:17 UTC Huuuuuuge efficiency gains ... I think.
MrCohenMrCohen

3 days ago

Hi Mr Bradley. This uses System time / delta time. Presently working on a slick workaround for the lack of a z variable. Greenfoot can be pretty deep it you want it to be.

See all comments

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

Who likes this?

SwaggyXiao xiestar0310 Gbasire