I recently started on creating a 'game' using PHP and a mysql database. In this game, there are ships, which each player can build and control.
Right now I have several this set up in my database like this:
Ships table, contains there columns:
ID, name, credits cost, mineral cost, building time, description, speed, power, shield
The users table holds:
Ship_01_amount .... ship_08_amount
Where the number corresponds to the id of the ship.
I was wondering if there is a more efficient way of doing this, while not screwing things up.
Since now, if I wish to add a new ship, I have to alter my table.