Here is our 4th installment of the Real OpenGL ES 2.0 2D tutorial series! We will cover transformations in this tutorial like translation, rotation and scaling. In our previous tutorial we already translated our image using our touchscreen, the thing is however, it is not the only way we can do translations. So what is wise? We will continue with the source code from the previous tutorial.
This series of posts is all about those small things in Android that you can use and/or abuse for your benefit. Small hidden gems or just simple hacks to overcome some issues. This post is all about the Invisible Activity, the activity without a gui / ui!
So you have created a nice and handy app and it looks fine on your test devices and on the emulator. You upload and publish your game on the Google Play Store and what happens? You get some very great reviews but also some very bad ones. How can this happen? You look into it and you get reaction like “blurry text”, “shadow text”, “alignment issues” and a lot more of those kinds of bad reviews. So what has gone wrong?
At this moment we have an image rendered using OpenGL ES 2.0. In order to create a game we need user input to do something with image. We are going to move the image to the right and the left by pressing the screen of the phone. Let’s begin:
In the previous tutorial we had created and rendered a 2D triangle on your screen. In this tutorial we will load and render a 2D image on screen. This tutorial will continue on the code of the previous tutorial. Rendering a 2D image on screen using OpenGL ES 2.0 is not that different from rendering a triangle on screen. Instead of 1 triangle we render 2 triangles and the shaders changes a bit. Let begin with the next installment of our Real OpenGL ES 2.0 2D tutorials.
Debugging with the emulator is not our favorite way of debugging. Connect a phone to your computer and debugging is a lot better in our opinion. However, there are some moments, like for example recording gameplay, that you want to be able to use the Android Emulator. Here are some tips to speed up the emulator, alternatives and other usefull resources for your emulator.
When it comes to languages, people like to be able to read stuff in their own language. We, as a game developement company, should take that into account. But how can we do that? Here are some tips to get the best possible (free) translations for your game.
When we first searched the internet for information about Open GL ES 2 for Android, we found a lot of useful tutorials. The problem we encountered however was that none of the tutorials we found really explained the 2D part of Open GL ES 2. Since we were at first looking for 2D only code, we were a bit disappointed. There are quite a few questions on websites that cover such things but creating a full 2D engine based on separate question is not the way you want to go about it. Therefor we have decided to create a few handy tutorials for 2D only. We hope a lot of beginning coders will find this information useful.