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.
291
questions
2
votes
1
answer
610
views
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 ...
1
vote
1
answer
137
views
what is the difference between playn.io and com.googlecode.playn
I am trying to get started on playn.io via netbeans.
when trying to import maven archetype, I encounter 2 type of playn.
playn.io and com.googlecode.playn
what is the difference between those two?
0
votes
1
answer
89
views
PlayN 2.0 - How to prevent Android from autoscaling images?
I am using PlayN 2.0 and I need to prevent Android from autoscaling images based on DPI. From what I've learned it seems that I need to store the images in /res/drawable-nodpi. My question is: Does ...
1
vote
1
answer
59
views
PlayN and Firefox issues
I am working on a pet project of a Facebook game.
I've had a couple of problems until now on Firefox browser.
CPU runs wild when you start a game on FF.
TextLayout gets moved a
few pixels up.
...
1
vote
1
answer
104
views
How to detect Swipe in a PlayN app
I'm trying to detect a swipe gesture on a game developed with PlayN and Tripleplay libraries.
I did some experiment using tripleplay.gesture package but I don't understand how to use it.
Is there any ...
0
votes
1
answer
44
views
Drag a PlayN/Tripleplay widget without recalculating layout
I like the Tripleplay UI layout for the PlayN framework, but can I sometimes disable the layout calculation so I can move things around or change a widget's text without triggering a layout ...
0
votes
1
answer
110
views
Where do I put assets in a PlayN project?
I've set up a new PlayN project, and it runs some trivial code. I want to add asset files and load them, but where do I put the assets? I found the documentation for the Assets class, but it doesn't ...
0
votes
2
answers
122
views
How to rescale a PlayN application with iOS 8 SDK?
The context of this question is iOS 8, Xamarin and PlayN with an application in landscape mode only.
I used to rescale my application in FinishedLaunching based on UIScreen.MainScreen.Bounds to adapt ...
0
votes
1
answer
200
views
Playn demo won't launch HTML version
I'm trying to follow Playn's getting started guide, but the HTML version won't launch.
I can successfully run the Java versions of the showcase and hello projects, but when I try to launch the HTML ...
1
vote
1
answer
36
views
Integrating PlayN Html compilation with SSL
I built a cross platform application using Google's PlayN framework and was able to get the application running over html5/javascript using a standard webpage. I wanted to integrate this in as a ...
0
votes
1
answer
39
views
How to get a Borderlayout to fill its container?
I am a GWT programmer trying to get to grips with using PlayN with Tripleplays gui library.
Having a little bit of trouble working out how to get a border layout filling up all the space of its ...
1
vote
1
answer
211
views
Create skeleton from commandline
I am following the steps in the Getting Started Guide and am getting a MissingProjectException error from Maven (missing pom.xml file).
I have downloaded and installed the JavaSE jdk and Maven. I ...
3
votes
1
answer
3k
views
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:
...
0
votes
1
answer
148
views
Playing music in PlayN: how to pause, resume?
I am playing some background music in my PlaynN game. Everything is fine except it does not pause when the activity is sent to the background. Music still plays when the game is not playing.
I can ...
1
vote
0
answers
168
views
How to load Google Cloud Datastore private key in Google PlayN
We are developing a game using PlayN framework and we'll have a global leaderboard stored in Google Cloud Datastore. We acquired the private key needed for accessing the database, it's in a .p12 file, ...
0
votes
1
answer
501
views
PlayN application in IFrame doesn't have keyboard input
I have made my first PlayN app and it works just great until it is embedded somewhere with iframe.
In my init() function I have this code for keyboard:
Keyboard k = PlayN.keyboard();
k.setListener(...
0
votes
1
answer
57
views
What is MeshBuilder is doing in PlayN
I happened to see the the following code develped by PlayN framework. I am not getting what the following piece of code doing.
meshBuilder.begin(MeshBuilder.Mode.TRIANGLE_FAN, MeshBuilder....
0
votes
1
answer
97
views
PlayN - can't compile android version
Following this, I tried to run the showcase app on my phone (the html and java versions both work fine). I get this error when I try to run mvn -Pandroid install though:
Failed to execute goal ...
0
votes
1
answer
89
views
SurfaceLayer is now deprecated, how to avoid using it?
I'm new to PlayN, now I'm trying to draw an image. Seems that examples on the official page (https://developers.google.com/playn/devguide/rendering) were not updated for a long time, they simply don't ...
1
vote
1
answer
178
views
Loading PlayN sound assets in Xamarin
I followed the iOS build Wiki, but I can't get the sound assets to load right.
I created the symlink as described:
cd mygame/ios
ln -s ../assets/src/main/resources/assets assets
The images in ...
2
votes
1
answer
70
views
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 ...
0
votes
1
answer
78
views
Exception when running simple code on iOS
I'm having the following exception when running on iOS a code that works fine on Java:
Unhandled Exception:
java.lang.IllegalStateException: Attempted to generate texture before GL was initialized.
...
0
votes
1
answer
103
views
fillRect doesn't seem to fill the entire Rectange
I have this very simple code:
private static final int SKY_COLOR = Color.rgb(161, 210, 241);
private static final int GROUND_COLOR = Color.rgb(171, 131, 35);
@Override
public void init() {
/* ...
1
vote
1
answer
126
views
Playn for Applications other than games
I was wondering has anyone used PlayN for developing application other than games,
Is there support for normal GWT Widgets(because PlayN uses GWT Compiler)
1
vote
1
answer
81
views
Subimage pattern paints black on HTML platform
I am using PlayN 1.8
I load an image sprite and on success callback I extract a subimage from the original.
Image patternImage = result.subImage(0f, 0f, 10f, 10f);
Then I create the actual image I ...
10
votes
3
answers
299
views
PlayN - no sound on Android
I'm having a problem playing sounds on Android. I've added the following code to my project:
import playn.core.Sound;
...
@Override
public void init() {
Sound bg = assets().getSound("bg");
...
0
votes
2
answers
66
views
Run Playn HTML project in Remote
I made my game running on html with mvn -Phtml integration-test
does anyone know how to test it online now? What kind of server do I need and how do I make it work on internet?
thanks a lot!
9
votes
2
answers
26k
views
PlayN/GWT - did you forget to inherit a required module?
I'm having a weird problem when I try to compile my game in HTML. (I searched the other topics and they refer to people who are importing illegal packages, which I'm not.)
So basically, every class ...
2
votes
0
answers
4k
views
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 ...
0
votes
1
answer
79
views
Using TextBox in PlayN without popup?
Is there any way to use textboxes (or Fields) in a PlayN application with TriplePlay, which captures input from the keyboard, without displaying a popup, just like a Swing application? This is meant ...
0
votes
1
answer
73
views
How can I transform my canvas in PlayN?
Application screenshot: http://i.imgur.com/0uVKZiL.png
Source file: http://pastie.org/private/rcgm6o7qso8y0vz8nfjn0w
My application draws curves and I would like to be able to zoom in and out. When ...
0
votes
2
answers
181
views
Jbox2D - Body moving randomly
I'm having a little problem with jbox2d.
As soon as the method world.step is called my dynamic body moves out of the original position.
I tried to print everything else (the position of static bodies ...
0
votes
1
answer
200
views
Need some help learning jbox2d
first of all thanks a lot for your time :)
I'm currently trying to understand how jbox2d works and I'm having some issues. The code I wrote makes sense to me, but there should be something I didn't ...
0
votes
2
answers
130
views
PlayN throwing objects with touchpad
I am using PlayN to build a game involving stone a user has to move in a physic world (with gravity etc.) I want the user to be able to manipulate directly the stones using the touch pad and give them ...
2
votes
0
answers
1k
views
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 "...
6
votes
1
answer
849
views
How much is PlayN supported by Google?
When you access PlayN's site you see that PlayN's logo uses Google colors: http://code.google.com/p/playn/
Also, Lilli Thompson talked about PlayN at New Game Conference in 2011 as a Google game ...
0
votes
1
answer
86
views
drawing text in PlayN doesn't appear
I'm trying to draw a rectangle with text on it, but all I see is the rectangle, there is no text. Am I doing something wrong?
This is the part of the code that does the drawing:
CanvasImage image = ...
0
votes
0
answers
84
views
Problems with Playn libraries installation and Eclipse
I need the Playn libraries for an important project and I can't make them work on Linux. All the first part run smooth, I've installed git, and launched the clone command from terminal, I've installed ...
1
vote
1
answer
94
views
GWT compiling error at constructor
I have little knowledge how GWT works, so can anybody help me here?
This is the full log when I use Eclipse to compile my Playn html project:
http://pastebin.com/0EXNe57a
The same error appears when ...
1
vote
1
answer
278
views
Is PlayN on iOS possible without licensing MonoTouch?
Following the instructions on the PlayN wiki I was able to get the "hello" PlayN sample running on the iOS simulator. However, when using MonoStudio, I was told that I need to upgrade to an Indie ...
0
votes
1
answer
235
views
New generated Maven PlayN project displays errors on android screen
after hours and hours of search to get it running I'm stuck now. So what happened? I tried to dive into the PlayN framework to code my first game on android. With a little struggle I generated my ...
6
votes
1
answer
296
views
PlayN - Virtual keyboard on iOS and Android
Is there a way to programmatically trigger the virtual keyboard on iOS and Android in PlayN? Something like Gdx.input.setOnscreenKeyboardVisible(true); in LibGDX.
The best I could find is the ...
0
votes
1
answer
147
views
Running PlayN in HTML DevMode
I'd like to be able to run my PlayN project as a Web Application in DevMode, so that I can use a quick browser refresh to see code changes without having to recompile. From what I'm reading on the ...
0
votes
0
answers
118
views
Efficient toggling between two screens (tripleplay.game.Screen)
In my application I need to switch frequently between two main screens (tripleplay.game.Screen)
In order to toggle between the two screens, I always keep one Screen on the tripleplay.game.ScreenStack ...
0
votes
2
answers
114
views
Snapshot 1.8 dependecies error on tripleplay examples
i'm trying to run the tripleplay examples in my eclipse (https://github.com/threerings/tripleplay) but it always sows me te same error during installation:
Failed to execute goal on project ...
0
votes
1
answer
50
views
How to create a new image from a GroupLayer
I added a couple of images into a GroupLayer. Does anyone know how to create an image from that GroupLayer?
Thanks.
1
vote
1
answer
2k
views
Alternatives to playN
i want to create games for multiple platforms. I want to code my games one against a common API/framework and the framework could compile the game for multiple platforms. I want the game to work as an ...
0
votes
1
answer
226
views
No OpenGL context found error in PlayN
Using PlayN, i am trying to change the image on a square layer. I am trying to create a flip effect to change the images. This i am doing by setting the origin of the layer to center of the image, ...
0
votes
1
answer
559
views
PlayN 1.6 default maven project deploys but won't run on Android
I'm having trouble with setting up a new PlayN project and running it on Android. The game compiles, install, but it wont run.
I've created a new project using mvn archetype:generate -...
1
vote
1
answer
136
views
Garbage collection (GC) in Android PlayN
In Chris Pruett's talk http://www.youtube.com/watch?v=7-62tRHLcHk
writing real time games for android, he meticulously avoided the GC from running by never losing a reference or creating a new ...