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
0 answers

How do I convert a POJO to JSON in PlayN?

I want to send a string with json content to a REST service. How can I convert a simple POJO to a json string? Normaly I would use Gson to do this: My class that I want to convert: public class UserMdl { String name; String pwHash; …
iuiz
  • 957
  • 1
  • 10
  • 23
2
votes
3 answers

How do you unit test a PlayN project?

I have managed to get basic unit testing working, however when I add a unit test to project-java I get an error of class not found, looking into it it seems when compiling the testing classes, it dosn't copy the main classes from the project-core,…
KatGaea
  • 996
  • 1
  • 12
  • 31
2
votes
1 answer

Programmatically fading in an image in PlayN

I'm working on a game using PlayN, and there's a bit where I would like to take an image (which is currently in PNG format, with 8-bit alpha already) and I would like to multiply the image by an additional alpha factor, based on a value from my…
2
votes
1 answer

running html version of playn

I have playn installed on eclipse (http://code.google.com/p/playn/wiki/GettingStarted#Running_via_Eclipse), i loaded the sample programs and they load file, the java one runs fine. But for html I right click the showcase-html > google > compile I…
Saad
  • 26,316
  • 15
  • 48
  • 69
2
votes
1 answer

PlayN skeleton project html module can't find core module in maven?

Based on the PlayN Getting Started wiki page I created a skeleton project (called GuiPoc) in eclipse. I managed to make the guipoc-html project compile successfully (with Google -> GWT Compile), and eventually Run as -> Web Application. I tried…
Mark Schmit
  • 467
  • 4
  • 13
2
votes
0 answers

"No host pages were found. Launch anyway?" Error

I've installed all the plugins and imported the sample projects. When I try to run it as "Web Application" I get a message box saying "Could not find any host pages in project playn-showcase-html". What am I doing wrong? Thank you in advance…
3mpty
  • 506
  • 1
  • 6
  • 14
2
votes
1 answer

How to perform a hitTest on an entity

When user clicks on a moving or static object, ie an entity, how to listen to a mouse click event and perform a hitTest to see if the mouse was clicked on the target?
Lin Song Yang
  • 1,936
  • 19
  • 17
2
votes
3 answers

Playn HTML5 won't run from Eclipse

I am trying to run the Playn example projects. I followed every step in this guide to setup new Playn development environment and then this guide to run sample projects. it seem to work fine but when I try to run the HTML5 version by right click…
Fredric T
  • 35
  • 1
  • 10
2
votes
1 answer

Behaviour of Javascript and Java on PlayN is different

When I build the PlayN project and run the java version, it's behaviour is different to when I run the HTML version. Basically I made a board game that uses a modified version of the Minimax algorithm (search tree and weighting evaluation) for its…
prageeths
  • 148
  • 1
  • 8
2
votes
1 answer

Playn - Rendering Hollow Objects

Is there a standard way to render hollow/vectorial objects (i.e. they have no image attached, only a border)? I want them to be physically simulated as dynamic objects as well.
2
votes
1 answer

maven install fail

I follow the guide of how to use PlayN with Maven, but when i perform the command: maven install it fails. The error log is the following: [INFO] [INFO] --- maven-android-plugin:3.0.0-alpha-2:dex (default-dex) @…
Andrea Carron
  • 1,001
  • 13
  • 22
2
votes
1 answer

Why is my Flutter application apk not compatible with anything thus preventing Amazon Mobile Marketplace submission?

I have a little game application Deal-O-Round in the Google Play Store and I submitted the same APK about 7 years ago (July 6, 2014 https://smile.amazon.com/Csaba-Toth-Deal-O-Round/dp/B00LK8VBLS/) to the Amazon Mobile Marketplace as well. The 2014…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
2
votes
1 answer

Add plugin to a PlayN project

Is it possible to display a HTML page in a PlayN game? More generally, is it possible to add a plugin (native iOS code) to an iOS build of a PlayN project? (child browser, Accelerometer,..), same as the phonegap plugins ? Thank you for your help.
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105
2
votes
0 answers

Maven: mvn package failure

I am trying to create an executable .jar file from a maven project using the "mvn package" command. It had been working for a while, but now, after running the command in debugging mode, I'm getting this: [INFO] BUILD FAILURE [INFO]…
2
votes
0 answers

HTML canvas resize and mouse coordinates

I'm using canvas with predefined width and height, those are result of the available resource that I've to render. The resources sizes are not always the same size as the screen (mobile device) so I "stretch" the document with "viewport" to get the…
Arman Gal
  • 21
  • 2