Pseudo 3D Graphics for Android Game. Drawing Isometric Block.

Now let’s start to draw the block on the game surface. As it was said before, in the majority of cases the block is situated on the game field surface, that is why it should be drawn after the game field is drawn. The drawing of a block has no differences from the drawing of cells, though it has some peculiarities. In particular, the block can be in 5 positions (but as it is possible to get an opposite position in a horizontal plane by the mirror reflection, then we can think that there are 3 positions):

Continue reading →

Pseudo 3D Graphics for Android Game. Drawing Game Field Cell.

Now we can start drawing the cells. Cells are drawn in the main application’s  Activity by DrawCells function activated from onDraw.

Continue reading →

Pseudo 3D Graphics for Android Game. Programming Game Field Cell.

Preparation

We need to prepare pre-rendered sprites of all game objects. Usually, graphical packages like 3DMax, allowing working with 3D scenes, are used for that. To get a rectangular isometric projection we need to turn a camera, aligned parallel the floor and coordinate axes, down to ≈35.264° around the horizontal axis and ±45° around the vertical axis. Continue reading →

Pseudo 3D graphics for Android Game. Isometric basics.

We are surrounded by a three-dimension world and that’s why it’s obvious that we got used to interact with three-dimension objects. That is why, in the majority of cases three-dimensioning representation of some process, for example a game, is preferable for an end user, than something other. Due to that fact, three-dimension applications, at other equal conditions, will be better perceived by users, than two-dimension ones. But 3D applications have 2 serious disadvantages:

  • 3D applications are much more difficult to implement;
  • 3D applications demands much more calculating resources and if there are not enough of such resources, then the application won’t be able to function on a proper level, in particular, a necessary performance won’t be provided.

Continue reading →

Pseudo 3D Graphics for Android Game. Preface.

Recently we at AndroidDevStudio were hardly working on our brand new pseudo 3D Android game and we want to share some of our experience with all Android community members. So sign up for RSS feed or follow us on twitter, as we are going to post several parts of article “Pseudo 3D Graphics for Android Game” within few days.

What will be included into this article?

  1. Isometric basics.
  2. Programming Game Field Cell.
  3. Drawing Game Field Cell.
  4. Drawing Isometric Block.

And of course every part will be with commented source code. So keep posted, it will be interesting!

How to put the link on Market app from a web page

Hi there!

I’d like to tell about quite usefull thing you can do to drive more traffic to your Android Application published on the Android Market.

There is a special protocol on Android device - “market://” and it’s used to request Android Market for information. It’s great because you can place the link on your application from your website! When someone is reading your site via G1, he/she will be able to click the link and it would open Android Market showing search results with your app in it!

Create link to your Android App.

Continue reading →

Adding EULA to Android app

EULA ( End User License Agreement ) is not required to publish your Android app on Market, but it’s a good practice to protect yourself by concluding an agreement with your user. So in this post I will describe simple and quick method of implementing EULA in Android application.

Our EULA implementation is based on class available here. We are using Eclipse 3.3 with ADT plugin installed. So we need to do the following steps to add EULA to Android application:

  1. Download or copy Eula class source code from here.
  2. Add Eula.java file containing Eula class source code to Android application.
  3. Add necessary string resources.
  4. Add text file, containing EULA text into ‘asset’ application folder.
  5. Call Eula.show method in Create event handler of the main Activity.

Now let us study each step in detail. The first step doesn’t demand any explanations, that is why let us go to the second one.

Continue reading →

How to install non-Market app on G1?

This short overview is about installing non-market applications on your G1 phone. There are lots of ways to get .apk file for your Android phone - you may buy applications via your computer or download some for free, e.g. our logical game for Android - Brain Twister.

After you get the .apk file you need to install it on your device. There are some ways to do it.

Intall non-Market app on G1 using SDK

  1. Download and install Google Android SDK.
  2. There is a tool to install applications on Android phone in SDK. This tools is adb.exe.
  3. To connect your G1 to your computer via USB you will need to download Android USB drivers. After installing this driver you will be able to connect your G1 to computer via USB.
  4. On your phone you should go to Settings/SD card & phone storage and disable Use for USB storage. Then go to Settings/Application settings and enable Unknown sources.
  5. Open command line on your comouter and type in the following command 
    adb install <Full Path to apk file><apk file name>

Continue reading →