Level1.lua 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872
  1. -- Load a different tilemap image depending on the current system time
  2. local current_system_hour = os.date("*t").hour
  3. -- Use a day-map or night-map texture (9am - 6pm)
  4. local map_texture_asset_id
  5. if current_system_hour >= 9 and current_system_hour < 18 then
  6. map_texture_asset_id = "tilemap-texture-day"
  7. else
  8. map_texture_asset_id = "tilemap-texture-night"
  9. end
  10. -- Define a table with the start values of the first level
  11. Level = {
  12. ----------------------------------------------------
  13. -- Table to define the list of assets
  14. ----------------------------------------------------
  15. assets = {
  16. [0] =
  17. { type = "texture", id = "tilemap-texture-day", file = "./assets/tilemaps/jungle.png" },
  18. { type = "texture", id = "tilemap-texture-night", file = "./assets/tilemaps/jungle-night.png" },
  19. { type = "texture", id = "chopper-texture", file = "./assets/images/chopper-green-spritesheet.png" },
  20. { type = "texture", id = "su27-texture", file = "./assets/images/su27-spritesheet.png" },
  21. { type = "texture", id = "f22-texture", file = "./assets/images/f22-spritesheet.png" },
  22. { type = "texture", id = "fw190-texture", file = "./assets/images/fw190-spritesheet.png" },
  23. { type = "texture", id = "upf7-texture", file = "./assets/images/upf7-spritesheet.png" },
  24. { type = "texture", id = "bf109-texture", file = "./assets/images/bf109-spritesheet.png" },
  25. { type = "texture", id = "bomber-texture", file = "./assets/images/bomber-spritesheet.png" },
  26. { type = "texture", id = "carrier-texture", file = "./assets/images/carrier.png" },
  27. { type = "texture", id = "boat-texture", file = "./assets/images/boat.png" },
  28. { type = "texture", id = "tank-tiger-up-texture", file = "./assets/images/tank-tiger-up.png" },
  29. { type = "texture", id = "tank-tiger-right-texture", file = "./assets/images/tank-tiger-right.png" },
  30. { type = "texture", id = "tank-tiger-down-texture", file = "./assets/images/tank-tiger-down.png" },
  31. { type = "texture", id = "tank-tiger-left-texture", file = "./assets/images/tank-tiger-left.png" },
  32. { type = "texture", id = "tank-tiger-killed-texture", file = "./assets/images/tank-tiger-killed.png" },
  33. { type = "texture", id = "tank-panther-up-texture", file = "./assets/images/tank-panther-up.png" },
  34. { type = "texture", id = "tank-panther-right-texture", file = "./assets/images/tank-panther-right.png" },
  35. { type = "texture", id = "tank-panther-down-texture", file = "./assets/images/tank-panther-down.png" },
  36. { type = "texture", id = "tank-panther-left-texture", file = "./assets/images/tank-panther-left.png" },
  37. { type = "texture", id = "tank-panther-killed-texture", file = "./assets/images/tank-panther-killed.png" },
  38. { type = "texture", id = "truck-ford-up-texture", file = "./assets/images/truck-ford-up.png" },
  39. { type = "texture", id = "truck-ford-right-texture", file = "./assets/images/truck-ford-right.png" },
  40. { type = "texture", id = "truck-ford-down-texture", file = "./assets/images/truck-ford-down.png" },
  41. { type = "texture", id = "truck-ford-left-texture", file = "./assets/images/truck-ford-left.png" },
  42. { type = "texture", id = "truck-ford-killed-texture", file = "./assets/images/truck-ford-killed.png" },
  43. { type = "texture", id = "army-walk-up-texture", file = "./assets/images/army-walk-up.png" },
  44. { type = "texture", id = "army-walk-right-texture", file = "./assets/images/army-walk-right.png" },
  45. { type = "texture", id = "army-walk-down-texture", file = "./assets/images/army-walk-down.png" },
  46. { type = "texture", id = "army-walk-left-texture", file = "./assets/images/army-walk-left.png" },
  47. { type = "texture", id = "army-walk-killed-texture", file = "./assets/images/army-walk-killed.png" },
  48. { type = "texture", id = "army-gun-up-texture", file = "./assets/images/army-gun-up.png" },
  49. { type = "texture", id = "army-gun-right-texture", file = "./assets/images/army-gun-right.png" },
  50. { type = "texture", id = "army-gun-down-texture", file = "./assets/images/army-gun-down.png" },
  51. { type = "texture", id = "army-gun-left-texture", file = "./assets/images/army-gun-left.png" },
  52. { type = "texture", id = "army-gun-killed-texture", file = "./assets/images/army-walk-killed.png" },
  53. { type = "texture", id = "sam-truck-right-texture", file = "./assets/images/sam-truck-right.png" },
  54. { type = "texture", id = "sam-tank-left-texture", file = "./assets/images/sam-tank-left-spritesheet.png" },
  55. { type = "texture", id = "sam-tank-right-texture", file = "./assets/images/sam-tank-right-spritesheet.png" },
  56. { type = "texture", id = "takeoff-base-texture", file = "./assets/images/takeoff-base.png" },
  57. { type = "texture", id = "landing-base-texture", file = "./assets/images/landing-base.png" },
  58. { type = "texture", id = "runway-texture", file = "./assets/images/runway.png" },
  59. { type = "texture", id = "obstacles1-texture", file = "./assets/images/obstacles-1.png" },
  60. { type = "texture", id = "obstacles2-texture", file = "./assets/images/obstacles-2.png" },
  61. { type = "texture", id = "obstacles3-texture", file = "./assets/images/obstacles-3.png" },
  62. { type = "texture", id = "obstacles4-texture", file = "./assets/images/obstacles-4.png" },
  63. { type = "texture", id = "obstacles5-texture", file = "./assets/images/obstacles-5.png" },
  64. { type = "texture", id = "obstacles6-texture", file = "./assets/images/obstacles-6.png" },
  65. { type = "texture", id = "obstacles7-texture", file = "./assets/images/obstacles-7.png" },
  66. { type = "texture", id = "tree1-texture", file = "./assets/images/tree-1.png" },
  67. { type = "texture", id = "tree2-texture", file = "./assets/images/tree-2.png" },
  68. { type = "texture", id = "tree3-texture", file = "./assets/images/tree-3.png" },
  69. { type = "texture", id = "tree4-texture", file = "./assets/images/tree-4.png" },
  70. { type = "texture", id = "tree5-texture", file = "./assets/images/tree-5.png" },
  71. { type = "texture", id = "tree6-texture", file = "./assets/images/tree-6.png" },
  72. { type = "texture", id = "tree7-texture", file = "./assets/images/tree-7.png" },
  73. { type = "texture", id = "tree8-texture", file = "./assets/images/tree-8.png" },
  74. { type = "texture", id = "tree9-texture", file = "./assets/images/tree-9.png" },
  75. { type = "texture", id = "tree10-texture", file = "./assets/images/tree-10.png" },
  76. { type = "texture", id = "tree11-texture", file = "./assets/images/tree-11.png" },
  77. { type = "texture", id = "tree12-texture", file = "./assets/images/tree-12.png" },
  78. { type = "texture", id = "tree13-texture", file = "./assets/images/tree-13.png" },
  79. { type = "texture", id = "tree14-texture", file = "./assets/images/tree-14.png" },
  80. { type = "texture", id = "tree15-texture", file = "./assets/images/tree-15.png" },
  81. { type = "texture", id = "tree16-texture", file = "./assets/images/tree-16.png" },
  82. { type = "texture", id = "tree17-texture", file = "./assets/images/tree-17.png" },
  83. { type = "texture", id = "tree18-texture", file = "./assets/images/tree-18.png" },
  84. { type = "texture", id = "tree19-texture", file = "./assets/images/tree-19.png" },
  85. { type = "texture", id = "tree20-texture", file = "./assets/images/tree-20.png" },
  86. { type = "texture", id = "bullet-texture", file = "./assets/images/bullet.png" },
  87. { type = "texture", id = "radar-texture", file = "./assets/images/radar-spritesheet.png" },
  88. { type = "font" , id = "pico8-font-5", file = "./assets/fonts/pico8.ttf", font_size = 5 },
  89. { type = "font" , id = "pico8-font-10", file = "./assets/fonts/pico8.ttf", font_size = 10 }
  90. },
  91. ----------------------------------------------------
  92. -- table to define the map config variables
  93. ----------------------------------------------------
  94. tilemap = {
  95. map_file = "./assets/tilemaps/jungle.map",
  96. texture_asset_id = map_texture_asset_id,
  97. num_rows = 20,
  98. num_cols = 25,
  99. tile_size = 32,
  100. scale = 2.0
  101. },
  102. ----------------------------------------------------
  103. -- table to define entities and their components
  104. ----------------------------------------------------
  105. entities = {
  106. [0] =
  107. {
  108. -- Player
  109. tag = "player",
  110. components = {
  111. transform = {
  112. position = { x = 242, y = 110 },
  113. scale = { x = 1.0, y = 1.0 },
  114. rotation = 0.0, -- degrees
  115. },
  116. rigidbody = {
  117. velocity = { x = 0.0, y = 0.0 }
  118. },
  119. sprite = {
  120. texture_asset_id = "chopper-texture",
  121. width = 32,
  122. height = 32,
  123. z_index = 4,
  124. fixed = false,
  125. src_rect_x = 0,
  126. src_rect_y = 0
  127. },
  128. animation = {
  129. num_frames = 2,
  130. speed_rate = 10 -- fps
  131. },
  132. boxcollider = {
  133. width = 32,
  134. height = 25,
  135. offset = { x = 0, y = 5 }
  136. },
  137. health = {
  138. health_percentage = 100
  139. },
  140. projectile_emitter = {
  141. projectile_velocity = { x = 200, y = 200 },
  142. projectile_duration = 10, -- seconds
  143. repeat_frequency = 0, -- seconds
  144. hit_percentage_damage = 10,
  145. friendly = true
  146. },
  147. keyboard_controller = {
  148. up_velocity = { x = 0, y = -50 },
  149. right_velocity = { x = 50, y = 0 },
  150. down_velocity = { x = 0, y = 50 },
  151. left_velocity = { x = -50, y = 0 }
  152. },
  153. camera_follow = {
  154. follow = true
  155. }
  156. }
  157. },
  158. {
  159. -- Takeoff base
  160. components = {
  161. transform = {
  162. position = { x = 240, y = 113 },
  163. scale = { x = 1.0, y = 1.0 },
  164. rotation = 0.0, -- degrees
  165. },
  166. sprite = {
  167. texture_asset_id = "takeoff-base-texture",
  168. width = 32,
  169. height = 32,
  170. z_index = 1
  171. }
  172. }
  173. },
  174. {
  175. -- Landing base
  176. components = {
  177. transform = {
  178. position = { x = 1396, y = 493 },
  179. scale = { x = 1.0, y = 1.0 },
  180. rotation = 0.0, -- degrees
  181. },
  182. sprite = {
  183. texture_asset_id = "landing-base-texture",
  184. width = 32,
  185. height = 32,
  186. z_index = 1
  187. }
  188. }
  189. },
  190. {
  191. -- Radar UI animation
  192. group = "ui",
  193. components = {
  194. transform = {
  195. position = { x = 10, y = 10 },
  196. scale = { x = 1.0, y = 1.0 },
  197. rotation = 0.0, -- degrees
  198. },
  199. sprite = {
  200. texture_asset_id = "radar-texture",
  201. width = 64,
  202. height = 64,
  203. z_index = 10,
  204. fixed = true
  205. },
  206. animation = {
  207. num_frames = 8,
  208. speed_rate = 7 -- fps
  209. }
  210. }
  211. },
  212. {
  213. -- Runway
  214. components = {
  215. transform = {
  216. position = { x = 940, y = 65 },
  217. scale = { x = 1.0, y = 1.0 },
  218. rotation = 270.0, -- degrees
  219. },
  220. sprite = {
  221. texture_asset_id = "runway-texture",
  222. width = 21,
  223. height = 191,
  224. z_index = 1
  225. }
  226. }
  227. },
  228. {
  229. -- Runway
  230. components = {
  231. transform = {
  232. position = { x = 470, y = 385 },
  233. scale = { x = 1.0, y = 1.0 },
  234. rotation = 0.0, -- degrees
  235. },
  236. sprite = {
  237. texture_asset_id = "runway-texture",
  238. width = 21,
  239. height = 191,
  240. z_index = 1
  241. }
  242. }
  243. },
  244. {
  245. -- Tank
  246. group = "enemies",
  247. components = {
  248. transform = {
  249. position = { x = 200, y = 497 },
  250. scale = { x = 1.0, y = 1.0 },
  251. rotation = 0.0, -- degrees
  252. },
  253. sprite = {
  254. texture_asset_id = "tank-tiger-right-texture",
  255. width = 32,
  256. height = 32,
  257. z_index = 2
  258. },
  259. boxcollider = {
  260. width = 25,
  261. height = 18,
  262. offset = { x = 0, y = 7 }
  263. },
  264. health = {
  265. health_percentage = 100
  266. },
  267. projectile_emitter = {
  268. projectile_velocity = { x = math.random(10, 200), y = 0 },
  269. projectile_duration = 2, -- seconds
  270. repeat_frequency = 1, -- seconds
  271. hit_percentage_damage = 20,
  272. friendly = false
  273. }
  274. }
  275. },
  276. {
  277. -- Tank
  278. group = "enemies",
  279. components = {
  280. transform = {
  281. position = { x = 785, y = 170 },
  282. scale = { x = 1.0, y = 1.0 },
  283. rotation = 0.0, -- degrees
  284. },
  285. sprite = {
  286. texture_asset_id = "tank-panther-up-texture",
  287. width = 32,
  288. height = 32,
  289. z_index = 1
  290. },
  291. boxcollider = {
  292. width = 17,
  293. height = 18,
  294. offset = { x = 7, y = 10 }
  295. },
  296. health = {
  297. health_percentage = 100
  298. },
  299. projectile_emitter = {
  300. projectile_velocity = { x = 0, y = -50 },
  301. projectile_duration = 4, -- seconds
  302. repeat_frequency = 2, -- seconds
  303. hit_percentage_damage = 10,
  304. friendly = false
  305. }
  306. }
  307. },
  308. {
  309. -- Tank
  310. group = "enemies",
  311. components = {
  312. transform = {
  313. position = { x = 785, y = 250 },
  314. scale = { x = 1.0, y = 1.0 },
  315. rotation = 0.0, -- degrees
  316. },
  317. sprite = {
  318. texture_asset_id = "tank-tiger-down-texture",
  319. width = 32,
  320. height = 32,
  321. z_index = 1
  322. },
  323. boxcollider = {
  324. width = 20,
  325. height = 18,
  326. offset = { x = 5, y = 7 }
  327. },
  328. health = {
  329. health_percentage = 100
  330. },
  331. projectile_emitter = {
  332. projectile_velocity = { x = 0, y = 20 },
  333. projectile_duration = 3, -- seconds
  334. repeat_frequency = 3, -- seconds
  335. hit_percentage_damage = 10,
  336. friendly = false
  337. }
  338. }
  339. },
  340. {
  341. -- Tank
  342. group = "enemies",
  343. components = {
  344. transform = {
  345. position = { x = 785, y = 350 },
  346. scale = { x = 1.0, y = 1.0 },
  347. rotation = 0.0, -- degrees
  348. },
  349. sprite = {
  350. texture_asset_id = "tank-panther-left-texture",
  351. width = 32,
  352. height = 32,
  353. z_index = 1
  354. },
  355. boxcollider = {
  356. width = 25,
  357. height = 18,
  358. offset = { x = 5, y = 7 }
  359. },
  360. health = {
  361. health_percentage = 100
  362. },
  363. projectile_emitter = {
  364. projectile_velocity = { x = -50, y = 0 },
  365. projectile_duration = 3, -- seconds
  366. repeat_frequency = 3, -- seconds
  367. hit_percentage_damage = 10,
  368. friendly = false
  369. }
  370. }
  371. },
  372. {
  373. -- Tank
  374. group = "enemies",
  375. components = {
  376. transform = {
  377. position = { x = 570, y = 520 },
  378. scale = { x = 1.0, y = 1.0 },
  379. rotation = 0.0, -- degrees
  380. },
  381. sprite = {
  382. texture_asset_id = "tank-panther-right-texture",
  383. width = 32,
  384. height = 32,
  385. z_index = 1
  386. },
  387. boxcollider = {
  388. width = 25,
  389. height = 18,
  390. offset = { x = 5, y = 7 }
  391. },
  392. health = {
  393. health_percentage = 100
  394. },
  395. projectile_emitter = {
  396. projectile_velocity = { x = 60, y = 0 },
  397. projectile_duration = 4, -- seconds
  398. repeat_frequency = 4, -- seconds
  399. hit_percentage_damage = 10,
  400. friendly = false
  401. }
  402. }
  403. },
  404. {
  405. -- Tank
  406. group = "enemies",
  407. components = {
  408. transform = {
  409. position = { x = 570, y = 600 },
  410. scale = { x = 1.0, y = 1.0 },
  411. rotation = 0.0, -- degrees
  412. },
  413. sprite = {
  414. texture_asset_id = "tank-panther-left-texture",
  415. width = 32,
  416. height = 32,
  417. z_index = 1
  418. },
  419. boxcollider = {
  420. width = 25,
  421. height = 18,
  422. offset = { x = 5, y = 7 }
  423. },
  424. health = {
  425. health_percentage = 100
  426. },
  427. projectile_emitter = {
  428. projectile_velocity = { x = -60, y = 0 },
  429. projectile_duration = 4, -- seconds
  430. repeat_frequency = 4, -- seconds
  431. hit_percentage_damage = 10,
  432. friendly = false
  433. }
  434. }
  435. },
  436. {
  437. -- Tank
  438. group = "enemies",
  439. components = {
  440. transform = {
  441. position = { x = 1050, y = 170 },
  442. scale = { x = 1.0, y = 1.0 },
  443. rotation = 0.0, -- degrees
  444. },
  445. sprite = {
  446. texture_asset_id = "tank-panther-right-texture",
  447. width = 32,
  448. height = 32,
  449. z_index = 1
  450. },
  451. boxcollider = {
  452. width = 25,
  453. height = 18,
  454. offset = { x = 5, y = 7 }
  455. },
  456. health = {
  457. health_percentage = 100
  458. },
  459. projectile_emitter = {
  460. projectile_velocity = { x = 60, y = 0 },
  461. projectile_duration = 4, -- seconds
  462. repeat_frequency = 4, -- seconds
  463. hit_percentage_damage = 10,
  464. friendly = false
  465. }
  466. }
  467. },
  468. {
  469. -- Tank
  470. group = "enemies",
  471. components = {
  472. transform = {
  473. position = { x = 1170, y = 116 },
  474. scale = { x = 1.0, y = 1.0 },
  475. rotation = 0.0, -- degrees
  476. },
  477. sprite = {
  478. texture_asset_id = "tank-panther-down-texture",
  479. width = 32,
  480. height = 32,
  481. z_index = 1
  482. },
  483. boxcollider = {
  484. width = 17,
  485. height = 18,
  486. offset = { x = 8, y = 6 }
  487. },
  488. health = {
  489. health_percentage = 100
  490. },
  491. projectile_emitter = {
  492. projectile_velocity = { x = 0, y = 40 },
  493. projectile_duration = 2, -- seconds
  494. repeat_frequency = 2, -- seconds
  495. hit_percentage_damage = 10,
  496. friendly = false
  497. }
  498. }
  499. },
  500. {
  501. -- Tank
  502. group = "enemies",
  503. components = {
  504. transform = {
  505. position = { x = 1380, y = 116 },
  506. scale = { x = 1.0, y = 1.0 },
  507. rotation = 0.0, -- degrees
  508. },
  509. sprite = {
  510. texture_asset_id = "tank-panther-down-texture",
  511. width = 32,
  512. height = 32,
  513. z_index = 1
  514. },
  515. boxcollider = {
  516. width = 17,
  517. height = 18,
  518. offset = { x = 8, y = 6 }
  519. },
  520. health = {
  521. health_percentage = 100
  522. },
  523. projectile_emitter = {
  524. projectile_velocity = { x = 0, y = 40 },
  525. projectile_duration = 2, -- seconds
  526. repeat_frequency = 2, -- seconds
  527. hit_percentage_damage = 10,
  528. friendly = false
  529. }
  530. }
  531. },
  532. {
  533. -- Tank
  534. group = "enemies",
  535. components = {
  536. transform = {
  537. position = { x = 1265, y = 240 },
  538. scale = { x = 1.0, y = 1.0 },
  539. rotation = 0.0, -- degrees
  540. },
  541. sprite = {
  542. texture_asset_id = "tank-panther-killed-texture",
  543. width = 32,
  544. height = 32,
  545. z_index = 1
  546. }
  547. }
  548. },
  549. {
  550. -- Tank
  551. group = "enemies",
  552. components = {
  553. transform = {
  554. position = { x = 1265, y = 290 },
  555. scale = { x = 1.0, y = 1.0 },
  556. rotation = 0.0, -- degrees
  557. },
  558. sprite = {
  559. texture_asset_id = "tank-panther-left-texture",
  560. width = 32,
  561. height = 32,
  562. z_index = 1
  563. },
  564. boxcollider = {
  565. width = 20,
  566. height = 17,
  567. offset = { x = 7, y = 7 }
  568. },
  569. health = {
  570. health_percentage = 100
  571. },
  572. projectile_emitter = {
  573. projectile_velocity = { x = -40, y = 0 },
  574. projectile_duration = 2, -- seconds
  575. repeat_frequency = 2, -- seconds
  576. hit_percentage_damage = 10,
  577. friendly = false
  578. }
  579. }
  580. },
  581. {
  582. -- Tank
  583. group = "enemies",
  584. components = {
  585. transform = {
  586. position = { x = 640, y = 800 },
  587. scale = { x = 1.0, y = 1.0 },
  588. rotation = 0.0, -- degrees
  589. },
  590. sprite = {
  591. texture_asset_id = "tank-tiger-down-texture",
  592. width = 32,
  593. height = 32,
  594. z_index = 1
  595. },
  596. boxcollider = {
  597. width = 18,
  598. height = 20,
  599. offset = { x = 7, y = 7 }
  600. },
  601. health = {
  602. health_percentage = 100
  603. },
  604. projectile_emitter = {
  605. projectile_velocity = { x = 0, y = 100 },
  606. projectile_duration = 5, -- seconds
  607. repeat_frequency = 5, -- seconds
  608. hit_percentage_damage = 10,
  609. friendly = false
  610. }
  611. }
  612. },
  613. {
  614. -- Tank
  615. group = "enemies",
  616. components = {
  617. transform = {
  618. position = { x = 790, y = 745 },
  619. scale = { x = 1.0, y = 1.0 },
  620. rotation = 0.0, -- degrees
  621. },
  622. sprite = {
  623. texture_asset_id = "tank-tiger-left-texture",
  624. width = 32,
  625. height = 32,
  626. z_index = 1
  627. },
  628. boxcollider = {
  629. width = 25,
  630. height = 18,
  631. offset = { x = 7, y = 7 }
  632. },
  633. health = {
  634. health_percentage = 100
  635. },
  636. projectile_emitter = {
  637. projectile_velocity = { x = -60, y = 0 },
  638. projectile_duration = 10, -- seconds
  639. repeat_frequency = 1, -- seconds
  640. hit_percentage_damage = 10,
  641. friendly = false
  642. }
  643. }
  644. },
  645. {
  646. -- Tank
  647. group = "enemies",
  648. components = {
  649. transform = {
  650. position = { x = 980, y = 790 },
  651. scale = { x = 1.0, y = 1.0 },
  652. rotation = 0.0, -- degrees
  653. },
  654. sprite = {
  655. texture_asset_id = "tank-tiger-right-texture",
  656. width = 32,
  657. height = 32,
  658. z_index = 1
  659. },
  660. boxcollider = {
  661. width = 25,
  662. height = 18,
  663. offset = { x = 0, y = 7 }
  664. },
  665. health = {
  666. health_percentage = 100
  667. },
  668. projectile_emitter = {
  669. projectile_velocity = { x = 60, y = 0 },
  670. projectile_duration = 2, -- seconds
  671. repeat_frequency = 1, -- seconds
  672. hit_percentage_damage = 10,
  673. friendly = false
  674. }
  675. }
  676. },
  677. {
  678. -- Tank
  679. group = "enemies",
  680. components = {
  681. transform = {
  682. position = { x = 1070, y = 870 },
  683. scale = { x = 1.0, y = 1.0 },
  684. rotation = 0.0, -- degrees
  685. },
  686. sprite = {
  687. texture_asset_id = "tank-panther-down-texture",
  688. width = 32,
  689. height = 32,
  690. z_index = 1
  691. },
  692. boxcollider = {
  693. width = 17,
  694. height = 20,
  695. offset = { x = 8, y = 4 }
  696. },
  697. health = {
  698. health_percentage = 100
  699. },
  700. projectile_emitter = {
  701. projectile_velocity = { x = 0, y = 100 },
  702. projectile_duration = 4, -- seconds
  703. repeat_frequency = 2, -- seconds
  704. hit_percentage_damage = 10,
  705. friendly = false
  706. }
  707. }
  708. },
  709. {
  710. -- Tank
  711. group = "enemies",
  712. components = {
  713. transform = {
  714. position = { x = 1190, y = 790 },
  715. scale = { x = 1.0, y = 1.0 },
  716. rotation = 0.0, -- degrees
  717. },
  718. sprite = {
  719. texture_asset_id = "tank-panther-up-texture",
  720. width = 32,
  721. height = 32,
  722. z_index = 1
  723. },
  724. boxcollider = {
  725. width = 17,
  726. height = 20,
  727. offset = { x = 7, y = 8 }
  728. },
  729. health = {
  730. health_percentage = 100
  731. },
  732. projectile_emitter = {
  733. projectile_velocity = { x = 0, y = -200 },
  734. projectile_duration = 2, -- seconds
  735. repeat_frequency = 1, -- seconds
  736. hit_percentage_damage = 10,
  737. friendly = false
  738. }
  739. }
  740. },
  741. {
  742. -- Tank
  743. group = "enemies",
  744. components = {
  745. transform = {
  746. position = { x = 1210, y = 790 },
  747. scale = { x = 1.0, y = 1.0 },
  748. rotation = 0.0, -- degrees
  749. },
  750. sprite = {
  751. texture_asset_id = "tank-panther-up-texture",
  752. width = 32,
  753. height = 32,
  754. z_index = 1
  755. },
  756. boxcollider = {
  757. width = 17,
  758. height = 20,
  759. offset = { x = 7, y = 8 }
  760. },
  761. health = {
  762. health_percentage = 100
  763. },
  764. projectile_emitter = {
  765. projectile_velocity = { x = 0, y = -200 },
  766. projectile_duration = 2, -- seconds
  767. repeat_frequency = 1, -- seconds
  768. hit_percentage_damage = 10,
  769. friendly = false
  770. }
  771. }
  772. },
  773. {
  774. -- Tank
  775. group = "enemies",
  776. components = {
  777. transform = {
  778. position = { x = 1230, y = 790 },
  779. scale = { x = 1.0, y = 1.0 },
  780. rotation = 0.0, -- degrees
  781. },
  782. sprite = {
  783. texture_asset_id = "tank-panther-up-texture",
  784. width = 32,
  785. height = 32,
  786. z_index = 1
  787. },
  788. boxcollider = {
  789. width = 17,
  790. height = 20,
  791. offset = { x = 7, y = 8 }
  792. },
  793. health = {
  794. health_percentage = 100
  795. },
  796. projectile_emitter = {
  797. projectile_velocity = { x = 0, y = -200 },
  798. projectile_duration = 2, -- seconds
  799. repeat_frequency = 1, -- seconds
  800. hit_percentage_damage = 10,
  801. friendly = false
  802. }
  803. }
  804. },
  805. {
  806. -- Tank
  807. group = "enemies",
  808. components = {
  809. transform = {
  810. position = { x = 1250, y = 790 },
  811. scale = { x = 1.0, y = 1.0 },
  812. rotation = 0.0, -- degrees
  813. },
  814. sprite = {
  815. texture_asset_id = "tank-panther-up-texture",
  816. width = 32,
  817. height = 32,
  818. z_index = 1
  819. },
  820. boxcollider = {
  821. width = 17,
  822. height = 20,
  823. offset = { x = 7, y = 8 }
  824. },
  825. health = {
  826. health_percentage = 100
  827. },
  828. projectile_emitter = {
  829. projectile_velocity = { x = 0, y = -200 },
  830. projectile_duration = 2, -- seconds
  831. repeat_frequency = 1, -- seconds
  832. hit_percentage_damage = 10,
  833. friendly = false
  834. }
  835. }
  836. },
  837. {
  838. -- Tank
  839. group = "enemies",
  840. components = {
  841. transform = {
  842. position = { x = 1000, y = 445 },
  843. scale = { x = 1.0, y = 1.0 },
  844. rotation = 0.0, -- degrees
  845. },
  846. sprite = {
  847. texture_asset_id = "tank-panther-up-texture",
  848. width = 32,
  849. height = 32,
  850. z_index = 1
  851. },
  852. boxcollider = {
  853. width = 17,
  854. height = 20,
  855. offset = { x = 7, y = 8 }
  856. },
  857. health = {
  858. health_percentage = 100
  859. },
  860. projectile_emitter = {
  861. projectile_velocity = { x = 0, y = -200 },
  862. projectile_duration = 2, -- seconds
  863. repeat_frequency = 1, -- seconds
  864. hit_percentage_damage = 10,
  865. friendly = false
  866. }
  867. }
  868. },
  869. {
  870. -- Tank
  871. group = "enemies",
  872. components = {
  873. transform = {
  874. position = { x = 1426, y = 760 },
  875. scale = { x = 1.0, y = 1.0 },
  876. rotation = 0.0, -- degrees
  877. },
  878. sprite = {
  879. texture_asset_id = "tank-panther-right-texture",
  880. width = 32,
  881. height = 32,
  882. z_index = 1
  883. },
  884. boxcollider = {
  885. width = 22,
  886. height = 18,
  887. offset = { x = 5, y = 7 }
  888. },
  889. health = {
  890. health_percentage = 100
  891. },
  892. projectile_emitter = {
  893. projectile_velocity = { x = 200, y = 0 },
  894. projectile_duration = 2, -- seconds
  895. repeat_frequency = 1, -- seconds
  896. hit_percentage_damage = 10,
  897. friendly = false
  898. }
  899. }
  900. },
  901. {
  902. -- Tank
  903. group = "enemies",
  904. components = {
  905. transform = {
  906. position = { x = 1423, y = 835 },
  907. scale = { x = 1.0, y = 1.0 },
  908. rotation = 0.0, -- degrees
  909. },
  910. sprite = {
  911. texture_asset_id = "tank-tiger-left-texture",
  912. width = 32,
  913. height = 32,
  914. z_index = 1
  915. },
  916. boxcollider = {
  917. width = 25,
  918. height = 18,
  919. offset = { x = 7, y = 7 }
  920. },
  921. health = {
  922. health_percentage = 100
  923. },
  924. projectile_emitter = {
  925. projectile_velocity = { x = -200, y = 0 },
  926. projectile_duration = 1, -- seconds
  927. repeat_frequency = 2, -- seconds
  928. hit_percentage_damage = 10,
  929. friendly = false
  930. }
  931. }
  932. },
  933. {
  934. -- Tank
  935. group = "enemies",
  936. components = {
  937. transform = {
  938. position = { x = 1450, y = 300 },
  939. scale = { x = 1.0, y = 1.0 },
  940. rotation = 0.0, -- degrees
  941. },
  942. sprite = {
  943. texture_asset_id = "tank-tiger-down-texture",
  944. width = 32,
  945. height = 32,
  946. z_index = 1
  947. },
  948. boxcollider = {
  949. width = 19,
  950. height = 20,
  951. offset = { x = 6, y = 7 }
  952. },
  953. health = {
  954. health_percentage = 100
  955. },
  956. projectile_emitter = {
  957. projectile_velocity = { x = 0, y = 300 },
  958. projectile_duration = 1, -- seconds
  959. repeat_frequency = 1, -- seconds
  960. hit_percentage_damage = 10,
  961. friendly = false
  962. }
  963. }
  964. },
  965. {
  966. -- Tank
  967. group = "enemies",
  968. components = {
  969. transform = {
  970. position = { x = 195, y = 980 },
  971. scale = { x = 1.0, y = 1.0 },
  972. rotation = 0.0, -- degrees
  973. },
  974. sprite = {
  975. texture_asset_id = "tank-tiger-up-texture",
  976. width = 32,
  977. height = 32,
  978. z_index = 1
  979. },
  980. boxcollider = {
  981. width = 18,
  982. height = 25,
  983. offset = { x = 7, y = 7 }
  984. },
  985. health = {
  986. health_percentage = 100
  987. },
  988. projectile_emitter = {
  989. projectile_velocity = { x = 0, y = -100 },
  990. projectile_duration = 2, -- seconds
  991. repeat_frequency = 1, -- seconds
  992. hit_percentage_damage = 10,
  993. friendly = false
  994. }
  995. }
  996. },
  997. {
  998. -- Tank
  999. group = "enemies",
  1000. components = {
  1001. transform = {
  1002. position = { x = 110, y = 1125 },
  1003. scale = { x = 1.0, y = 1.0 },
  1004. rotation = 0.0, -- degrees
  1005. },
  1006. sprite = {
  1007. texture_asset_id = "tank-panther-down-texture",
  1008. width = 32,
  1009. height = 32,
  1010. z_index = 1
  1011. },
  1012. boxcollider = {
  1013. width = 17,
  1014. height = 20,
  1015. offset = { x = 8, y = 4 }
  1016. },
  1017. health = {
  1018. health_percentage = 100
  1019. },
  1020. projectile_emitter = {
  1021. projectile_velocity = { x = 0, y = 300 },
  1022. projectile_duration = 1, -- seconds
  1023. repeat_frequency = 1, -- seconds
  1024. hit_percentage_damage = 10,
  1025. friendly = false
  1026. }
  1027. }
  1028. },
  1029. {
  1030. -- Tank
  1031. group = "enemies",
  1032. components = {
  1033. transform = {
  1034. position = { x = 1395, y = 540 },
  1035. scale = { x = 1.0, y = 1.0 },
  1036. rotation = 0.0, -- degrees
  1037. },
  1038. sprite = {
  1039. texture_asset_id = "tank-panther-killed-texture",
  1040. width = 32,
  1041. height = 32,
  1042. z_index = 1
  1043. }
  1044. }
  1045. },
  1046. {
  1047. -- Truck
  1048. group = "enemies",
  1049. components = {
  1050. transform = {
  1051. position = { x = 113, y = 580 },
  1052. scale = { x = 1.0, y = 1.0 },
  1053. rotation = 0.0, -- degrees
  1054. },
  1055. sprite = {
  1056. texture_asset_id = "truck-ford-down-texture",
  1057. width = 32,
  1058. height = 32,
  1059. z_index = 1
  1060. },
  1061. boxcollider = {
  1062. width = 12,
  1063. height = 25,
  1064. offset = { x = 10, y = 2 }
  1065. },
  1066. health = {
  1067. health_percentage = 100
  1068. }
  1069. }
  1070. },
  1071. {
  1072. -- Truck
  1073. group = "enemies",
  1074. components = {
  1075. transform = {
  1076. position = { x = 180, y = 1045 },
  1077. scale = { x = 1.0, y = 1.0 },
  1078. rotation = 0.0, -- degrees
  1079. },
  1080. sprite = {
  1081. texture_asset_id = "truck-ford-down-texture",
  1082. width = 32,
  1083. height = 32,
  1084. z_index = 1
  1085. },
  1086. boxcollider = {
  1087. width = 12,
  1088. height = 25,
  1089. offset = { x = 10, y = 2 }
  1090. },
  1091. health = {
  1092. health_percentage = 100
  1093. }
  1094. }
  1095. },
  1096. {
  1097. -- Truck
  1098. group = "enemies",
  1099. components = {
  1100. transform = {
  1101. position = { x = 195, y = 1055 },
  1102. scale = { x = 1.0, y = 1.0 },
  1103. rotation = 0.0, -- degrees
  1104. },
  1105. sprite = {
  1106. texture_asset_id = "truck-ford-down-texture",
  1107. width = 32,
  1108. height = 32,
  1109. z_index = 1
  1110. },
  1111. boxcollider = {
  1112. width = 12,
  1113. height = 25,
  1114. offset = { x = 10, y = 2 }
  1115. },
  1116. health = {
  1117. health_percentage = 100
  1118. }
  1119. }
  1120. },
  1121. {
  1122. -- Truck
  1123. group = "enemies",
  1124. components = {
  1125. transform = {
  1126. position = { x = 210, y = 1065 },
  1127. scale = { x = 1.0, y = 1.0 },
  1128. rotation = 0.0, -- degrees
  1129. },
  1130. sprite = {
  1131. texture_asset_id = "truck-ford-down-texture",
  1132. width = 32,
  1133. height = 32,
  1134. z_index = 1
  1135. },
  1136. boxcollider = {
  1137. width = 12,
  1138. height = 25,
  1139. offset = { x = 10, y = 2 }
  1140. },
  1141. health = {
  1142. health_percentage = 100
  1143. }
  1144. }
  1145. },
  1146. {
  1147. -- Truck
  1148. group = "enemies",
  1149. components = {
  1150. transform = {
  1151. position = { x = 545, y = 660 },
  1152. scale = { x = 1.0, y = 1.0 },
  1153. rotation = 0.0, -- degrees
  1154. },
  1155. sprite = {
  1156. texture_asset_id = "truck-ford-down-texture",
  1157. width = 32,
  1158. height = 32,
  1159. z_index = 1
  1160. },
  1161. boxcollider = {
  1162. width = 12,
  1163. height = 25,
  1164. offset = { x = 10, y = 2 }
  1165. },
  1166. health = {
  1167. health_percentage = 100
  1168. }
  1169. }
  1170. },
  1171. {
  1172. -- Truck
  1173. group = "enemies",
  1174. components = {
  1175. transform = {
  1176. position = { x = 560, y = 670 },
  1177. scale = { x = 1.0, y = 1.0 },
  1178. rotation = 0.0, -- degrees
  1179. },
  1180. sprite = {
  1181. texture_asset_id = "truck-ford-down-texture",
  1182. width = 32,
  1183. height = 32,
  1184. z_index = 1
  1185. },
  1186. boxcollider = {
  1187. width = 12,
  1188. height = 25,
  1189. offset = { x = 10, y = 2 }
  1190. },
  1191. health = {
  1192. health_percentage = 100
  1193. }
  1194. }
  1195. },
  1196. {
  1197. -- Truck
  1198. group = "enemies",
  1199. components = {
  1200. transform = {
  1201. position = { x = 1360, y = 880 },
  1202. scale = { x = 1.0, y = 1.0 },
  1203. rotation = 0.0, -- degrees
  1204. },
  1205. sprite = {
  1206. texture_asset_id = "truck-ford-up-texture",
  1207. width = 32,
  1208. height = 32,
  1209. z_index = 1
  1210. },
  1211. boxcollider = {
  1212. width = 12,
  1213. height = 20,
  1214. offset = { x = 10, y = 8 }
  1215. },
  1216. health = {
  1217. health_percentage = 100
  1218. }
  1219. }
  1220. },
  1221. {
  1222. -- Truck
  1223. group = "enemies",
  1224. components = {
  1225. transform = {
  1226. position = { x = 1380, y = 880 },
  1227. scale = { x = 1.0, y = 1.0 },
  1228. rotation = 0.0, -- degrees
  1229. },
  1230. sprite = {
  1231. texture_asset_id = "truck-ford-up-texture",
  1232. width = 32,
  1233. height = 32,
  1234. z_index = 1
  1235. },
  1236. boxcollider = {
  1237. width = 12,
  1238. height = 20,
  1239. offset = { x = 10, y = 8 }
  1240. },
  1241. health = {
  1242. health_percentage = 100
  1243. }
  1244. }
  1245. },
  1246. {
  1247. -- Truck
  1248. group = "enemies",
  1249. components = {
  1250. transform = {
  1251. position = { x = 1400, y = 880 },
  1252. scale = { x = 1.0, y = 1.0 },
  1253. rotation = 0.0, -- degrees
  1254. },
  1255. sprite = {
  1256. texture_asset_id = "truck-ford-up-texture",
  1257. width = 32,
  1258. height = 32,
  1259. z_index = 1
  1260. },
  1261. boxcollider = {
  1262. width = 12,
  1263. height = 20,
  1264. offset = { x = 10, y = 8 }
  1265. },
  1266. health = {
  1267. health_percentage = 100
  1268. }
  1269. }
  1270. },
  1271. {
  1272. -- Truck
  1273. group = "enemies",
  1274. components = {
  1275. transform = {
  1276. position = { x = 1505, y = 780 },
  1277. scale = { x = 1.0, y = 1.0 },
  1278. rotation = 0.0, -- degrees
  1279. },
  1280. sprite = {
  1281. texture_asset_id = "truck-ford-left-texture",
  1282. width = 32,
  1283. height = 32,
  1284. z_index = 1
  1285. },
  1286. boxcollider = {
  1287. width = 25,
  1288. height = 16,
  1289. offset = { x = 3, y = 10 }
  1290. },
  1291. health = {
  1292. health_percentage = 100
  1293. }
  1294. }
  1295. },
  1296. {
  1297. -- Truck
  1298. group = "enemies",
  1299. components = {
  1300. transform = {
  1301. position = { x = 1515, y = 790 },
  1302. scale = { x = 1.0, y = 1.0 },
  1303. rotation = 0.0, -- degrees
  1304. },
  1305. sprite = {
  1306. texture_asset_id = "truck-ford-left-texture",
  1307. width = 32,
  1308. height = 32,
  1309. z_index = 2
  1310. },
  1311. boxcollider = {
  1312. width = 25,
  1313. height = 16,
  1314. offset = { x = 3, y = 10 }
  1315. },
  1316. health = {
  1317. health_percentage = 100
  1318. }
  1319. }
  1320. },
  1321. {
  1322. -- SAM Tank
  1323. group = "enemies",
  1324. components = {
  1325. transform = {
  1326. position = { x = 495, y = 380 },
  1327. scale = { x = 1.0, y = 1.0 },
  1328. rotation = 0.0, -- degrees
  1329. },
  1330. sprite = {
  1331. texture_asset_id = "sam-tank-left-texture",
  1332. width = 32,
  1333. height = 32,
  1334. z_index = 2
  1335. },
  1336. animation = {
  1337. num_frames = 2,
  1338. speed_rate = 2 -- fps
  1339. },
  1340. boxcollider = {
  1341. width = 17,
  1342. height = 15,
  1343. offset = { x = 8, y = 8 }
  1344. },
  1345. health = {
  1346. health_percentage = 100
  1347. },
  1348. projectile_emitter = {
  1349. projectile_velocity = { x = -50, y = -50 },
  1350. projectile_duration = 3, -- seconds
  1351. repeat_frequency = 2, -- seconds
  1352. hit_percentage_damage = 5,
  1353. friendly = false
  1354. }
  1355. }
  1356. },
  1357. {
  1358. -- SAM Tank
  1359. group = "enemies",
  1360. components = {
  1361. transform = {
  1362. position = { x = 495, y = 410 },
  1363. scale = { x = 1.0, y = 1.0 },
  1364. rotation = 0.0, -- degrees
  1365. },
  1366. sprite = {
  1367. texture_asset_id = "sam-tank-left-texture",
  1368. width = 32,
  1369. height = 32,
  1370. z_index = 2
  1371. },
  1372. animation = {
  1373. num_frames = 2,
  1374. speed_rate = 2 -- fps
  1375. },
  1376. boxcollider = {
  1377. width = 17,
  1378. height = 15,
  1379. offset = { x = 8, y = 8 }
  1380. },
  1381. health = {
  1382. health_percentage = 100
  1383. },
  1384. projectile_emitter = {
  1385. projectile_velocity = { x = -50, y = -50 },
  1386. projectile_duration = 3, -- seconds
  1387. repeat_frequency = 2, -- seconds
  1388. hit_percentage_damage = 5,
  1389. friendly = false
  1390. }
  1391. }
  1392. },
  1393. {
  1394. -- SAM Tank
  1395. group = "enemies",
  1396. components = {
  1397. transform = {
  1398. position = { x = 1290, y = 115 },
  1399. scale = { x = 1.0, y = 1.0 },
  1400. rotation = 0.0, -- degrees
  1401. },
  1402. sprite = {
  1403. texture_asset_id = "sam-tank-left-texture",
  1404. width = 32,
  1405. height = 32,
  1406. z_index = 2
  1407. },
  1408. animation = {
  1409. num_frames = 2,
  1410. speed_rate = 2 -- fps
  1411. },
  1412. boxcollider = {
  1413. width = 17,
  1414. height = 15,
  1415. offset = { x = 8, y = 8 }
  1416. },
  1417. health = {
  1418. health_percentage = 100
  1419. },
  1420. projectile_emitter = {
  1421. projectile_velocity = { x = -100, y = -75 },
  1422. projectile_duration = 2, -- seconds
  1423. repeat_frequency = 2, -- seconds
  1424. hit_percentage_damage = 5,
  1425. friendly = false
  1426. }
  1427. }
  1428. },
  1429. {
  1430. -- SAM Tank
  1431. group = "enemies",
  1432. components = {
  1433. transform = {
  1434. position = { x = 935, y = 557 },
  1435. scale = { x = 1.0, y = 1.0 },
  1436. rotation = 0.0, -- degrees
  1437. },
  1438. sprite = {
  1439. texture_asset_id = "sam-tank-left-texture",
  1440. width = 32,
  1441. height = 32,
  1442. z_index = 2
  1443. },
  1444. animation = {
  1445. num_frames = 2,
  1446. speed_rate = 2 -- fps
  1447. },
  1448. boxcollider = {
  1449. width = 17,
  1450. height = 15,
  1451. offset = { x = 8, y = 8 }
  1452. },
  1453. health = {
  1454. health_percentage = 100
  1455. },
  1456. projectile_emitter = {
  1457. projectile_velocity = { x = -100, y = -60 },
  1458. projectile_duration = 2, -- seconds
  1459. repeat_frequency = 2, -- seconds
  1460. hit_percentage_damage = 5,
  1461. friendly = false
  1462. }
  1463. }
  1464. },
  1465. {
  1466. -- SAM Truck
  1467. group = "enemies",
  1468. components = {
  1469. transform = {
  1470. position = { x = 114, y = 700 },
  1471. scale = { x = 1.0, y = 1.0 },
  1472. rotation = 0.0, -- degrees
  1473. },
  1474. sprite = {
  1475. texture_asset_id = "sam-truck-right-texture",
  1476. width = 32,
  1477. height = 32,
  1478. z_index = 2
  1479. },
  1480. boxcollider = {
  1481. width = 17,
  1482. height = 15,
  1483. offset = { x = 8, y = 8 }
  1484. },
  1485. health = {
  1486. health_percentage = 100
  1487. },
  1488. projectile_emitter = {
  1489. projectile_velocity = { x = 50, y = -50 },
  1490. projectile_duration = 2, -- seconds
  1491. repeat_frequency = 1, -- seconds
  1492. hit_percentage_damage = 5,
  1493. friendly = false
  1494. }
  1495. }
  1496. },
  1497. {
  1498. -- SAM Truck
  1499. group = "enemies",
  1500. components = {
  1501. transform = {
  1502. position = { x = 114, y = 720 },
  1503. scale = { x = 1.0, y = 1.0 },
  1504. rotation = 0.0, -- degrees
  1505. },
  1506. sprite = {
  1507. texture_asset_id = "sam-truck-right-texture",
  1508. width = 32,
  1509. height = 32,
  1510. z_index = 2
  1511. },
  1512. boxcollider = {
  1513. width = 17,
  1514. height = 15,
  1515. offset = { x = 8, y = 8 }
  1516. },
  1517. health = {
  1518. health_percentage = 100
  1519. },
  1520. projectile_emitter = {
  1521. projectile_velocity = { x = 50, y = -50 },
  1522. projectile_duration = 2, -- seconds
  1523. repeat_frequency = 1, -- seconds
  1524. hit_percentage_damage = 5,
  1525. friendly = false
  1526. }
  1527. }
  1528. },
  1529. {
  1530. -- SAM Truck
  1531. group = "enemies",
  1532. components = {
  1533. transform = {
  1534. position = { x = 116, y = 499 },
  1535. scale = { x = 1.0, y = 1.0 },
  1536. rotation = 0.0, -- degrees
  1537. },
  1538. sprite = {
  1539. texture_asset_id = "sam-truck-right-texture",
  1540. width = 32,
  1541. height = 32,
  1542. z_index = 2
  1543. },
  1544. boxcollider = {
  1545. width = 17,
  1546. height = 15,
  1547. offset = { x = 8, y = 8 }
  1548. },
  1549. health = {
  1550. health_percentage = 100
  1551. },
  1552. projectile_emitter = {
  1553. projectile_velocity = { x = 50, y = -70 },
  1554. projectile_duration = 2, -- seconds
  1555. repeat_frequency = 1, -- seconds
  1556. hit_percentage_damage = 5,
  1557. friendly = false
  1558. }
  1559. }
  1560. },
  1561. {
  1562. -- SAM Truck
  1563. group = "enemies",
  1564. components = {
  1565. transform = {
  1566. position = { x = 1454, y = 215 },
  1567. scale = { x = 1.0, y = 1.0 },
  1568. rotation = 0.0, -- degrees
  1569. },
  1570. sprite = {
  1571. texture_asset_id = "sam-truck-right-texture",
  1572. width = 32,
  1573. height = 32,
  1574. z_index = 2
  1575. },
  1576. boxcollider = {
  1577. width = 17,
  1578. height = 15,
  1579. offset = { x = 8, y = 8 }
  1580. },
  1581. health = {
  1582. health_percentage = 100
  1583. },
  1584. projectile_emitter = {
  1585. projectile_velocity = { x = 50, y = -70 },
  1586. projectile_duration = 2, -- seconds
  1587. repeat_frequency = 1, -- seconds
  1588. hit_percentage_damage = 5,
  1589. friendly = false
  1590. }
  1591. }
  1592. },
  1593. {
  1594. -- SAM Truck
  1595. group = "enemies",
  1596. components = {
  1597. transform = {
  1598. position = { x = 1454, y = 231 },
  1599. scale = { x = 1.0, y = 1.0 },
  1600. rotation = 0.0, -- degrees
  1601. },
  1602. sprite = {
  1603. texture_asset_id = "sam-truck-right-texture",
  1604. width = 32,
  1605. height = 32,
  1606. z_index = 2
  1607. },
  1608. boxcollider = {
  1609. width = 17,
  1610. height = 15,
  1611. offset = { x = 8, y = 8 }
  1612. },
  1613. health = {
  1614. health_percentage = 100
  1615. },
  1616. projectile_emitter = {
  1617. projectile_velocity = { x = 50, y = -70 },
  1618. projectile_duration = 2, -- seconds
  1619. repeat_frequency = 1, -- seconds
  1620. hit_percentage_damage = 5,
  1621. friendly = false
  1622. }
  1623. }
  1624. },
  1625. {
  1626. -- SAM Truck
  1627. group = "enemies",
  1628. components = {
  1629. transform = {
  1630. position = { x = 1454, y = 247 },
  1631. scale = { x = 1.0, y = 1.0 },
  1632. rotation = 0.0, -- degrees
  1633. },
  1634. sprite = {
  1635. texture_asset_id = "sam-truck-right-texture",
  1636. width = 32,
  1637. height = 32,
  1638. z_index = 2
  1639. },
  1640. boxcollider = {
  1641. width = 17,
  1642. height = 15,
  1643. offset = { x = 8, y = 8 }
  1644. },
  1645. health = {
  1646. health_percentage = 100
  1647. },
  1648. projectile_emitter = {
  1649. projectile_velocity = { x = 50, y = -70 },
  1650. projectile_duration = 2, -- seconds
  1651. repeat_frequency = 1, -- seconds
  1652. hit_percentage_damage = 5,
  1653. friendly = false
  1654. }
  1655. }
  1656. },
  1657. {
  1658. -- Vegetation
  1659. components = {
  1660. transform = {
  1661. position = { x = 115, y = 633 },
  1662. scale = { x = 1.0, y = 1.0 },
  1663. rotation = 0.0, -- degrees
  1664. },
  1665. sprite = {
  1666. texture_asset_id = "tree5-texture",
  1667. width = 32,
  1668. height = 32,
  1669. z_index = 1
  1670. },
  1671. }
  1672. },
  1673. {
  1674. -- Vegetation
  1675. components = {
  1676. transform = {
  1677. position = { x = 117, y = 650 },
  1678. scale = { x = 1.0, y = 1.0 },
  1679. rotation = 0.0, -- degrees
  1680. },
  1681. sprite = {
  1682. texture_asset_id = "tree5-texture",
  1683. width = 32,
  1684. height = 32,
  1685. z_index = 1
  1686. },
  1687. }
  1688. },
  1689. {
  1690. -- Vegetation
  1691. components = {
  1692. transform = {
  1693. position = { x = 318, y = 490 },
  1694. scale = { x = 1.0, y = 1.0 },
  1695. rotation = 0.0, -- degrees
  1696. },
  1697. sprite = {
  1698. texture_asset_id = "tree6-texture",
  1699. width = 32,
  1700. height = 32,
  1701. z_index = 1
  1702. },
  1703. }
  1704. },
  1705. {
  1706. -- Vegetation
  1707. components = {
  1708. transform = {
  1709. position = { x = 668, y = 526 },
  1710. scale = { x = 1.0, y = 1.0 },
  1711. rotation = 0.0, -- degrees
  1712. },
  1713. sprite = {
  1714. texture_asset_id = "tree14-texture",
  1715. width = 32,
  1716. height = 32,
  1717. z_index = 1
  1718. },
  1719. }
  1720. },
  1721. {
  1722. -- Vegetation
  1723. components = {
  1724. transform = {
  1725. position = { x = 1018, y = 738 },
  1726. scale = { x = 1.0, y = 1.0 },
  1727. rotation = 0.0, -- degrees
  1728. },
  1729. sprite = {
  1730. texture_asset_id = "tree17-texture",
  1731. width = 17,
  1732. height = 20,
  1733. z_index = 1
  1734. },
  1735. }
  1736. },
  1737. {
  1738. -- Vegetation
  1739. components = {
  1740. transform = {
  1741. position = { x = 1034, y = 738 },
  1742. scale = { x = 1.0, y = 1.0 },
  1743. rotation = 0.0, -- degrees
  1744. },
  1745. sprite = {
  1746. texture_asset_id = "tree17-texture",
  1747. width = 17,
  1748. height = 20,
  1749. z_index = 1
  1750. },
  1751. }
  1752. },
  1753. {
  1754. -- Vegetation
  1755. components = {
  1756. transform = {
  1757. position = { x = 1028, y = 745 },
  1758. scale = { x = 1.0, y = 1.0 },
  1759. rotation = 0.0, -- degrees
  1760. },
  1761. sprite = {
  1762. texture_asset_id = "tree18-texture",
  1763. width = 17,
  1764. height = 20,
  1765. z_index = 2
  1766. },
  1767. }
  1768. },
  1769. {
  1770. -- Vegetation
  1771. components = {
  1772. transform = {
  1773. position = { x = 1390, y = 440 },
  1774. scale = { x = 1.0, y = 1.0 },
  1775. rotation = 0.0, -- degrees
  1776. },
  1777. sprite = {
  1778. texture_asset_id = "tree10-texture",
  1779. width = 31,
  1780. height = 32,
  1781. z_index = 1
  1782. },
  1783. }
  1784. },
  1785. {
  1786. -- Vegetation
  1787. components = {
  1788. transform = {
  1789. position = { x = 1400, y = 445 },
  1790. scale = { x = 1.0, y = 1.0 },
  1791. rotation = 0.0, -- degrees
  1792. },
  1793. sprite = {
  1794. texture_asset_id = "tree10-texture",
  1795. width = 31,
  1796. height = 32,
  1797. z_index = 2
  1798. },
  1799. }
  1800. },
  1801. {
  1802. -- Vegetation
  1803. components = {
  1804. transform = {
  1805. position = { x = 1365, y = 290 },
  1806. scale = { x = 1.0, y = 1.0 },
  1807. rotation = 0.0, -- degrees
  1808. },
  1809. sprite = {
  1810. texture_asset_id = "tree14-texture",
  1811. width = 32,
  1812. height = 32,
  1813. z_index = 2
  1814. },
  1815. }
  1816. },
  1817. {
  1818. -- Obstacles
  1819. components = {
  1820. transform = {
  1821. position = { x = 669, y = 549 },
  1822. scale = { x = 1.0, y = 1.0 },
  1823. rotation = 0.0, -- degrees
  1824. },
  1825. sprite = {
  1826. texture_asset_id = "obstacles7-texture",
  1827. width = 16,
  1828. height = 16,
  1829. z_index = 2
  1830. },
  1831. }
  1832. },
  1833. {
  1834. -- Obstacles
  1835. components = {
  1836. transform = {
  1837. position = { x = 685, y = 549 },
  1838. scale = { x = 1.0, y = 1.0 },
  1839. rotation = 0.0, -- degrees
  1840. },
  1841. sprite = {
  1842. texture_asset_id = "obstacles7-texture",
  1843. width = 16,
  1844. height = 16,
  1845. z_index = 2
  1846. },
  1847. }
  1848. },
  1849. {
  1850. -- Obstacles
  1851. components = {
  1852. transform = {
  1853. position = { x = 315, y = 505 },
  1854. scale = { x = 1.0, y = 1.0 },
  1855. rotation = 0.0, -- degrees
  1856. },
  1857. sprite = {
  1858. texture_asset_id = "obstacles7-texture",
  1859. width = 16,
  1860. height = 16,
  1861. z_index = 3
  1862. },
  1863. }
  1864. },
  1865. {
  1866. -- Obstacles
  1867. components = {
  1868. transform = {
  1869. position = { x = 330, y = 507 },
  1870. scale = { x = 1.0, y = 1.0 },
  1871. rotation = 0.0, -- degrees
  1872. },
  1873. sprite = {
  1874. texture_asset_id = "obstacles7-texture",
  1875. width = 16,
  1876. height = 16,
  1877. z_index = 2
  1878. },
  1879. }
  1880. },
  1881. {
  1882. -- Obstacles
  1883. components = {
  1884. transform = {
  1885. position = { x = 438, y = 390 },
  1886. scale = { x = 1.0, y = 1.0 },
  1887. rotation = 0.0, -- degrees
  1888. },
  1889. sprite = {
  1890. texture_asset_id = "obstacles7-texture",
  1891. width = 16,
  1892. height = 16,
  1893. z_index = 1
  1894. },
  1895. }
  1896. },
  1897. {
  1898. -- Obstacles
  1899. components = {
  1900. transform = {
  1901. position = { x = 449, y = 408 },
  1902. scale = { x = 1.0, y = 1.0 },
  1903. rotation = 0.0, -- degrees
  1904. },
  1905. sprite = {
  1906. texture_asset_id = "obstacles7-texture",
  1907. width = 16,
  1908. height = 16,
  1909. z_index = 2
  1910. },
  1911. }
  1912. },
  1913. {
  1914. -- Obstacles
  1915. components = {
  1916. transform = {
  1917. position = { x = 431, y = 416 },
  1918. scale = { x = 1.0, y = 1.0 },
  1919. rotation = 0.0, -- degrees
  1920. },
  1921. sprite = {
  1922. texture_asset_id = "obstacles7-texture",
  1923. width = 16,
  1924. height = 16,
  1925. z_index = 2
  1926. },
  1927. }
  1928. },
  1929. {
  1930. -- Obstacles
  1931. components = {
  1932. transform = {
  1933. position = { x = 940, y = 695 },
  1934. scale = { x = 1.0, y = 1.0 },
  1935. rotation = 0.0, -- degrees
  1936. },
  1937. sprite = {
  1938. texture_asset_id = "obstacles7-texture",
  1939. width = 16,
  1940. height = 16,
  1941. z_index = 2
  1942. },
  1943. }
  1944. },
  1945. {
  1946. -- Obstacles
  1947. components = {
  1948. transform = {
  1949. position = { x = 955, y = 705 },
  1950. scale = { x = 1.0, y = 1.0 },
  1951. rotation = 0.0, -- degrees
  1952. },
  1953. sprite = {
  1954. texture_asset_id = "obstacles7-texture",
  1955. width = 16,
  1956. height = 16,
  1957. z_index = 2
  1958. },
  1959. }
  1960. },
  1961. {
  1962. -- Obstacles
  1963. components = {
  1964. transform = {
  1965. position = { x = 1085, y = 507 },
  1966. scale = { x = 1.0, y = 1.0 },
  1967. rotation = 0.0, -- degrees
  1968. },
  1969. sprite = {
  1970. texture_asset_id = "obstacles7-texture",
  1971. width = 16,
  1972. height = 16,
  1973. z_index = 2
  1974. },
  1975. }
  1976. },
  1977. {
  1978. -- Obstacles
  1979. components = {
  1980. transform = {
  1981. position = { x = 1075, y = 527 },
  1982. scale = { x = 1.0, y = 1.0 },
  1983. rotation = 0.0, -- degrees
  1984. },
  1985. sprite = {
  1986. texture_asset_id = "obstacles7-texture",
  1987. width = 16,
  1988. height = 16,
  1989. z_index = 2
  1990. },
  1991. }
  1992. },
  1993. {
  1994. -- Obstacles
  1995. components = {
  1996. transform = {
  1997. position = { x = 1075, y = 547 },
  1998. scale = { x = 1.0, y = 1.0 },
  1999. rotation = 0.0, -- degrees
  2000. },
  2001. sprite = {
  2002. texture_asset_id = "obstacles7-texture",
  2003. width = 16,
  2004. height = 16,
  2005. z_index = 2
  2006. },
  2007. }
  2008. },
  2009. {
  2010. -- Obstacles
  2011. components = {
  2012. transform = {
  2013. position = { x = 1085, y = 567 },
  2014. scale = { x = 1.0, y = 1.0 },
  2015. rotation = 0.0, -- degrees
  2016. },
  2017. sprite = {
  2018. texture_asset_id = "obstacles7-texture",
  2019. width = 16,
  2020. height = 16,
  2021. z_index = 2
  2022. },
  2023. }
  2024. },
  2025. {
  2026. -- Obstacles
  2027. components = {
  2028. transform = {
  2029. position = { x = 1355, y = 449 },
  2030. scale = { x = 1.0, y = 1.0 },
  2031. rotation = 0.0, -- degrees
  2032. },
  2033. sprite = {
  2034. texture_asset_id = "obstacles2-texture",
  2035. width = 32,
  2036. height = 32,
  2037. z_index = 1
  2038. },
  2039. }
  2040. },
  2041. {
  2042. -- Obstacles
  2043. components = {
  2044. transform = {
  2045. position = { x = 1430, y = 446 },
  2046. scale = { x = 1.0, y = 1.0 },
  2047. rotation = 0.0, -- degrees
  2048. },
  2049. sprite = {
  2050. texture_asset_id = "obstacles2-texture",
  2051. width = 32,
  2052. height = 32,
  2053. z_index = 1
  2054. },
  2055. }
  2056. },
  2057. {
  2058. -- Obstacles
  2059. components = {
  2060. transform = {
  2061. position = { x = 1435, y = 195 },
  2062. scale = { x = 1.0, y = 1.0 },
  2063. rotation = 0.0, -- degrees
  2064. },
  2065. sprite = {
  2066. texture_asset_id = "obstacles7-texture",
  2067. width = 16,
  2068. height = 16,
  2069. z_index = 2
  2070. },
  2071. }
  2072. },
  2073. {
  2074. -- Obstacles
  2075. components = {
  2076. transform = {
  2077. position = { x = 1425, y = 215 },
  2078. scale = { x = 1.0, y = 1.0 },
  2079. rotation = 0.0, -- degrees
  2080. },
  2081. sprite = {
  2082. texture_asset_id = "obstacles7-texture",
  2083. width = 16,
  2084. height = 16,
  2085. z_index = 2
  2086. },
  2087. }
  2088. },
  2089. {
  2090. -- Obstacles
  2091. components = {
  2092. transform = {
  2093. position = { x = 1425, y = 235 },
  2094. scale = { x = 1.0, y = 1.0 },
  2095. rotation = 0.0, -- degrees
  2096. },
  2097. sprite = {
  2098. texture_asset_id = "obstacles7-texture",
  2099. width = 16,
  2100. height = 16,
  2101. z_index = 2
  2102. },
  2103. }
  2104. },
  2105. {
  2106. -- Obstacles
  2107. components = {
  2108. transform = {
  2109. position = { x = 1425, y = 255 },
  2110. scale = { x = 1.0, y = 1.0 },
  2111. rotation = 0.0, -- degrees
  2112. },
  2113. sprite = {
  2114. texture_asset_id = "obstacles7-texture",
  2115. width = 16,
  2116. height = 16,
  2117. z_index = 2
  2118. },
  2119. }
  2120. },
  2121. {
  2122. -- Obstacles
  2123. components = {
  2124. transform = {
  2125. position = { x = 1435, y = 275 },
  2126. scale = { x = 1.0, y = 1.0 },
  2127. rotation = 0.0, -- degrees
  2128. },
  2129. sprite = {
  2130. texture_asset_id = "obstacles7-texture",
  2131. width = 16,
  2132. height = 16,
  2133. z_index = 2
  2134. },
  2135. }
  2136. },
  2137. {
  2138. -- Obstacles
  2139. components = {
  2140. transform = {
  2141. position = { x = 1360, y = 310 },
  2142. scale = { x = 1.0, y = 1.0 },
  2143. rotation = 0.0, -- degrees
  2144. },
  2145. sprite = {
  2146. texture_asset_id = "obstacles7-texture",
  2147. width = 16,
  2148. height = 16,
  2149. z_index = 1
  2150. },
  2151. }
  2152. },
  2153. {
  2154. -- Obstacles
  2155. components = {
  2156. transform = {
  2157. position = { x = 1380, y = 312 },
  2158. scale = { x = 1.0, y = 1.0 },
  2159. rotation = 0.0, -- degrees
  2160. },
  2161. sprite = {
  2162. texture_asset_id = "obstacles7-texture",
  2163. width = 16,
  2164. height = 16,
  2165. z_index = 1
  2166. },
  2167. }
  2168. },
  2169. {
  2170. -- Obstacles
  2171. components = {
  2172. transform = {
  2173. position = { x = 1330, y = 212 },
  2174. scale = { x = 1.0, y = 1.0 },
  2175. rotation = 0.0, -- degrees
  2176. },
  2177. sprite = {
  2178. texture_asset_id = "obstacles1-texture",
  2179. width = 32,
  2180. height = 32,
  2181. z_index = 1
  2182. },
  2183. }
  2184. },
  2185. {
  2186. -- Obstacles
  2187. components = {
  2188. transform = {
  2189. position = { x = 1360, y = 232 },
  2190. scale = { x = 1.0, y = 1.0 },
  2191. rotation = 0.0, -- degrees
  2192. },
  2193. sprite = {
  2194. texture_asset_id = "obstacles1-texture",
  2195. width = 32,
  2196. height = 32,
  2197. z_index = 1
  2198. },
  2199. }
  2200. },
  2201. {
  2202. -- Army
  2203. components = {
  2204. transform = {
  2205. position = { x = 630, y = 405 },
  2206. scale = { x = 1.0, y = 1.0 },
  2207. rotation = 0.0, -- degrees
  2208. },
  2209. sprite = {
  2210. texture_asset_id = "army-walk-left-texture",
  2211. width = 32,
  2212. height = 32,
  2213. z_index = 1
  2214. },
  2215. }
  2216. },
  2217. {
  2218. -- Army
  2219. components = {
  2220. transform = {
  2221. position = { x = 497, y = 450 },
  2222. scale = { x = 1.0, y = 1.0 },
  2223. rotation = 0.0, -- degrees
  2224. },
  2225. sprite = {
  2226. texture_asset_id = "army-walk-right-texture",
  2227. width = 32,
  2228. height = 32,
  2229. z_index = 1
  2230. },
  2231. }
  2232. },
  2233. {
  2234. -- Army
  2235. components = {
  2236. transform = {
  2237. position = { x = 572, y = 560 },
  2238. scale = { x = 1.0, y = 1.0 },
  2239. rotation = 0.0, -- degrees
  2240. },
  2241. sprite = {
  2242. texture_asset_id = "army-gun-left-texture",
  2243. width = 32,
  2244. height = 32,
  2245. z_index = 1
  2246. },
  2247. }
  2248. },
  2249. {
  2250. -- Army
  2251. components = {
  2252. transform = {
  2253. position = { x = 114, y = 980 },
  2254. scale = { x = 1.0, y = 1.0 },
  2255. rotation = 0.0, -- degrees
  2256. },
  2257. sprite = {
  2258. texture_asset_id = "army-walk-up-texture",
  2259. width = 32,
  2260. height = 32,
  2261. z_index = 1
  2262. },
  2263. }
  2264. },
  2265. {
  2266. -- Army
  2267. components = {
  2268. transform = {
  2269. position = { x = 114, y = 1030 },
  2270. scale = { x = 1.0, y = 1.0 },
  2271. rotation = 0.0, -- degrees
  2272. },
  2273. sprite = {
  2274. texture_asset_id = "army-walk-down-texture",
  2275. width = 32,
  2276. height = 32,
  2277. z_index = 1
  2278. },
  2279. }
  2280. },
  2281. {
  2282. -- Army
  2283. components = {
  2284. transform = {
  2285. position = { x = 883, y = 490 },
  2286. scale = { x = 1.0, y = 1.0 },
  2287. rotation = 0.0, -- degrees
  2288. },
  2289. sprite = {
  2290. texture_asset_id = "army-walk-left-texture",
  2291. width = 32,
  2292. height = 32,
  2293. z_index = 1
  2294. },
  2295. }
  2296. },
  2297. {
  2298. -- Army
  2299. components = {
  2300. transform = {
  2301. position = { x = 113, y = 851 },
  2302. scale = { x = 1.0, y = 1.0 },
  2303. rotation = 0.0, -- degrees
  2304. },
  2305. sprite = {
  2306. texture_asset_id = "army-gun-right-texture",
  2307. width = 32,
  2308. height = 32,
  2309. z_index = 1
  2310. },
  2311. }
  2312. },
  2313. {
  2314. -- Army
  2315. components = {
  2316. transform = {
  2317. position = { x = 750, y = 630 },
  2318. scale = { x = 1.0, y = 1.0 },
  2319. rotation = 0.0, -- degrees
  2320. },
  2321. sprite = {
  2322. texture_asset_id = "army-walk-left-texture",
  2323. width = 32,
  2324. height = 32,
  2325. z_index = 1
  2326. },
  2327. }
  2328. },
  2329. {
  2330. -- Army
  2331. components = {
  2332. transform = {
  2333. position = { x = 800, y = 630 },
  2334. scale = { x = 1.0, y = 1.0 },
  2335. rotation = 0.0, -- degrees
  2336. },
  2337. sprite = {
  2338. texture_asset_id = "army-walk-right-texture",
  2339. width = 32,
  2340. height = 32,
  2341. z_index = 1
  2342. },
  2343. }
  2344. },
  2345. {
  2346. -- Army
  2347. components = {
  2348. transform = {
  2349. position = { x = 856, y = 115 },
  2350. scale = { x = 1.0, y = 1.0 },
  2351. rotation = 0.0, -- degrees
  2352. },
  2353. sprite = {
  2354. texture_asset_id = "army-gun-down-texture",
  2355. width = 32,
  2356. height = 32,
  2357. z_index = 1
  2358. },
  2359. }
  2360. },
  2361. {
  2362. -- Army
  2363. components = {
  2364. transform = {
  2365. position = { x = 900, y = 115 },
  2366. scale = { x = 1.0, y = 1.0 },
  2367. rotation = 0.0, -- degrees
  2368. },
  2369. sprite = {
  2370. texture_asset_id = "army-gun-up-texture",
  2371. width = 32,
  2372. height = 32,
  2373. z_index = 1
  2374. },
  2375. }
  2376. },
  2377. {
  2378. -- Army
  2379. components = {
  2380. transform = {
  2381. position = { x = 1117, y = 530 },
  2382. scale = { x = 1.0, y = 1.0 },
  2383. rotation = 0.0, -- degrees
  2384. },
  2385. sprite = {
  2386. texture_asset_id = "army-walk-right-texture",
  2387. width = 32,
  2388. height = 32,
  2389. z_index = 1
  2390. },
  2391. }
  2392. },
  2393. {
  2394. -- Army
  2395. components = {
  2396. transform = {
  2397. position = { x = 755, y = 440 },
  2398. scale = { x = 1.0, y = 1.0 },
  2399. rotation = 0.0, -- degrees
  2400. },
  2401. sprite = {
  2402. texture_asset_id = "army-gun-down-texture",
  2403. width = 32,
  2404. height = 32,
  2405. z_index = 1
  2406. },
  2407. }
  2408. },
  2409. {
  2410. -- Army
  2411. components = {
  2412. transform = {
  2413. position = { x = 810, y = 440 },
  2414. scale = { x = 1.0, y = 1.0 },
  2415. rotation = 0.0, -- degrees
  2416. },
  2417. sprite = {
  2418. texture_asset_id = "army-gun-down-texture",
  2419. width = 32,
  2420. height = 32,
  2421. z_index = 1
  2422. },
  2423. }
  2424. },
  2425. {
  2426. -- Army
  2427. components = {
  2428. transform = {
  2429. position = { x = 1390, y = 690 },
  2430. scale = { x = 1.0, y = 1.0 },
  2431. rotation = 0.0, -- degrees
  2432. },
  2433. sprite = {
  2434. texture_asset_id = "army-walk-killed-texture",
  2435. width = 32,
  2436. height = 32,
  2437. z_index = 1
  2438. },
  2439. }
  2440. },
  2441. {
  2442. -- Army
  2443. components = {
  2444. transform = {
  2445. position = { x = 1425, y = 690 },
  2446. scale = { x = 1.0, y = 1.0 },
  2447. rotation = 0.0, -- degrees
  2448. },
  2449. sprite = {
  2450. texture_asset_id = "army-walk-killed-texture",
  2451. width = 32,
  2452. height = 32,
  2453. z_index = 1
  2454. },
  2455. }
  2456. },
  2457. {
  2458. -- Army
  2459. components = {
  2460. transform = {
  2461. position = { x = 1465, y = 690 },
  2462. scale = { x = 1.0, y = 1.0 },
  2463. rotation = 0.0, -- degrees
  2464. },
  2465. sprite = {
  2466. texture_asset_id = "army-walk-killed-texture",
  2467. width = 32,
  2468. height = 32,
  2469. z_index = 1
  2470. },
  2471. }
  2472. },
  2473. {
  2474. -- Boat
  2475. components = {
  2476. transform = {
  2477. position = { x = 80, y = 520 },
  2478. scale = { x = 0.8, y = 0.8 },
  2479. rotation = 0.0, -- degrees
  2480. },
  2481. sprite = {
  2482. texture_asset_id = "boat-texture",
  2483. width = 21,
  2484. height = 126,
  2485. z_index = 1
  2486. },
  2487. }
  2488. },
  2489. {
  2490. -- Boat
  2491. components = {
  2492. transform = {
  2493. position = { x = 80, y = 790 },
  2494. scale = { x = 0.8, y = 0.8 },
  2495. rotation = 0.0, -- degrees
  2496. },
  2497. sprite = {
  2498. texture_asset_id = "boat-texture",
  2499. width = 21,
  2500. height = 126,
  2501. z_index = 1
  2502. },
  2503. }
  2504. },
  2505. {
  2506. -- Boat
  2507. components = {
  2508. transform = {
  2509. position = { x = 345, y = 423 },
  2510. scale = { x = 0.8, y = 0.8 },
  2511. rotation = 270.0, -- degrees
  2512. },
  2513. sprite = {
  2514. texture_asset_id = "boat-texture",
  2515. width = 21,
  2516. height = 126,
  2517. z_index = 1
  2518. },
  2519. }
  2520. },
  2521. {
  2522. -- Boat
  2523. components = {
  2524. transform = {
  2525. position = { x = 1510, y = 460 },
  2526. scale = { x = 0.8, y = 0.8 },
  2527. rotation = 0.0, -- degrees
  2528. },
  2529. sprite = {
  2530. texture_asset_id = "boat-texture",
  2531. width = 21,
  2532. height = 126,
  2533. z_index = 1
  2534. },
  2535. }
  2536. },
  2537. {
  2538. -- Carrier
  2539. components = {
  2540. transform = {
  2541. position = { x = 670, y = 150 },
  2542. scale = { x = 1.0, y = 1.0 },
  2543. rotation = 0.0, -- degrees
  2544. },
  2545. sprite = {
  2546. texture_asset_id = "carrier-texture",
  2547. width = 59,
  2548. height = 191,
  2549. z_index = 1
  2550. },
  2551. }
  2552. },
  2553. {
  2554. -- Carrier
  2555. components = {
  2556. transform = {
  2557. position = { x = 300, y = 975 },
  2558. scale = { x = 1.0, y = 1.0 },
  2559. rotation = 0.0, -- degrees
  2560. },
  2561. sprite = {
  2562. texture_asset_id = "carrier-texture",
  2563. width = 59,
  2564. height = 191,
  2565. z_index = 1
  2566. },
  2567. }
  2568. },
  2569. {
  2570. -- F-22 fighter jet
  2571. group = "enemies",
  2572. components = {
  2573. transform = {
  2574. position = { x = 688, y = 165 },
  2575. scale = { x = 1.0, y = 1.0 },
  2576. rotation = 0.0, -- degrees
  2577. },
  2578. sprite = {
  2579. texture_asset_id = "f22-texture",
  2580. width = 32,
  2581. height = 32,
  2582. z_index = 4
  2583. },
  2584. animation = {
  2585. num_frames = 2,
  2586. speed_rate = 10 -- fps
  2587. },
  2588. boxcollider = {
  2589. width = 20,
  2590. height = 25,
  2591. offset = { x = 5, y = 5}
  2592. },
  2593. health = {
  2594. health_percentage = 100
  2595. }
  2596. }
  2597. },
  2598. {
  2599. -- SU-27 fighter jet
  2600. group = "enemies",
  2601. components = {
  2602. transform = {
  2603. position = { x = 685, y = 300 },
  2604. scale = { x = 1.0, y = 1.0 },
  2605. rotation = -10.0, -- degrees
  2606. },
  2607. rigidbody = {
  2608. velocity = { x = -5.5 , y = -35.0 }
  2609. },
  2610. sprite = {
  2611. texture_asset_id = "su27-texture",
  2612. width = 32,
  2613. height = 32,
  2614. z_index = 5
  2615. },
  2616. animation = {
  2617. num_frames = 2,
  2618. speed_rate = 10 -- fps
  2619. },
  2620. boxcollider = {
  2621. width = 25,
  2622. height = 30,
  2623. offset = { x = 5, y = 0 }
  2624. },
  2625. health = {
  2626. health_percentage = 100
  2627. }
  2628. }
  2629. },
  2630. {
  2631. -- Bomber plane
  2632. group = "enemies",
  2633. components = {
  2634. transform = {
  2635. position = { x = 464, y = 520 },
  2636. scale = { x = 1.0, y = 1.0 },
  2637. rotation = 0.0, -- degrees
  2638. },
  2639. sprite = {
  2640. texture_asset_id = "bomber-texture",
  2641. width = 32,
  2642. height = 32,
  2643. z_index = 5
  2644. },
  2645. animation = {
  2646. num_frames = 2,
  2647. speed_rate = 10 -- fps
  2648. },
  2649. boxcollider = {
  2650. width = 32,
  2651. height = 32,
  2652. offset = { x = 0, y = 0 }
  2653. },
  2654. health = {
  2655. health_percentage = 100
  2656. }
  2657. }
  2658. },
  2659. {
  2660. -- FW190 plane
  2661. group = "enemies",
  2662. components = {
  2663. transform = {
  2664. position = { x = 1000, y = 143 },
  2665. scale = { x = 1.0, y = 1.0 },
  2666. rotation = -90.0, -- degrees
  2667. },
  2668. rigidbody = {
  2669. velocity = { x = -50.0, y = 0.0 }
  2670. },
  2671. sprite = {
  2672. texture_asset_id = "fw190-texture",
  2673. width = 32,
  2674. height = 32,
  2675. z_index = 6
  2676. },
  2677. animation = {
  2678. num_frames = 3,
  2679. speed_rate = 15 -- fps
  2680. },
  2681. boxcollider = {
  2682. width = 32,
  2683. height = 30,
  2684. offset = { x = 0, y = 0 }
  2685. },
  2686. health = {
  2687. health_percentage = 100
  2688. }
  2689. }
  2690. },
  2691. {
  2692. -- UPF7 plane
  2693. group = "enemies",
  2694. components = {
  2695. transform = {
  2696. position = { x = 920, y = 179 },
  2697. scale = { x = 0.8, y = 0.8 },
  2698. rotation = 0.0, -- degrees
  2699. },
  2700. sprite = {
  2701. texture_asset_id = "upf7-texture",
  2702. width = 32,
  2703. height = 32,
  2704. z_index = 5
  2705. },
  2706. animation = {
  2707. num_frames = 2,
  2708. speed_rate = 10 -- fps
  2709. }
  2710. }
  2711. },
  2712. {
  2713. -- UPF7 plane
  2714. group = "enemies",
  2715. components = {
  2716. transform = {
  2717. position = { x = 950, y = 179 },
  2718. scale = { x = 0.8, y = 0.8 },
  2719. rotation = 0.0, -- degrees
  2720. },
  2721. sprite = {
  2722. texture_asset_id = "upf7-texture",
  2723. width = 32,
  2724. height = 32,
  2725. z_index = 5
  2726. },
  2727. animation = {
  2728. num_frames = 2,
  2729. speed_rate = 10 -- fps
  2730. }
  2731. }
  2732. },
  2733. {
  2734. -- UPF7 plane
  2735. group = "enemies",
  2736. components = {
  2737. transform = {
  2738. position = { x = 980, y = 179 },
  2739. scale = { x = 0.8, y = 0.8 },
  2740. rotation = 0.0, -- degrees
  2741. },
  2742. sprite = {
  2743. texture_asset_id = "upf7-texture",
  2744. width = 32,
  2745. height = 32,
  2746. z_index = 5
  2747. },
  2748. animation = {
  2749. num_frames = 2,
  2750. speed_rate = 10 -- fps
  2751. }
  2752. }
  2753. },
  2754. {
  2755. -- SU-27 fighter jet
  2756. group = "enemies",
  2757. components = {
  2758. transform = {
  2759. position = { x = 317, y = 985 },
  2760. scale = { x = 1.0, y = 1.0 },
  2761. rotation = 0.0, -- degrees
  2762. },
  2763. rigidbody = {
  2764. velocity = { x = 0.0, y = -50.0 }
  2765. },
  2766. sprite = {
  2767. texture_asset_id = "su27-texture",
  2768. width = 32,
  2769. height = 32,
  2770. z_index = 5
  2771. },
  2772. animation = {
  2773. num_frames = 2,
  2774. speed_rate = 10 -- fps
  2775. },
  2776. boxcollider = {
  2777. width = 32,
  2778. height = 32
  2779. },
  2780. health = {
  2781. health_percentage = 100
  2782. },
  2783. projectile_emitter = {
  2784. projectile_velocity = { x = 0, y = -100 },
  2785. projectile_duration = 5, -- seconds
  2786. repeat_frequency = 1, -- seconds
  2787. hit_percentage_damage = 10,
  2788. friendly = false
  2789. },
  2790. on_update_script = {
  2791. [0] =
  2792. function(entity, delta_time, ellapsed_time)
  2793. -- this function makes the fighter jet move up and down the map shooting projectiles
  2794. local current_position_x, current_position_y = get_position(entity)
  2795. local current_velocity_x, current_velocity_y = get_velocity(entity)
  2796. -- if it reaches the top or the bottom of the map
  2797. if current_position_y < 10 or current_position_y > map_height - 32 then
  2798. set_velocity(entity, 0, current_velocity_y * -1); -- flip the entity y-velocity
  2799. else
  2800. set_velocity(entity, 0, current_velocity_y); -- do not flip y-velocity
  2801. end
  2802. -- set the transform rotation to match going up or down
  2803. if (current_velocity_y < 0) then
  2804. set_rotation(entity, 0) -- point up
  2805. set_projectile_velocity(entity, 0, -200) -- shoot projectiles up
  2806. else
  2807. set_rotation(entity, 180) -- point down
  2808. set_projectile_velocity(entity, 0, 200) -- shoot projectiles down
  2809. end
  2810. end
  2811. }
  2812. }
  2813. },
  2814. {
  2815. -- F-22 fighter jet
  2816. group = "enemies",
  2817. components = {
  2818. transform = {
  2819. position = { x = 10, y = 10 },
  2820. scale = { x = 1.0, y = 1.0 },
  2821. rotation = 90.0, -- degrees
  2822. },
  2823. rigidbody = {
  2824. velocity = { x = 0.0, y = 0.0 }
  2825. },
  2826. sprite = {
  2827. texture_asset_id = "f22-texture",
  2828. width = 32,
  2829. height = 32,
  2830. z_index = 5
  2831. },
  2832. animation = {
  2833. num_frames = 2,
  2834. speed_rate = 10 -- fps
  2835. },
  2836. boxcollider = {
  2837. width = 32,
  2838. height = 32
  2839. },
  2840. health = {
  2841. health_percentage = 100
  2842. },
  2843. projectile_emitter = {
  2844. projectile_velocity = { x = 200, y = 0 },
  2845. projectile_duration = 1, -- secondsm
  2846. repeat_frequency = 1, -- seconds
  2847. hit_percentage_damage = 10,
  2848. friendly = false
  2849. },
  2850. on_update_script = {
  2851. [0] =
  2852. function(entity, delta_time, ellapsed_time)
  2853. -- change the position of the the airplane to follow a sine wave movement
  2854. local new_x = ellapsed_time * 0.09
  2855. local new_y = 200 + (math.sin(ellapsed_time * 0.001) * 50)
  2856. set_position(entity, new_x, new_y) -- set the new position
  2857. end
  2858. }
  2859. }
  2860. }
  2861. }
  2862. }
  2863. -- Define some useful global variables
  2864. map_width = Level.tilemap.num_cols * Level.tilemap.tile_size * Level.tilemap.scale
  2865. map_height = Level.tilemap.num_rows * Level.tilemap.tile_size * Level.tilemap.scale