Tag Info

Hot answers tagged

3

The simple answer is that in general, your levels should be defined as data, and your code should be the same for all levels, it just reads the data to know what to do.


1

If you are creating a 2D game with tiles you can easily implement your own culling which is a lot cheaper since you only itterate over exactly what you need within your tile array. Things you should know: Camera location Viewport width/height Tile width/height Now we can calculate how many tiles should be drawn. Total horizontal tiles on screen = ...


1

A ready to use method which is better than SystemInfo.operatingSystem : public int GetSDKLevel() { var clazz = AndroidJNI.FindClass("android.os.Build$VERSION"); var fieldID = AndroidJNI.GetStaticFieldID(clazz, "SDK_INT", "I"); var sdkLevel = AndroidJNI.GetStaticIntField(clazz, fieldID); return sdkLevel; } Just copy and paste and that's ...


1

You don't need the pro license to release games for any platform. You just have to upgrade if you made more than 100k in funding or revenue. I believe paid advertisements can be done with the free version. https://unity3d.com/unity/faq


1

Try this: package com.mycompany.mygame; import com.badlogic.gdx.*; import com.badlogic.gdx.graphics.*; import com.badlogic.gdx.graphics.g2d.*; import com.badlogic.gdx.math.*; public class MyGdxGame implements ApplicationListener { public float x; public float y; public float w = 50; public float h = 50; Texture texture; ...


1

As it turns out, you can't interrupt a touch gesture within the normal scope of how Android operates. It might be possible if you do serious hacking on the source code, way deep down in the Choreography class and some of the core classes, which is NOT advisable, but even then it may not work. What you (or I; weird answering my own question) most likely need ...


1

JSON Philipp makes a good point about JSON. It is human readable and makes debugging network code easy. If you have no experience in programming network code, this would be the way to go. Yes, there is a lot of overhead by using JSON, but for small to medium data transfers, it should be more than enough. And like Alexandre Vaillancourt said, you can always ...



Only top voted, non community-wiki answers of a minimum length are eligible