This script works well while in Unity Editor
GameObject obj = new GameObject("MyObject");
MyScript s = obj.AddComponent();
But when calling it in a Android APK it return a Null Pointer Reference error when calling MethodThatInstantiateSomething, at the line where Instantiate() is called.
In the last two weeks I’ve beeen working on a pseudo random map generator for my next game. After discarding a big pack of work, I think I’m finally going the right direction.
The program takes a random, or user defined, seed and from there it start making a map. The map will never exceeds its borders, making it optimal for indoor map generation. From the same seed it will always create the same map, Billions maps will take the same amount of space on hard disk as two or three. This will allow player to replay the maps they like or share them with other players just by sharing sharing the map seed. In a multiplayer experience (which my game will not probably be, but who knows?) it will allow everyone on the same server to play with exactly the same nearly-infinte maps without having to send huge amounts of data over the net.
It’s still basic and I need to add some other stuff like multi-floor generation and odd building shapes. This is lots of work to do, but hey, everything has to start somewhere!
Meanwhile you can play around with it here.
I’ve completed a bunch of tools for drawing sprites from 2D tiled sheets. This is a cheap toolset (roughly 300 lines of code) and I’m sure there are better ones around, but I find it pretty fast to use in my projects and I will probably use it in my smallest 2D projects. This tool supports pixel perfect sprites and dynamic batching from sprites coming from the same spritesheet.
My tools are licensed under BDS-3 Clause and can be used freely for both free and commercial projects.
You can clone it from BitBucket or GitHub
Or you can download it here:
2DTools (884 downloads)
Look next page for old versions: