PabloK / AsciiSoccer

A Soccer game for the web browser
0 stars 0 forks source link

A button to turn on/off music that affects user settings #22

Closed PabloK closed 11 years ago

PabloK commented 11 years ago

A button is needed to turn sound on and off. This button should affect user settings and should be loaded trough the gameConfig settings into the game. It should be settable in game as well as under user settings. The in game setter will have to use Ajax to update the user setting.

midestad commented 11 years ago

Left to do: Update the user settings during game play (audio) using Ajax.

PabloK commented 11 years ago

Do you know how to continue?

To start with change the user model to contain a Bolean setting for this. Then create a function for toggling it in the user model. Then create a controller that can be called using ajax it should be located in the settings controler preferably. After that you should also make a check box in the settings view and change the settings controler to update this as well. When all that is done you have to make sure that the users settings propagates to the game view.

If you have any questions email me. Im home sick today but I will be here programing a litte.

PabloK commented 11 years ago

Some styling of the checknbox is needed but otherwise nice job!