HANICA / oopg

OOPD Processing GameEngine
http://hanica.github.io/oopg/
0 stars 8 forks source link

Update Processing to version 3 #27

Open idiidk opened 3 years ago

idiidk commented 3 years ago

This commit updates the game engine to support Processing 3. It has no breaking API changes for the game engine so it can be a drop in replacement. Tested waterworld project and ran test suite. All tests passed and waterworld looked great :D

The only plugin incompatible with Processing 3 was GifAnimation. This plugin wasn't available on any repo so it's temporarily hosted on my Maven repository (https://raw.github.com/idiidk/processing-maven-repo/master/). This repo is a fork of https://raw.github.com/ddoa/processing-maven-repo/master/ that just adds GifAnimation v3.

You can clearly see that Processing 3 is a lot faster from the waterworld demo. The stutters are gone and movement is way smoother. I don't see any reason not to update :)

Mede mogelijk gemaakt door frustraties tijdens het OOPD eindproject ;) @bartvanderwal

idiidk commented 3 years ago

Enige breaking change is dat size niet meer aangeroepen mag worden in setup, dit moet in settings.

@Override
public void settings() {
  super.settings();
  size(worldWidth, worldHeight);
}