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
2
votes
2 answers

Google playN vs android game engines

I currently developed 4 multiplayer games on Android using andEngine. The problem is the engine is kind of dead(no commit in the past 8 months) and I'd like to start developing in another good engine. I saw playN and it looks promising, but my…
Fofole
  • 3,398
  • 8
  • 38
  • 59
2
votes
2 answers

GWT & MVP in order to deliver BOTH Native (Android+ObjC) & HTML5 Mobile Apps?

So GWT best practices encourages one to use some flavour of MVP, which should in theory allow one to write different native views while sharing the presenter business logic. This seems to be at the heart of the GWT spin off Google project…
Daniel Gerson
  • 2,159
  • 1
  • 19
  • 29
2
votes
1 answer

game size on html

I'm using the latest PlayN version from git, where it was removed the setSize(w, h) method from the platform. On the Java backend I give my game the desired dimension with: Config conf = new Config(); conf.width = 720; conf.height =…
AndresQ
  • 803
  • 5
  • 19
2
votes
1 answer

PlayN JBox2D Y velocity increases but collision happens

So i'm seeing a really strange problem. using the PlayN peas demo from the showcase i put together a simple app - i have a dynamic entity dropping onto a static entity and i cannot figure out why it isn't bouncing. After doing some printouts i find…
sean christe
  • 879
  • 2
  • 7
  • 24
2
votes
1 answer

PlayN Export runnable .jar File in Eclipse

I'm unable to export a runnable .jar file. When I export the java project (using the eclipse export wizard) and then try to run the resulting .jar file I only get errors that jwgl library can't be found! What can I do to get a working .jar…
Fleckdalm
  • 175
  • 2
  • 10
2
votes
2 answers

PlayN iOS Landscape mode

My game is designed for landscape only (screen resolution 1024*768 - iPad resolution). My game scene is rendered correctly on every platform supported by PlayN (Android, html etc). The problem with iOS only. I have prepared all the resources for…
Pleskach Yuriy
  • 149
  • 1
  • 6
2
votes
2 answers

Is PlayN websocket implementation in Java supposed to be working?

According to the platform status, it should. I am trying to accomplish a basic Hello World proof of concept but I can't get my Java client connect to my server with PlayN. As soon as I call createWebSocket(), the onClose() gets called. However, I…
2
votes
0 answers

PlayN 1.4 - building Flash war

I can not maven install Flash from my project. I have successfully install and run HTML war file, but when I tried to install Flash project I got errors. I have seen on other posts that it is a problem with GWT 2.4 and I have to downgrade to 2.3 in…
user1638291
  • 49
  • 2
  • 8
2
votes
3 answers

How to properly apply torque or angular impulse to body in PlayN?

I've been trying to apply an angular impulse to a Body object in PlayN, but to no avail. Whichever value (radials) I enter, the angle of the body never changes. I have tried to set the torque as well with no results. Example code that doesn't…
levivanzele
  • 726
  • 1
  • 13
  • 33
2
votes
2 answers

I can't seem to run playn-showcase-android in eclipse

I'm currently trying to set up playn on eclipse to make a game on android I followed the installation steps here: http://0-code.google.com.precise.petronas.com.my/p/playn/wiki/GettingStarted I installed the Android development stuff and the Maven…
2
votes
0 answers

Using "playn showcase" for eclipse, getting "Could not resolve dependencies" error

I followed the instructions at http://0-code.google.com.precise.petronas.com.my/p/playn/wiki/GettingStarted But got an error (see below). I use the Eclipse IDE for Java Developers and I installed the Maven Natives Plugin for Eclipse. And I did the…
2
votes
1 answer

Getting started with playn - eclipse

I followed all the instructions for setting up the environment in eclipse indigo EE. I did it both in ubuntu 12.04 64bit and Windows 7 64bit, and everything goes good till the point when I try to run the imported example (showcase-java). the build…
FoY
  • 398
  • 1
  • 4
  • 17
2
votes
1 answer

PlayN html integration

I am having trouble integrating the playn-root component with the rest of my standard gwt panels and components. In other words I have standard gwt components like buttons and tables and cannot figure out how to add the playn root where I would…
Jonah
  • 41
  • 1
  • 5
2
votes
1 answer

PlayN - Managing Common Code / Native Code

I am thinking about using PlayN to manage "common code" in Java and use PlayN to generate iOS, Android, and HTML native versions of the common code. I figure I could then use the playn-generated native code and link with actual platform specific…
2
votes
1 answer

html rendering and speed issues

I'm in the early stages of development on a game. I'm using images to create animations by drawing a piece of a larger image onto a surface. Here's a code example: void drawNextFrame() { //surf.canvas().clear(); surf.clear(); float…