Monday, October 3, 2011

[NEW VERSION] Bluphys - Physics Game (free)


Hi guys,

New version of Bluphys - Physics Game.

Get it while it's free :)

New features:
  20 more levels;
  More enemies;
  New objects to interact;

Next version will have openfeint scoreloop support


Wednesday, September 21, 2011

Bluphys - Physics Game


Hey guys,

My friend just released his first app on Android Market.
It's a very simple game that he made in his spare time.

Market link:
https://market.android.com/details?id=com.nps.game.bluphys

Screen shots


QRcode
Looking forward to your comments.


Thanks.

Saturday, March 26, 2011

Earth Hour 2011

At 8:30 PM on Saturday 26th March 2011, lights will switch off around the globe for Earth Hour and people will commit to actions that go beyond the hour.


This Earth Hour we want you to go beyond the hour, so after the lights go back on think about what else you can do to make a difference.
Together our actions add up.

Thursday, March 24, 2011

Android Development

I've been working on my first Android game for a few months now (it's taking longer than I expected) and since the the main purpose of this blog was Android development, after today I'm going to publish some tutorials explaining how everyone can develop simple games for Android.

Before starting with the basics, we need to:
Finish those 2 steps before reading any further.

Now, let's install and configure the ADT plugin.

The Android Development Tools (ADT) is a plugin for the Eclipse IDE that extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add components based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) .apk files in order to distribute your application.

Thursday, January 13, 2011

How to read, rotate and save images with Graphics2D

My previous post "Rotate and translate images with AffineTransformrotates and translates any buffered image, however I found out that using AffineTransform isn't always the best solution. I've encountered several problems rotating images bigger than 2000px and because of that, another solution was needed to resolve my problem.

Here's a little example that reads and rotates an image 90 degrees.
private String rotateImage(String pathToImage) {

BufferedImage image = null;
String tempFileName = null;

try {
   File f = new File(pathToImage);

   if (f.exists()) {

     image = ImageIO.read(f);

     Image rotatedImage = new BufferedImage(image.getHeight(),
                      image.getWidth(),image.getType());

     Graphics2D g2d = (Graphics2D) rotatedImage.getGraphics();

     g2d.rotate(Math.toRadians(90.0));

     g2d.drawImage(image, 0, -rotatedImage.getWidth(null), null);
     g2d.dispose();

     //Random name
     String timeStampName = UUID.randomUUID().
                           toString().substring(1, 8);

     //Save image to java.io.tmpdir
     tempFileName = System.getProperty("java.io.tmpdir") +
                    timeStampName + ".jpg";


     ImageIO.write((BufferedImage) rotatedImage, "jpg",
                                    new File(tempFileName));


   }

} catch (Exception e) {
  //TODO: Do something here
}

return tempFileName;

}