I've been waiting on the OpenShift team to crack the WebSocket nut for a while and they finally got it back in December. To try it out, I tried to set up the Moksha Demo Dashboard on two different gears.
It wasn't too tricky. I created two OpenShift "DIY"-type apps, one for the WSGI app and another for the WebSocket server (the moksha-hub). All the work in those two repos is done in the .openshift/action_hooks directories (the code is actually just installed from PyPI). Additionally, the diy/development.ini files hold all the configuration.
This last quarter at RIT I taught (for the first time) a course on open source, web-based, game programming. The quarter just came to an end and I really want to brag on my students. But before I do that, here's a glimmer of what we covered:
- How to use bash and vim
- How to use git and github
- How to submit patches to projects you know nothing about
- What makes a good, casual game
- How to make games with HTML5
- Serverside programming with Turbogears2
- How to get your code running on Red Hat's Openshift cloud.
- How to give a lightning talk(!)
Really cool stuff was built into the class; it was about making open source software, so we open sourced the syllabus! Really cool stuff happened along the way; we hit ugly problems with openshift, so we patched the quickstarter script!
You can endure my self-indulgent drivel yes, but you get the best picture from reading the students' blog posts themselves. Enough of this! Les projets de cours!
#1 - Lazorz teamed up with the Boston Museum of Science to make "[An] educational game about the physics of light. In it's current incarnation it helps demonstrate the concepts of reflection and color filtering. The development team has plans to include other concepts such as refraction and prisms in future releases."
#2 - Gold Rush is visually and game-ly amazing. If I had to pick which of the three project was going to make one million dollars, it'd be this one.
The front-end is built in Unity (closed source, but compiles to a ton of platforms) and the back-end JSON store is built in TurboGears2. These guys completely flew through development, mastering skills they'd never heard of in a day. Its 3D with a moving camera and an incredibly fun game. The original game idea belongs to team member Eric Heaney. It's fun to play as a normal old card game (I've played it at a number of parties since he pitched it to the class).
- Forked pybotwar, ripped it's UI off and made it export JSON.
- Reimplemented the front-end with jCanvas (and cooked up all their own art assets!).
- Wrote a TurboGears2 app that spins up serverside instances of their pybotwar fork.
- Those instances dump their state into mongodb (or memcached, long story).
They have (awesome) plans to:
- Allow you to upload your own scripts (they have it working, just not secured).
- Make a built-in script editor.
- Tighter facebook integration (challenge your friends!)