ERM - Terran HD Graphic Assets

by heyqule

ERM - Terran 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
2.56K
Owner:
heyqule
Source:
https://github.com/heyqule/erm_terran...
Homepage:
N/A
License:
Various, see below description
Created:
8 months ago
Latest Version:
1.1.0 (8 months ago)
Factorio version:
1.1
Downloaded by:
2.56K users

ERM Terran HD Assets

ERM Terran HD Assets

Notice:

I noticed a few errors in animation_db. They will be fixed in the next release.

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?

  1. Add erm_terran_hd_assets as your mod dependency in info.json
{
  "factorio_version": "1.1",
  "dependencies": [
    "erm_terran_hd_assets >= 1.0.0"
  ]
}
  1. Using assets within your mod. Here is a list of possible animations animation_api_calls.lua
--- Include graphics in your mods file
local TerranAnimation = require('__erm_terran_hd_assets__/animation_db')

--- Entity_Type, Name, Animation_Type, Unit_Scale(optional)
unit['animations'] = TerranAnimation.get_layer_animation('unit','zealot','run')


-- Single layer animation
projectile['animation'] = TerranAnimation.get_single_animation('projectiles','shield_battery','explosion')


-- What if i want to change the properties of the animation?
local animation = TerranAnimation.get_single_animation('projectile','shield_battery', 'explosion')
animation['unit_scale'] = 5
projectile['animation'] = animation

-- What if i want to change the properties of the multi layer animation?
local animation = TerranAnimation.get_layer_animation('unit','zealot','run')
for index, _ in pairs(animation['layer']) do
    animation['layer'][index]['unit_scale'] = 5    
end
projectile['animation'] = animation

--- Include Sound, see the class for details 
local TerranSound = require('__erm_terran_hd_assets__/sound')
unit['dying_sound'] = TerranSound.enemy_death('zealot', 1.0)


--- Linking icons
{
    icon = "__erm_terran_hd_assets__/graphics/entity/icons/units/zealot.png",
    icon_size = 64,
}