Skip to content

Commit

Permalink
beta 12 nov 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Priskip committed Nov 12, 2022
1 parent 2cf6267 commit 40089d1
Show file tree
Hide file tree
Showing 53 changed files with 1,411 additions and 1,106 deletions.
370 changes: 13 additions & 357 deletions README.txt

Large diffs are not rendered by default.

370 changes: 370 additions & 0 deletions change_log.txt

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions data/biome/roboroom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
<Biome>
<Topology
name="$biome_robobase_core"
type="BIOME_WANG_TILE"
background_image="data/weather_gfx/background_robobase.png"
background_edge_left="data/weather_gfx/edges/background_robobase_left.png"
background_edge_right="data/weather_gfx/edges/background_robobase_right.png"
background_edge_top="data/weather_gfx/edges/background_robobase_top.png"
background_edge_bottom="data/weather_gfx/edges/background_robobase_bottom.png"
background_edge_priority="10"
wang_template_file=""
lua_script="data/scripts/biomes/roboroom.lua"
wang_map_width="256"
wang_map_height="256"
limit_background_image="0"
audio_music_2="vault"
audio_music_energy_coeff="1"
audio_ambience="vault"
>
<BitmapCaves
size_x="256"
size_y="256"
spawn_percent="0"
blob_caves_count_min="0"
blob_caves_count_max="1"
blob_caves_radius_min="1"
blob_caves_radius_max="1"
blob_caves_strength_min="1.2"
blob_caves_strength_max="2"
cave_childs_min="0"
cave_childs_max="1"
cave_count_min="1"
cave_count_max="2"
cave_strength_min="0.2"
cave_strength_max="1.8"
mountain_count_min="0"
mountain_count_max="0"
mountain_size_min="1"
mountain_size_max="10"
surface_cave_childs_min="0"
surface_cave_childs_max="0"
surface_caves_count_min="0"
surface_caves_count_max="0"
></BitmapCaves>
</Topology>

<Materials name="robobase">
<MaterialComponent
_enabled="1"
is_rare="1"
limit_max_y="2048"
limit_min_y="100"
limit_y="0"
material_index="10"
material_max="0.46"
material_min="0.443701"
material_name="gold"
rare_polka_is_boxed="0"
rare_polka_probability="0.960871"
rare_polka_radius_high="0.771429"
rare_polka_radius_low="0.357143"
rare_required_max="10"
rare_required_min="0"
rare_scale_x="0.0100004"
rare_scale_y="0.00357165"
rare_use_perlin="0"
rare_use_polka="1"
></MaterialComponent>

<MaterialComponent
_enabled="1"
is_rare="0"
limit_max_y="424.229"
limit_min_y="-1024"
limit_y="1"
material_index="10"
material_max="0.53"
material_min="0.45"
material_name="soil"
rare_polka_is_boxed="1"
rare_polka_probability="0.2"
rare_polka_radius_high="0.65"
rare_polka_radius_low="0.2"
rare_required_max="10"
rare_required_min="0.2"
rare_scale_x="0.05"
rare_scale_y="0.05"
rare_use_perlin="0"
rare_use_polka="1"
></MaterialComponent>

<MaterialComponent
_enabled="1"
is_rare="0"
limit_max_y="2048"
limit_min_y="100"
limit_y="0"
material_index="10"
material_max="0.95"
material_min="0.53"
material_name="rock_static_grey"
rare_polka_is_boxed="1"
rare_polka_probability="0.2"
rare_polka_radius_high="0.65"
rare_polka_radius_low="0.2"
rare_required_max="10"
rare_required_min="0.2"
rare_scale_x="0.05"
rare_scale_y="0.05"
rare_use_perlin="0"
rare_use_polka="1"
></MaterialComponent>

<MaterialComponent
_enabled="1"
is_rare="1"
limit_max_y="2048"
limit_min_y="100"
limit_y="0"
material_index="10"
material_max="1.2"
material_min="1.1"
material_name="radioactive_liquid"
rare_polka_is_boxed="1"
rare_polka_probability="0.357143"
rare_polka_radius_high="0.464286"
rare_polka_radius_low="0.2428571"
rare_required_max="10"
rare_required_min="0.371429"
rare_scale_x="0.0214286"
rare_scale_y="0.0214286"
rare_use_perlin="0"
rare_use_polka="1"
></MaterialComponent>

<MaterialComponent
_enabled="1"
is_rare="0"
limit_max_y="2048"
limit_min_y="100"
limit_y="0"
material_index="10"
material_max="3.5"
material_min="0.9"
material_name="rock_static"
rare_polka_is_boxed="1"
rare_polka_probability="0.2"
rare_polka_radius_high="0.65"
rare_polka_radius_low="0.2"
rare_required_max="10"
rare_required_min="0.2"
rare_scale_x="0.05"
rare_scale_y="0.05"
rare_use_perlin="0"
rare_use_polka="1"
></MaterialComponent>

<!-- this is for the FREEZING biome modifier. tree_probability should initially be 0 -->
<VegetationComponent
_enabled="1"
is_visual="1"
rand_seed="8376.86"
tree_extra_y="0"
tree_image_file=""
tree_image_visual=""
tree_material="snow"
tree_probability="0"
tree_radius_high="0.414286"
tree_radius_low="0.228571"
tree_width="76.1143"
visual_color="0xffb89f6c"
visual_offset_x="3"
visual_offset_y="7.5"
is_grass="1"
grass_requires_neighbors="1"
material_on_top_of="steelmoss_static"
></VegetationComponent>

