Class: Pugnacious::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/pugnacious/application.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#number_of_moleculesObject

Returns the value of attribute number_of_molecules.



6
7
8
# File 'lib/pugnacious/application.rb', line 6

def number_of_molecules
  @number_of_molecules
end

Class Method Details

.run(argv) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/pugnacious/application.rb', line 7

def self.run(argv)            
  Ray.game "Pugnacious Juices", :size => [MAP_SIZE, MAP_SIZE] do
    register { add_hook :quit, method(:exit!) }
    
    number_of_molecules = argv[0].to_i | 250

    FightScene.bind(self)
    push_scene(:fight_scene, number_of_molecules)
  end
end