What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
I am in process of making prototype for a new game. I am using tile based map system, so i have array 20×15 which represent map, 0 is floor, 1 is wall, 2 is laser, 3 are doors, etc..
My question is how can i edit parameter of each tile in a way that they are represented in array map. Should I use object for tile properties or there is better way?
I want to achieve that my tiles are customizable so that i can have some lasers thar can rotate and some that cant, etc…
If one laser can rotate and another can’t, I would give them the same class, and just make a boolean to define whether it can or can’t rotate. You’ll need a different number in your array for each type though. (3 for stationary laser, 4 for rotating laser)
If you want each tile to be able to hold a bunch of information, you’ll need to make each tile an object yes, since if you save the tile as an Int you wouldn’t be able to stuff anymore information in there (unless you use some trick like having a second array for tiledata).