I have a pattern that is made up of objects.
The game will have different preset patterns and the player will be able to change between pattern1, pattern2, etc.. with a push of a button.
Each object in the pattern has an X and Y value.
Each pattern will have between 9-27 objects stored in it.
So far I only have 1 pattern planned. I will be adding patterns as the game is more developed.
I don't think I can preset data into an array.
Should I store all the patterns in one file or would it be better if every pattern had it's own file to save memory usage?
I know vaguely of JSON and AJAX.
I just need to be pointed in a direction.
How am I able to preset the patterns?
Should I just create a Function for each pattern?
It seems like it may be similar. It isn't read unless called upon.
It would seemingly only increase the amount of events per tick a small bit and the download size.