Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyWorld extends World {
- public function new(..) {
- super(..);
- }
- public override function update() {
- super.update(...);
- extra logic
- }
- }
- or:
- function createMyWorld():World {
- var world = new World(...);
- world.onUpdate = function() {
- extra logic
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment