Skip to content

Instantly share code, notes, and snippets.

@jteneycke
Created April 1, 2013 14:35
Show Gist options
  • Save jteneycke/5285273 to your computer and use it in GitHub Desktop.
Save jteneycke/5285273 to your computer and use it in GitHub Desktop.
<script src="processing-1.4.1.js"></script>
<canvas data-processing-sources="codebase.pde hello-web.pde"></canvas>
@jteneycke
Copy link
Author

game_project
|--index.html
|--processing-1.4.1.js
|--codebase.pde
|--hello-web.pde

@jteneycke
Copy link
Author

final int screenWidth = 200;
final int screenHeight = 200;

void initialize() {
    addScreen("mylevel", new MyLevel(screenWidth, screenHeight));
}

class MyLevel extends Level {
    MyLevel(float levelWidth, float levelHeight) {
        super(levelWidth, levelHeight);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment