Thanks a lot for posting this tutorial, I used it to start my first mod.
I think there were a few changes in the 0.12.26 version of entity.lua:
- The energy_per_hit_point attribute now seems to be required:
Code: Select all
dying_explosion = "medium-explosion",
energy_per_hit_point = 1,
crash_trigger = crash_trigger(),
Code: Select all
animation =
{
filename = "__Mod__/graphics/entity/bomber-sheet.png",
priority = "high",
width = 140,
height = 110,
frame_count = 1,
line_length = 8,
direction_count = 64,
shift={0.5, 0},
},