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

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 and the movement of the dynamic body) and it's…
Epi
  • 682
  • 3
  • 10
  • 16
0
votes
1 answer

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 understand at all. Basically what I want to do at…
Epi
  • 682
  • 3
  • 10
  • 16
0
votes
2 answers

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 a velocity by dragging and throwing them. For…
bambata
  • 313
  • 1
  • 5
0
votes
1 answer

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 = PlayN.graphics().createImage(100, 50); Canvas…
QQQ
  • 41
  • 2
  • 6
0
votes
0 answers

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 maven and the mvn test went fine, then I've…
Janbure
  • 79
  • 2
  • 5
0
votes
1 answer

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 first project with maven (because apparently some…
Daraku
  • 19
  • 6
0
votes
1 answer

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 wiki and on this question it sounds like that should…
thomas88wp
  • 2,381
  • 19
  • 31
0
votes
0 answers

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 and I push/remove the second Screen to/from…
Gio
  • 94
  • 5
0
votes
2 answers

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 tripleplay: Could not resolve dependencies for project…
0
votes
1 answer

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.
0
votes
1 answer

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, then reducing the width and changing the image when…
Mohit Bahl
  • 15
  • 6
0
votes
1 answer

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 -DarchetypeGroupId=com.googlecode.playn…
gnumaru
  • 151
  • 1
  • 4
0
votes
2 answers

PlayN start up?

i'm newbie on the PlayN. I read the article over the googlecode: Getting start I want to start up with Eciplse but according to the tulorial, I found that we need to install maven, but I'm not getting the way from I start my own Project. For the…
Akarsh M
  • 1,629
  • 2
  • 24
  • 47
0
votes
0 answers

PlayN: Auto reload/refresh Java application

I see on this video https://www.youtube.com/watch?feature=player_detailpage&v=F_sbusEUz5w#t=1462s (24:15) that the Java application can be auto reloaded by changing sources. But it doesn't work for me, I have to close and launch again the…
devside
  • 2,171
  • 1
  • 19
  • 23
0
votes
1 answer

Change VECTOR_OUTLINE Color in playn

I am trying to create a label with a black outline in playn with triple play. This code creates a label: new Label("Label").addStyles( Style.COLOR.is(Color.white.getRGB()), Style.OUTLINE_WIDTH.is(5f), …
Smotko
  • 293
  • 2
  • 9