Class: Termfront::Enemy::Crawler
- Inherits:
-
Base
- Object
- Base
- Termfront::Enemy::Crawler
show all
- Defined in:
- lib/termfront/enemy/crawler.rb
Constant Summary
Constants inherited
from Base
Base::DIFFICULTIES
Instance Attribute Summary
Attributes inherited from Base
#alive, #hp, #last_fire, #max_hp, #wp_a, #wp_b, #wp_dir, #wp_t, #x, #y
Instance Method Summary
collapse
Methods inherited from Base
build, #dead?, generate_extras, #initialize, #patrol, register, registry, #take_damage, #update
Instance Method Details
#base_hp ⇒ Object
13
|
# File 'lib/termfront/enemy/crawler.rb', line 13
def base_hp = 1
|
#cooldown ⇒ Object
8
|
# File 'lib/termfront/enemy/crawler.rb', line 8
def cooldown = 1.5
|
#damage ⇒ Object
6
|
# File 'lib/termfront/enemy/crawler.rb', line 6
def damage = 10
|
#drop_ammo ⇒ Object
11
|
# File 'lib/termfront/enemy/crawler.rb', line 11
def drop_ammo = 60
|
#drop_type ⇒ Object
10
|
# File 'lib/termfront/enemy/crawler.rb', line 10
def drop_type = :shock_pistol
|
#range ⇒ Object
7
|
# File 'lib/termfront/enemy/crawler.rb', line 7
def range = 5.0
|
#speed ⇒ Object
9
|
# File 'lib/termfront/enemy/crawler.rb', line 9
def speed = 1.8
|
#sprite_id ⇒ Object
12
|
# File 'lib/termfront/enemy/crawler.rb', line 12
def sprite_id = :crawler
|