So I’m sitting in a React intro workshop and three hours in, we’ve only built a comments submission form. Client-only. And the instructor is a sharp guy. Now we have 40 minutes left to build a single-player game.
Anyway, in the same vein as the discussion around Most impressive features of Meteor to show in demos, what would be a neat multiplayer game that can be built with Meteor in under an hour (minus the CSS, that can be handwaved)?
We know how the content of the demo helps a lot to show off the technology, so a catchy, addictive game would be best!
I don’t have an idea for a game, but to wow people, maybe http://phaser.io/ packaged for meteor by Robert Lowe, could help?
meteor add robertlowe:meteor-phaser
some example code: (I’m still working on it…)
Template.game.rendered = function() {
// put all the phaserjs stuff in here for the game
// this example comes from:
// http://www.photonstorm.com/phaser/tutorial-making-your-first-phaser-game
// opengameart.org
var deltaX = 0;
var deltaY = 0;
var platforms;
var mines;
var player;
var game = new Phaser.Game(
800,
600,
Phaser.AUTO,
'',
{
preload: preload,
create: create,
update: update
}
);
function preload() {
//game.load.image('sky', 'images/sky.png');
game.load.image('ground', 'images/platform.png');
// game.load.image('star', 'images/star.png');
// game.load.spritesheet('dude', 'images/dude.png', 32, 48);
game.load.image('mine','images/mine.png');
// see: http://opengameart.org/content/spaceship-3
// need more frames in sprite though - but this worked.
// so - get total image size width x height.
// OSS.bmp is 288 wide x 64 pixels high, and has 7 images
// over two rows - so... 64 pixels high means each image
// is 32 pixels high. It is 288 pixels wide, and there
// are 4 images across, so each is 72 pixels wide (288 / 4)
game.load.spritesheet('player','images/OSS.bmp',72,32);
}
Hey, @dandv, perhaps some arcanoid-like game would be easy to build and simple to play?
Add some real-time multiplayer, for ex. few people could be controlling the pad reflecting few balls (don’t know how to call it) and others could be massively patching the broken bricks (i.e. it requires 10 people to click a broken brick space for a brick to reappear).
It’s like a crashers vs. masons team arcanoid game.
For meteor launch, I created a workshop, in 30 mn, people create a “minecraft” like virtual world.
It’s based on an amazing old SF devshop talk.
(it’s in french but look at the code, you’ll understand)
It’s really cool because, people read and copy/paste so they create something very quickly. In the end, they connect their client on the central server so every client see the same world (and not the local server) and can interact with.
But the very very cool part is that they can continue to tweak the example.
For example, one team added an amazing feature. they took picture with the camera and then generates blocks of the color of the picture (take a look at the first screenshot on the url above). Another one added a function to generate spheres, random color and so on. It’s very playful.
This is awesome! I originally did that talk last January, glad it’s still floating around! All of the extra features are really cool - is there a repo somewhere with a finished version to play around with?