Live data from Hacker News

2D gaming using Processing.js

processingjs.nihongoresources.com

11–20 of 22 posts

Re: 2D gaming using Processing.js

#13
post #8

Really good tutorial. I'm saving it before Nintendo takes it down. It would be nice a version of this tutorial using friendly licensed game assets.

Yah, I'd flip out the art assets with whatever you can find with an open license to avoid copyright issues. (for example: http://opengameart.org/ )

"Let's make a Mario clone" would bring in the same audience.

Re: 2D gaming using Processing.js

#15
post #8

Really good tutorial. I'm saving it before Nintendo takes it down. It would be nice a version of this tutorial using friendly licensed game assets.

Nintendo generally doesn't care in the slightest if their assets are used for things like this. In the US and many other jurisdictions Nintendo might care about this is simply fair use. It's an educational resource without even a pretense of monetization, and has been up for years. I don't expect to ever receive a C&D for it.

Re: 2D gaming using Processing.js

#17
post #3

This is very nice. I started teaching my daughter some programming and although I have mixed feelings about JS this is the kind of tutorial that's at the right level and everyone loves Mario.

This isn't actually JS, it's Processing, so the idea is that this will work in the browser by virtue of a library that will run Processing source code in the browser. If you want to do the programming offline, just hit up processing.org, download the IDE, download the codebase.pde file on the same dir as the tutorial's page, and off you go.

Re: 2D gaming using Processing.js

#18
post #10
post #2

object oriented JS, gross

It's Java...

well, close to. Processing is based on Java, but has a simplified syntax, different visibility model, and different scoping rules. Primarily due to how pde source code gets aggregated into a single class which can be compiled to run in the JVM, but because it's not actually Java any non-JVM implementation of a Procesing runner can pretty much ignore Java entirely and simply implement the much simpler Processing interpretation.

Re: 2D gaming using Processing.js

#19
post #14

Where do these things come from? LevelLayer, Player, etc... They're not in Processing.js reference.

there's a codebase this builds on, simply called codebase.pde, in the same dir as the tutorial.

Got it. Thanks.

It says:

    For our game, we're going to use a library for writing 2D sprite-based games, using Processing.js.
So I got confused.

Re: 2D gaming using Processing.js

#20
post #3

This is very nice. I started teaching my daughter some programming and although I have mixed feelings about JS this is the kind of tutorial that's at the right level and everyone loves Mario.

This isn't actually JS, it's Processing, so the idea is that this will work in the browser by virtue of a library that will run Processing source code in the browser. If you want to do the programming offline, just hit up processing.org, download the IDE, download the codebase.pde file on the same dir as the tutorial's page, and off you go.

Ah, thanks for the clarification. I didn't look at the source closely enough but now that I look at it again it's becoming clear.
Post reply on HN