I'm pleased to announce the 1.2 release of the PlayN libraries.
There's a lot of exciting new stuff in there, along with a great many
smaller improvements. The release notes tell the whole tale:
http://code.google.com/p/playn/wiki/ReleaseNotes
(Well, really the commit logs tell the whole tale, but the release
notes provide a nice summary.)
Because I know your time is valuable, I'll provide highlights of the
summary right here in this email. Some exciting new things in PlayN
1.2 include:
- You can now listen for mouse and pointer events directly on layers.
- Ray brought the Flash backend up to date. Christopher &co at
King.com shipped an awesome Facebook game using it.
- There's an experimental GL20 interface that allows you to make
OpenGL calls directly. It works on Android and WebGL.
- Image.subImage relieves you from having to roll your own image tiling code.
- The iOS backend is almost entirely done. There's an ios submodule in
the new Maven archetype. A getting started guide is still needed.
- Check the release notes for all the other awesome improvements, both
large and small.
In addition to playn-1.2, I have also released tripleplay-1.2 for your
user interface creating pleasures (along with a grab bag of other
useful things). In a shocking turn of events, I have also prepared
release notes for TriplePlay:
https://github.com/threerings/tripleplay/wiki/ReleaseNotes
I have also published an ugly, disorganized, widget demo for
TriplePlay that does a mediocre job of demonstrating some of its
capabilities:
http://threerings.github.com/tripleplay/widgetdemo.html
If anyone wanted to make a proper TPUI "showcase" I would greatly
welcome the contribution. You can make much nicer UIs using TPUI than
my horrible programmer art demonstrations would suggest.
The 1.2 versions of both libraries were published to SonaType about an
hour ago, and will hopefully show up on Maven Central in the next 12
hours or so. Remember that last time we discovered that the PlayN
Maven archetype doesn't get updated until Sunday, so it will take a
few days before you can easily create new project skeletons that
include the new iOS submodule.
Ha! It looks pretty disabled though. :)
> Also, double-clicking on any of the buttons causes the "It's" text below the
> demo to be selected.
That's just because I embedded the PlayN game in a normal HTML page
and didn't go to great lengths to disable the ability to select text
on the page. There's nothing PlayN or TPUI can do about that.
Thanks for the feedback!
public void setSourceRect(float sx, float sy, float sw, float sh) { |
setImage(img.subImage(sx, sy, sw, sh)); |
} |
public void setSourceRect(float sx, float sy, float sw, float sh) { final Image image = img instanceof Image.Region ? img.parent() : img; |
setImage(image.subImage(sx, sy, sw, sh)); |
} |
Shouldn't it be something like :
public void setSourceRect(float sx, float sy, float sw, float sh) { final Image image = img instanceof Image.Region ? img.parent() : img; setImage(image.subImage(sx, sy, sw, sh));
}
like it's already done inside clearSourceRect() method ?
Are you sure you ran "mvn package" first? It looks like you didn't and
it's freaking out because you're trying to run a webapp and the webapp
was not created.
This is because the Android development team and the Maven Android
plugin authors are engaged in a conspiracy to waste the time of as
many developers as possible. No one is immune to their sinister
machinations.
I'll update the getting started instructions to include arguments that
tell Maven only to build exactly what is needed for the test in
question. That way people who are not trying to build Android and thus
who may not have an Android SDK installed on their machine, or who may
have an Android SDK installed that does not meet the stringent
requirements of the aforementioned time-wasting cabal, can still make
forward progress. At least until the men in black come for them.
Oops, I forgot to enable some jiggery pokery that allows the ios build
to NOOP even if you try to install its artifact.
If you git pull playn-samples, it should work now.