Need someone to point me in the right direction
Posted: Wed Jan 19, 2011 10:57 pm
Ok, i have the whole register and confirmation and login system working like it should. now i have some questions on what or how to do some things, and ill be good 
(in my game you start with a city and some resources, and you build up and train troops.)
1) ok, first buildings. How should i store that data?
a) the table that i have in mysql are these:
users-(fields) id, username, password, points, mycities(total amount of cities this player has), and email
resources-(fields) id (Auto inc.), userid, city name, wood, stone, iron, food, gold, happiness, loyalty
b) so like i need to know were or how to store these things: (diff building types and the costs to upgrade them, the players building he/she has built and their lvls) like should those things be diff tables, or included in some tables?
2) also ok after the player signs in, he/she is then redirected to the city view. ok its hard to explain wht i need here, but ill try my best. so when the player starts the city will already have a couple buildings they start with (town hall, ware house, ...) the rest of the spots aren't going to have anything there and be blank building areas. so i am wondering how do i code this? like im not looking or asking someone to just type me a whole code or anything, but just explain kinda, and just set me in the right direction.
(in my game you start with a city and some resources, and you build up and train troops.)
1) ok, first buildings. How should i store that data?
a) the table that i have in mysql are these:
users-(fields) id, username, password, points, mycities(total amount of cities this player has), and email
resources-(fields) id (Auto inc.), userid, city name, wood, stone, iron, food, gold, happiness, loyalty
b) so like i need to know were or how to store these things: (diff building types and the costs to upgrade them, the players building he/she has built and their lvls) like should those things be diff tables, or included in some tables?
2) also ok after the player signs in, he/she is then redirected to the city view. ok its hard to explain wht i need here, but ill try my best. so when the player starts the city will already have a couple buildings they start with (town hall, ware house, ...) the rest of the spots aren't going to have anything there and be blank building areas. so i am wondering how do i code this? like im not looking or asking someone to just type me a whole code or anything, but just explain kinda, and just set me in the right direction.