I have read some tutorials on the website and some forum post. Unfortunately, I am teaching myself on most of the stuff.
I have an idea, but can't seem to find to proper to do it. I am still trying to wrap my head around the Array...
I want to do a game that on start it would generate a first random sprite (grass tile or on of the many street tiles).
Each of those would have a condition of what can be next to it.
ie: To create one street section I have 2 tiles of 128px each. So each side of the street is a tile.
I want to tell the array that is it has the right side (frame #) in XY it needs the left side next to it (frame #).
What I want to know:
1- How do I tell the array to choose a random sprite frame in XY
2- How to had conditions to that, so the map actually looks like a city.
3- I just need to be hint on what direction to take to make this happen.
Here is an example of the game. I placed the sprites manually (use WASD to move, hold Shift to sprint):
Here are the sprites I want to use (the street is 12 wide):
Hopefully you guys can point me in the right direction. All help is greatly appreciated.