mirror of
https://github.com/Oreolek/shooter.git
synced 2024-05-02 00:49:19 +03:00
30 lines
831 B
CoffeeScript
30 lines
831 B
CoffeeScript
|
|
qualities
|
|
head:
|
|
bullets: qualities.integer("bullets".l()),
|
|
clips: qualities.integer("clips".l()),
|
|
enemies: qualities.integer("enemies".l()),
|
|
|
|
undum.game.init = (character, system) ->
|
|
system.setQuality("bullets", 6)
|
|
system.setQuality("clips", 6)
|
|
system.setQuality("enemies", 35)
|
|
character.sandbox.clips = [6,6,6,6,6,6]
|
|
character.sandbox.current_clip = 0
|
|
character.sandbox.nicked = 0
|
|
character.sandbox.seen_reload = 0
|
|
character.sandbox.seen_search = 0
|
|
character.sandbox.trick_shot = 0
|
|
character.sandbox.shots = 0
|
|
character.sandbox.killed = 0
|
|
character.sandbox.seen_pacifist = 0
|
|
character.sandbox.shot_pacifist = undefined
|
|
$("#title").click(() ->
|
|
$("#clip").fadeIn()
|
|
)
|
|
# setInterval( () ->
|
|
# console.log( 'Character object:', character )
|
|
#, 1000 );
|
|
|
|
window.onload = undum.begin
|