equal
deleted
inserted
replaced
11 -- At first we implement the localization library using loadfile. |
11 -- At first we implement the localization library using loadfile. |
12 -- This allows us to localize strings without needing to think |
12 -- This allows us to localize strings without needing to think |
13 -- about translations. |
13 -- about translations. |
14 -- We can use the function loc(text) to localize a string. |
14 -- We can use the function loc(text) to localize a string. |
15 |
15 |
16 loadfile(GetDataPath() .. "Scripts/Locale.lua")() |
16 HedgewarsScriptLoad("/Scripts/Locale.lua") |
17 |
17 |
18 -- This variable will hold the number of destroyed targets. |
18 -- This variable will hold the number of destroyed targets. |
19 local score = 0 |
19 local score = 0 |
20 -- This variable represents the number of targets to destroy. |
20 -- This variable represents the number of targets to destroy. |
21 local score_goal = 5 |
21 local score_goal = 5 |