Skip to content

Commit

Permalink
Some placeholder work for the gazer boss.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettering committed May 12, 2016
1 parent 7b26553 commit b263b37
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/objects/effects/experimental/damage_beam_attache.cfg
Expand Up @@ -14,12 +14,12 @@
taxonomy: "'neutral'",
attack_damage: "int :: if(higher_difficulty, 2, 3)",
team: "string :: 'evil'",
has_mini_hp_bar: "bool :: false",
has_mini_hp_bar: "bool :: false",


beam_angle: { type: "decimal", init: "60.0" },
beam_distance: { type: "decimal", init: "180.0" },
attack_diameter: "decimal :: 40.0",
attack_diameter: { type: "decimal", init: "40.0" },
attack_radius: "decimal :: lib.math.round( attack_diameter / 2.0 )",
hitbox_count: "decimal :: lib.math.ceil(beam_distance / (attack_radius / 1.0))",

Expand Down
38 changes: 36 additions & 2 deletions data/objects/enemies/bosses/gazer_boss.cfg
Expand Up @@ -19,7 +19,7 @@ properties: {
'attack_laser', begin_laser,
), set(me.behavior, choice)])",

begin_laser: "commands :: null",
begin_laser: "commands :: [spawn('gazer_boss.beam', mid_x, mid_y, {parent: me})]",

custom_damage_table: "{
neutral: 1.0,
Expand All @@ -34,12 +34,12 @@ properties: {



on_create: "set_behavior('attack_laser')",

#-------------------------- vars --------------------------#
behavior: { type: "string", default: "", persistent: false },
},

on_create: "set_behavior('attack_laser')",



Expand All @@ -58,5 +58,39 @@ animation: [
},
],

object_type: [
{
id: "beam",
always_active: true,
serializable: false,
zorder: 20,

properties: {
_offset: "0",
beam_length: "64",

draw_w: "img_w/2",
pupil_offset: "-96",
},


on_process: "[
set(relative_x, 0),
set(relative_y, pupil_offset),
set(draw_area, [0, _offset, draw_w, beam_length])
] asserting parent != null",

animation: [{
id: "normal",
image: "enemies/gazer-boss-beam.png",
rect: [0,0,31,63],
frames:1,
duration: 10,
no_remove_alpha_borders: true,
}],

}
],

}
Binary file added images/enemies/gazer-boss-beam.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b263b37

Please sign in to comment.