ERM - Zerg HD Graphic Assets

by heyqule

ERM - Zerg HD Graphic Assets. PLEASE DO NOT COPY THESE ASSETS TO YOUR OWN MODS. You should use mod dependencies if you plan to use these assets. HD asset duplication is bad for game performance! Visit detail page for integration details

Internal
8 months ago
1.1
12.1K
Owner:
heyqule
Source:
https://github.com/heyqule/erm_zerg_hd_assets
Homepage:
N/A
License:
Various, see below description
Created:
9 months ago
Latest Version:
1.2.1 (8 months ago)
Factorio version:
1.1
Downloaded by:
12.1K users

ERM Zerg HD

ERM Zerg HD graphic assets.

PLEASE DO NOT COPY THESE ASSETS TO YOUR OWN MODS. Please use mod dependencies if you plan to use these assets. HD asset duplication is bad for game performance!

Licenses

Lua code files are licensed under GNU LGPLv3

However, Starcraft graphic and sound assets are properties of Blizzard Entertainment Inc. They are used for educational purposes. The original game is now free to play.

Credits
  • Code by SHlNZ0U & heyqule
  • Graphic extraction by SHlNZ0U

How to use?

Add erm_zerg_hd_assets as your mod dependency in info.json

{
  "factorio_version": "1.1",
  "dependencies": [
    "erm_zerg_hd_assets >= 1.0.0"
  ]
}

Using assets within your mod, Here is a list of possible animations animation_api_calls.lua

--- Include graphics in your mods file
local ZergAnimation = require('__erm_zerg_hd_assets__/animation_db')

--- Calling the multiple layer animations by Entity_Type, Name, Animation_Type, Unit_Scale(optional)
unit['animations'] = ZergAnimation.get_layer_animation('unit','zergling','run')

-- Single layer animation
projectile['animation'] = ZergAnimation.get_single_animation('projectiles','spore1','projectile')

What if I want to change the properties of the animation?

local animation = ZergAnimation.get_single_animation('projectile','spore1')
animation['unit_scale'] = 5
projectile['animation'] = animation

What if i want to change the properties of the multi layer animation?

local animation = ZergAnimation.get_layer_animation('unit','zergling','run')
for index, _ in pairs(animation['layer']) do
    animation['layer'][index]['unit_scale'] = 5    
end
projectile['animation'] = animation

What if you don't like my animation setup.
you can link the assets directly to your animation and then define your own parameters.

{
    filename = '__erm_zerg_hd_assets__/graphics/entity/units/broodling/broodling-attack.png'
}

Include Sound, see the class for details

local ZergSound = require('__erm_zerg_hd_assets__/sound')
unit['dying_sound'] = ZergSound.enemy_death('zergling', 1.0)

Use the creep on other buildings

building['spawn_decoration'] = {
    {
        decorative = "creep-decal",
        spawn_min = 3,
        spawn_max = 5,
        spawn_min_radius = 2,
        spawn_max_radius = 7
    },
    {
        decorative = "creep-decal-transparent",
        spawn_min = 4,
        spawn_max = 20,
        spawn_min_radius = 2,
        spawn_max_radius = 14,
        radius_curve = 0.9
    }
}

--- Linking icons

{
    icon = "__erm_zerg_hd_assets__/graphics/entity/icons/units/zergling.png",
    icon_size = 64,
}