Play My Code

This is not built with Java, so I hope people don’t mind me showcasing it, but here is something I’ve been building for a while now. It’s called Play My Code, and I’d like to show it off a little and ask for people’s thoughts and feedback on the site.

The concept is a game building site that streamlines the process of building games, which includes abstracting away all of the issues with building a browser game. You can signup and start projects, then code them in the IDE and upload assets, play the game as you are building, and then publish when you are done. Once published, games can be played straight away, can be shared with others, and you can embed any of the games on your website.

It runs on top of HTML5, and we use our own language, Quby, which I wrote in JavaScript. The language is based on Ruby, but with Java influences (such as C style comments, null instead of nil, and some static analysis), and it compiles down to JavaScript on the fly. We use our own language partly because we prefer it to JavaScript, and partly to sandbox people’s code so it’s safe for people to embed (for example you can’t embed Flash/Java/WebGL content in the background with the hope to abuse a security hole).

The site is still in an alpha stage, but it’s getting pretty stable and we’ve had several people building games with it including: a raycaster demo that I built, a golf game, a kinda rhythm action game, a ball bouncing game (also on the iPhone), and lots more.

All of the games can also be edited (but read only), so you can take a look at how they are all put together, and we have a Sandbox area with an example hello world type program.

If you have any thoughts, feedback, and especially any issues then feel free to post them here.

Quite simply amazing!

Thanks, I’m glad you liked it.

Has anyone else had a look? I’d be very interested in getting more feedback.

A few really original games. Very Nice.

Pros:

Cross-Platform
Simple Asset control
Simple Editing
Easy to use

Very impressed brah. Good work, this has some potential :slight_smile:

You should add some WebGL support later just to add a proper 3D API

I’d really like to add 3D support too, and since you aren’t actually coding against the canvas I’ve been thinking of using Silverlight or Flash for IE support. But we have a list of more pressing things that need to be added first, like forking and using multiple files in projects.

Great idea, technically very impressive.

So how do you turn the quby code into javascript? Find-replace using a java program on the server or something else?

The demos are cool, demonstrates music, UI widgets, and keyboard/mouse interaction. But they would look way better with some more interesting art/images.

I just thought I’d bump this for anyone interested, because over the last few months we have added loads of new stuff. We have mostly gone through and added polish over the whole site. The editor works better, lots of bugs have been found and solved, the site is prettier (thanks to my brother), you can now add descriptions to games and post comments, we have tonnes of new stuff in the API, we switched server (which solved lots of our stability issues) and a few days ago we integrated the documentation into the IDE allowing you to browse it as you code.

The whole site is much more stable, and much more polished, then when I first showed it. We have also had a bunch of new games built!

We have our own compiler, which I wrote, which is written in JS (and it’s quite a nice language for writing a compiler in). This way it runs directly in the browser, with no latency when you build.

wow, that is really good.

Just out of curiosity, how easy is it to move the games off of your site(or is it even prossible?)

Currently the only way to move them off is to use the embed code provided, which is an iframe containing the player.

Reminds me http://wonderfl.net or http://jsdo.it or http://openprocessing.org
But thank you for another one. Maybe I can do there fun stuff as I have done in processing language (java worn in something like java class with functions extending those java’s - that is why I started to look about (pure) java)

edit: Btw it could be cool to have ability of fork, like in wonderfl - that ppl could edit foreign code with clear mark that it is fork and from what it was forked.
So people could make even better things with soneone’s great idea, or owner can give his code to someone to be fixed and so on (many other possibilities).

Hi

Therefore, it has nothing to do here. Sorry to be harsh but we are on javagaming.org, neither on javascriptgaming.org, nor on qubygaming.org.

It’s about the community, not the code. Nothing in games center or showcase says java only. :\

@gouessej
No one else objected to this post, in fact we all benefited and appreciate this post for the knowledge and tools it has given us. So please be a bit sensible and less harsh >:(

“The number is not the reason”. It is not a question of opinion, it has nothing to do with how I find “Play My Code”. By definition, JavaGaming is the “home of the largest java game developer community”. “Play My Code” has simply nothing to do here even though several people here appreciate it. If you want to speak about something not related to Java, post it into another section (for example “Miscellaneous Topics”).

He has a point, it shouldn’t really be in the Java Showcase but it is otherwise entirely welcome on the boards.

Cas :slight_smile:

It’s not that JL235 is constantly spamming with non-java posts, so I simply didn’t bother and also find your first comment a bit harsh in tone. But in fact you are right about this belonging to a more suitable section like Miscellaneous Topics. Anybody care to move this thread?

I don’t want JL235 to take it as a personal criticism and it has nothing to do with the technical and artistical appreciation of his creation(s). As Princec said, it is welcome on the boards. I wrote to Eli to suggest him to suggest to the author the move of his thread to the “Miscellaneous Topics” section.

Yes, it’s true we’re a Java gaming community. I might however consider making a non-Java showcase section, as I know a lot of people (including myself) develop in many languages other than Java and just want to show it off. I moved this thread even though I personally don’t care what the games posted here are made in… because it is indeed a Java gaming forum.

The point of providing a service to a niche is that you focus on this niche. Once you broaden your target audience, you’ll find yourself competing with forums that are dedicated to their niche. Everybody loses. I have already stated this before and will continue to do so, every time you suggest we should open up to non-java game development.

Regarding JL235’s posting this project on a java forum:
As said: the more you contribute, the more you get away with.