<VegetationComponent
_enabled="1"
is_visual="1"
rand_seed="1248"
tree_extra_y="0"
tree_image_file="data/vegetation/vine_growth_1.xml"
tree_image_visual=""
tree_material="ceiling_plant_material"
tree_probability="0.24571"
tree_radius_high="0.635286"
tree_radius_low="0.146757"
tree_width="110.123"
visual_color="0x00b89f6c"
visual_offset_x="3"
visual_offset_y="0"
is_ceiling_plant="1"
></VegetationComponent>
<VegetationComponent
_enabled="1"
is_visual="1"
rand_seed="4575"
tree_extra_y="0"
tree_image_file="data/vegetation/ceiling_vegetation_00$[2-8].png"
tree_image_visual=""
tree_material="ceiling_plant_material"
tree_probability="0.54571"
tree_radius_high="0.635286"
tree_radius_low="0.146757"
tree_width="11.123"
visual_color="0x00b89f6c"
visual_offset_x="0"
visual_offset_y="0"
is_ceiling_plant="1"
></VegetationComponent>
<VegetationComponent
_enabled="1"
is_visual="1"
rand_seed="315"
tree_extra_y="0"
tree_image_file="data/vegetation/hanger_$[1-4].png"
tree_image_visual=""
tree_material="ceiling_plant_material"
tree_probability="0.84571"
tree_radius_high="0.335286"
tree_radius_low="0.146757"
tree_width="6.123"
visual_color="0x00b89f6c"
visual_offset_x="0"
visual_offset_y="0"
is_ceiling_plant="1"
></VegetationComponent>

</Materials>

</Biome>
54 changes: 3 additions & 51 deletions data/entities/animals/boss_alchemist/boss_alchemist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</VariableStorageComponent>

<VariableStorageComponent
name="boss_bar_type"
value_string="SINGLE"
name="boss_bar_position"
value_string="CENTER"
>
</VariableStorageComponent>

Expand All @@ -29,6 +29,7 @@
value_string="$animal_boss_alchemist"
>
</VariableStorageComponent>
<!-- /Custom Boss HP Bar -->

<Base file="data/entities/base_enemy_basic.xml" >
<ItemChestComponent level="2" > </ItemChestComponent>
Expand Down Expand Up @@ -231,53 +232,4 @@
</GameEffectComponent >
</Entity>

<SpriteComponent
_tags="health_bar_back,ui"
_enabled="1"
transform_offset.x="0"
transform_offset.y="-26"
alpha="1"
has_special_scale="1"
image_file="data/ui_gfx/health_slider_back.png"
is_text_sprite="0"
next_rect_animation=""
offset_x="12"
offset_y="42"
rect_animation=""
special_scale_x="1"
special_scale_y="1"
ui_is_parent="0"
update_transform="1"
visible="1"
emissive="1"
never_ragdollify_on_death="1"
z_index="-9000" >
</SpriteComponent>

<SpriteComponent
_tags="health_bar,ui"
_enabled="1"
alpha="1"
transform_offset.x="0"
transform_offset.y="-26"
has_special_scale="1"
image_file="data/ui_gfx/health_slider_front.png"
is_text_sprite="0"
next_rect_animation=""
offset_x="12"
offset_y="42"
rect_animation=""
special_scale_x="1"
special_scale_y="1"
ui_is_parent="0"
update_transform="1"
visible="1"
emissive="1"
never_ragdollify_on_death="1"
z_index="-9000" >
</SpriteComponent>

<HealthBarComponent>
</HealthBarComponent>

</Entity>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
dofile_once("data/scripts/lib/utilities.lua")

function damage_received(damage)
local entity_id = GetUpdatedEntityID()
local x, y = EntityGetTransform(entity_id)
local nearby_ents = EntityGetInRadius(x, y, 50)

local num_of_shield_ents = 0

for i, ent_id in ipairs(nearby_ents) do
if EntityGetFilename(ent_id) == "data/entities/animals/boss_alchemist/projectile_counter.xml" then
num_of_shield_ents = num_of_shield_ents + 1
end
end

if num_of_shield_ents < 10 then
--Creates a cap on the number of shields to avoid piercing wands on this dude lagging out the game
local cumulative = 0.0
local dcomp = 0

local s = EntityGetComponent(entity_id, "VariableStorageComponent")
if (s ~= nil) then
for i, v in ipairs(s) do
local name = ComponentGetValue2(v, "name")

if (name == "damage_received") then
cumulative = ComponentGetValue2(v, "value_float")

cumulative = cumulative + damage

ComponentSetValue2(v, "value_float", cumulative)
dcomp = v
end
end
end

if (damage >= 2.0) or (cumulative >= 3.0) then
local x, y = EntityGetTransform(entity_id)

local eid = EntityLoad("data/entities/animals/boss_alchemist/projectile_counter.xml", x, y)
EntityAddChild(entity_id, eid)

if (dcomp ~= NULL_ENTITY) then
cumulative = cumulative - 3.0
ComponentSetValue2(dcomp, "value_float", cumulative)
end
end
end
end
5 changes: 3 additions & 2 deletions data/entities/animals/boss_pit/boss_pit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</VariableStorageComponent>

<VariableStorageComponent
name="boss_bar_type"
value_string="SINGLE"
name="boss_bar_position"
value_string="CENTER"
>
</VariableStorageComponent>

Expand All @@ -29,6 +29,7 @@
value_string="$animal_boss_pit"
>
</VariableStorageComponent>
<!-- /Custom Boss HP Bar -->

<!-- art - main body -->
<LightComponent
Expand Down
Loading

0 comments on commit 40089d1

Please sign in to comment.