Questions tagged [playn]

PlayN is an open-source, cross-platform game development framework that provides a single Java API that can be used to generate HTML5, Android, iOS, and desktop Java/applet clients.

PlayN is an open-source, cross-platform game development framework created by Google engineers and supported by an active community. It provides a single Java API that can be used to generate HTML5 (via GWT), iOS (via IKVM and MonoTouch), Android, and desktop Java clients.

291 questions
3
votes
1 answer

PlayN HTML wont work with playn-jbox2d

Whenever I try and Compile my PlayN project with playn-jbox2D as a dependecy, I get the following error on HTML ONLY, the rest turns out ok [INFO] [ERROR] An internal compiler exception occurred [INFO]…
KatGaea
  • 996
  • 1
  • 12
  • 31
3
votes
3 answers

playn not playing with mvn, ironically

Trying to run the basic examples given by playn, wanting to have a go with the toolkit. I'm following the instructions as given here: http://code.google.com/p/playn/wiki/GettingStarted However, after doing a clone and running mvn compile exec:java…
David Archer
  • 2,008
  • 4
  • 26
  • 31
3
votes
1 answer

Googles AuthorizationCodeInstalledApp.authorize() method freezing on canceled auth

I have a Java application that needs to get users to authorize my application's access to Google services. I have the following bit of code in place to show and obtain the authorization I need: GoogleAuthorizationCodeFlow flow = new…
ChargerIIC
  • 1,620
  • 1
  • 33
  • 47
3
votes
0 answers

PlayN Tripleplay not working with Android Nexus 7

i have defined the main menus of my game using the Tripleplay framework for PlayN. unfortunately I cannot get it to display on my Nexus 7. What's really strange about this - if i run the Java version everything works fine - yet whenever I run the…
sean christe
  • 879
  • 2
  • 7
  • 24
3
votes
2 answers

How to set up PlayN size

I've tried : graphics().setSize(800, 600); But it has no effects (at least with java and html). And it seems this method is deprecated. What is the best way to set up the game size ?
dawi
  • 628
  • 6
  • 18
3
votes
1 answer

ByteBuffer to String in GWT

On a PlayN project I have the following Java code import com.google.common.base.Charsets; import java.nio.ByteBuffer; ByteBuffer msg = ... // a ByteBuffer that contains a String String s = Charsets.UTF_8.decode(msg).toString(); this works fine in…
AndresQ
  • 803
  • 5
  • 19
3
votes
1 answer

Strange bug when running multiple instances of a PlayN game

I'm currently developing a multiplayer game and it's common for me to launch a server plus 4 instances of my playn game. When more than one instance is opened at the same time strange bugs begins to happen in all animations and layers of all…
Thiago Born
  • 189
  • 1
  • 6
3
votes
1 answer

Correct exit from PlayN game using back button in Android

I can't correctly exit from PlayN GameActivity using Back button. I am using following code: public class Loader extends GameActivity { public void main(){ PlayN.run(new Game()); } @Override public boolean onKeyDown(int…
3
votes
0 answers

Force GWT compiler to stop pruning invalid CompilationUnits

I have a project in PlayN that allows me to compile a single java codebase to every platform under the sun; I am building against gwt trunk, which presently allows GWT.create() to be called in pure java implementations. There are some hoops to jump…
Ajax
  • 2,465
  • 23
  • 20
3
votes
1 answer

Playn and multitouch?

I've made this Button class, to catch the Pointer event : public class Button implements Pointer.Listener { public void initLayer(Image defaultImage) { layer = parent.createImageLayer(this.defaultImage); layer.addListener(this); …
dawi
  • 628
  • 6
  • 18
2
votes
2 answers

Multiplatform game development

Are there any good technical comparisons available between the various game development options available. I know this is an often asked questions but most of the stuff I found on SO was somewhat dated or covered separate platforms. I started by…
Saad Farooq
  • 13,172
  • 10
  • 68
  • 94
2
votes
1 answer

Rendering problems on Chrome and Android

The game I'm developing renders perfectly on the Java backend and on IE 10. However the rendering on Chrome and Android is weird. I'd assume this was because of WebGL & OpenGL respectively. Here's how it looks on IE. Here's how it looks on Chrome,…
BlueSilver
  • 1,052
  • 2
  • 10
  • 25
2
votes
1 answer

Deploy playn to Google App Engine

I have worked my way through the Getting Started guide -- http://code.google.com/p/playn/wiki/GettingStarted -- but am stumped at the point "Running your new game on App Engine". The guide says "To run your game on Google App Engine, we can use the…
user1200233
  • 333
  • 1
  • 2
  • 9
2
votes
2 answers

PlayN showcase-html validation issue

I am new to both GWT and PlayN. Followed two installation guides from the PlayN wiki to get PlayN working in Eclipse: BeginnerInstallationGuide and GettingStarted. I can run the showcase-java project but the showcase-html version produces a problem…
Jo Simon
  • 41
  • 2
2
votes
2 answers

Collaboration from PlayN client with server

I have written a game in PlayN, which has to communicate with a JavaEE-Server with Seam. First of all I only need the game running in HTML5. The current issue is the communication between the PlayN-client and the JavaEE-Server 1) First I tried to…
user1141785
  • 431
  • 7
  • 21
1 2
3
19 20