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
1 answer

PlayN WebGL perfomance for canvas

WebGL is really slow. 100 sprites per frame - ok, 1000 sprites per frame - need optimization, 10000 sprites, fps drop down from 40 to 20fps. I do not need 3D at all. I do not need filters, shaders, lights and other 3D stuff. I need just fast 2d…
0
votes
1 answer

How to override GWT-supplied implementation of CanvasElement in PlayN HTMLGraphicsCanvas?

I'm looking to supply my own implementation of CanvasElement class. This class is instantiated in HTMLGraphicsCanvas class in the PlayN stack. What is the ideal way of doing this? There are 2 ways that I've tried but failed: A) Subclassing…
0
votes
1 answer

PlayN - Bad rendering performance on iOS

We have a game that runs pretty smoothly on Android but the game is unplayably slow on iOS especially on iPhone 4. We have found some candidates what may be delaying the game rendering but still the overall performance is quite bad. The following…
Blackhex
  • 1,694
  • 3
  • 21
  • 45
0
votes
1 answer

"java.lang.UnsupportedOperationException" using Net.WebSocket on android

I'm just trying to connect to my websocket server : ws = net().createWebSocket("ws://192.168.0.3:8000/sample", this); It works fine when I test it with mvn test -Pjava But when I load it with my Google Nexus S (under Icecream sandwich), I get…
dawi
  • 628
  • 6
  • 18
0
votes
1 answer

Playn mvn clean install error "NoClassDefFoundError: playn/core/game

so for a long time now i have been searching the web constantly looking at other peoples problems and fixes hoping they will be reverent to my issue, but i cant seem to find anyone with the same issue involving playn. i can run "mvn test" the the…
0
votes
1 answer

PlayN - ArrayBufferView size is not a small enough positive integer

I have a very simple TicTacToe game using PlayN and Tomcat that works fine in Java. However, the html version on Chrome keeps getting: [FATAL] Uncaught JavaScript exception [Uncaught RangeError: ArrayBufferView size is not a small enough positive…
0
votes
1 answer

layer.setScale() linear/nearest neightbour scaling?

I'm using low resolution graphics and am aiming for the retro pixelated look. However, layer.setScale() seems to smooth the graphics when scaling up. And the function doesn't take any parameters. Anyway to change the way scaling is done? I'm not…
omgnoseat
  • 361
  • 2
  • 19
0
votes
0 answers

Issues deploying playN android app to phone in netbeans

I have been struggling with this setup for a while now. I have been trying to setup a project with the playN library on netbeans using the tutorial here. The project builds fine and will run as a desktop java app and web app. I can build the project…
Kyle
  • 366
  • 3
  • 17
0
votes
1 answer

playn skeletal build excudes jbox2d

Why does the default playn skeleton project not include jbox2d? And how do I include it in the maven build? I do understand how to include it into my IDE, but I would like the maven build to include this dependency fromt he git go
placeybordeaux
  • 2,138
  • 1
  • 20
  • 42
0
votes
1 answer

Low framerate on android using immediateLayer (and weird playn log message)

I am trying to get my game running smoothly on android using PlayN, everything works as expected but I have a verry low framerate. I think i might be doing it the wrong way so it'd be great if someone could give me some help :D. So I'm currently…
Hush
  • 145
  • 1
  • 3
  • 9
0
votes
1 answer

app engine cannot find images

I am developing a html5 game using PlayN. It works well in Eclipse.(Both java application and html). But after I deployed it to app engine, there always are 5 pictures cannot be found. Does anyone know the reason? Thanks!!!!!
0
votes
1 answer

Issues with creation/running playn 1.3.1/1.4 projects

When I try running showcase sample via maven (using "mvn test" and "mvn test -Ptest-java") I get: [INFO] Scanning for projects... [ERROR] [ERROR] The project com.googlecode.playn:playn-showcase:1.0-SNAPSHOT…
0
votes
1 answer

ImageLayer setRepeatX and setRepeatY not working?

I've tried setting the RepeatX/RepeatY for an ImageLayer to allow infinite translation. From: PlayN - Repeat image in background layer final ImageLayer bgLayer =…
0
votes
2 answers

Creating playN project

I'm getting some problem in understanding playN project, can someone explain how to create a playN project or point me to a link that has enough documentation. I've used the playN samples. its really confusing. Does someone has a link that has…
Noor
  • 19,638
  • 38
  • 136
  • 254
0
votes
1 answer

PlayN: clear part of an Image

I would like to overwrite/clear part of an image, using transparent colour in PlayN. Is this possible somehow? (PlayN 1.3.1) Here is a sample code I did: @Override public void init() { // create and add background image layer Image…
Gábor Bakos
  • 8,982
  • 52
  • 35
  • 52