
Overview - PlayN Game development technologies have changed dramatically in recent years. "Game developer" now describes a huge number of people working with an incredible diversity of technologies and exciting new gaming platforms. It has never been easier to create games, and modern social, mobile, and web technologies make it easier than ever to get those games in the hands of a wide variety of users. But here's the problem: there are too many platforms! PlayN is an open-source cross-platform abstraction layer that uses the GWT compiler to take one code base written in Java and compile it into targets that run it as HTML5, Flash, Java, or as a native Android application. PlayN is not a game engine, it's a library for compiling the same game to many platforms. PlayN's mission is to provide the fundamental technology to support cross-compiling code for broadly-generalizable game operations such as an update / render loop, handling user input, and fetching or serializing resources.
GettingStarted - playn - Getting started guide - Cross platform game library for N≥5 platforms You can run the PlayN showcase sample in three easy steps: 1. git clone cd playn-samples/showcase3. mvn test -Pjava # Alternatively: ant run-java That's it! If the instructions on this page do not work for you, please... This guide contains sections on: The sample projects are hosted in the Git repository of the playn-samples project. First you must install Git. Next you can check out the samples code to your machine like so: git clone This will create a directory named playn-samples which contains the sample project source code. There are three main sample projects: hello - demonstrates the barebones skeleton needed to get a project working on all of the supported PlayN platforms showcase - demonstrates various capabilities of the PlayN framework cute - demonstrates a more complete game (note: it is woefully incomplete at the moment) The sample projects may be run via Maven or Eclipse. Running via Maven Finally:
Our experience using PlayN for an Android game Thanks for the detailed feedback. We will try to address this in our next release (due in the next 2-3 weeks). Please see my response below for your specific comments: On Wednesday, 29 August 2012 13:31:54 UTC-7, Darrin Thompson wrote: On Wed, Aug 29, 2012 at 1:35 PM, Inderjeet Singh <inde... We would love to get feedback from the PlayN list members about the game. I played the single player mode and found it's pretty fun. You can also just touch the letters for them to be sent to the other bar. And at one point the game was obscuring the letter box targets with a message exhorting me to drag letters to the target. Yes, we show that help text 5 times and then it goes away. BTW, the help text asked you to click on the letters not drag, I think. I want to play in landscape mode. Agreed. Also, I played the game at work and it was really loud. Good point. What I like about daily jumble is that a lot of the time the words to be unscrambled are really short and yet still really challenging.
android - libgdx or playn Cross Platform Game Programming with PlayN Lilli Thompson, Game Developer Advocate, Google Nice to meet you! Overview What is it?Why do you need it?How is it implemented? What is PlayN? The basics An API for cross-platform gamesGWT / Java basedCompiles to JS/HTML5, Flash, AndroidFormerly known as "ForPlay"Learn more: developers.google.com/playn In use in the wild! Why do you need it? What's the problem? Too many platforms! Isn't HTML5 supposed to solve this? OK, but why Java? Familiar tools and libraries Box2D: C++ 2D Physics engine by Erin CattoJBox2D: Java port of Box2DGWTBox2D: JS port via GWT Box2D for Physics What's so cool about GWT? Removes unused codeCompile time checkingInlines, optimizesObfuscates outputAdjusted for browser quirks Where's the HTML5? WebGLCanvas2DCSS3Web Audio API How does it work? PlayN API Structure Think: Service Provider Interface (SPI) API concept Keep the core smallLots of samples Components of PlayN Game code has no platform-specific calls The Game Loop Implement PlayN.Game Rendering Drawing API Layer system Layer types Sounds
iOSBuild - playn - How to build and run your PlayN game on iOS - Cross platform game library for N≥5 platforms Note: This article describes the process for building and running the PlayN Showcase sample project on iOS. The same instructions will work for your own PlayN game. Requirements You must use Maven to build and package your game. Configuration You must provide the path to your ikvm-monotouch directory to the Maven plugin that will prepare your game for iOS. <settings> <profiles> <profile> <id>ikvm-monotouch</id> <properties> <ikvm.path>${user.home}/ikvm-monotouch</ikvm.path> </properties> </profile> </profiles> <activeProfiles> <activeProfile>ikvm-monotouch</activeProfile> </activeProfiles></settings> Be sure to change the path to ikvm-monotouch if you did not install it in your home directory. Building and Running in Simulator Build and package your game code via Maven. cd playn-samples/showcase mvn -Pios package Then open the ios MonoDevelop project like so: open ios/showcase.sln Click the "Start Debugging" button in the toolbar, or press Command-Enter. Building and Running on a Device