The answers to the questions I had during the creation of the game in the Unity
If you just started programming your first 2D game using AndEngine, here are some tips for you. These tips are more about "Game Programing" in general, then about AndEngine, but I think you should know it before get started programming your own game.
Avoid calculated variables in a code.
Use them in a database.
Because the Cisco VPN client is not working properly on Windows 8.1, we had to use Cisco AnyConnect Client.
Here begins a nightmare that lasted for several days.
After the AnyConnect client connects to a remote computer all local TCP connections are interrupted.
If your computer has initiated an application that for example communicates with the database, it loses the connection to the database and must be restarted.
It took several days to find a reason why this is happening:
disable IPv6 protocol on the local network adapter or in the connection to the database use a fixed IPv4 address (n.n.n.n) instead of the computer name
This will force connection to use IPv4 protocol.
If you recently started to develop applications for the Android platform (or any other mobile platform) it is likely that you will encounter the problem of designing user interfaces. Have you realized the importance of ListView control in developing android applications? That is what I learned the hard way. Don't allow this to happen to you too.
How to connect to your localhost web server (localhost) from the Android application.
Here you will find instructions how to:
- connect to your local web server (localhost) from Android application.
- request web page using http GET method
- send data to a web page using QueryString parameters
- request web page and send data to it using http POST method
See how you can check in your code if your Android application is running in debug or release mode.
If you found that your R (resource) generated class in Android project have errors you will want to force Eclipse to rebuild that class. To force Eclipse to rebuild generated resource class (R), you just need to click on Project->Clean menu, and then select which projects you want to clean.
In my case rebuilding generated class did not helped because there was error in my XML layout file and class again had the same error. So if you ever have error in your R (resource) generated class, it is better to first check your error log and find where in the layout or resource files you have error. Usual error is wrongly named resource id of control. After you fix that error and save changes error in R class will usually disappear.
Here you can download simple program I made for keeping my DNN site alive.
What you should know abot textures before get started programming your first game.
Script for creating Android icons for different screen resolutions at once. Icons can be saved using standard Android icons naming conventions and saved in appropriate folders.
Source code with examples how to use relative layout to create nice buttons with text and images in Android
Tutorial about connecting to the web pages on the Internet from Android application, using both POST and GET web requests.