Level1.lua 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874
  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. --[[
  2794. -- this function makes the fighter jet move up and down the map shooting projectiles
  2795. local current_position_x, current_position_y = get_position(entity)
  2796. local current_velocity_x, current_velocity_y = get_velocity(entity)
  2797. -- if it reaches the top or the bottom of the map
  2798. if current_position_y < 10 or current_position_y > map_height - 32 then
  2799. set_velocity(entity, 0, current_velocity_y * -1); -- flip the entity y-velocity
  2800. else
  2801. set_velocity(entity, 0, current_velocity_y); -- do not flip y-velocity
  2802. end
  2803. -- set the transform rotation to match going up or down
  2804. if (current_velocity_y < 0) then
  2805. set_rotation(entity, 0) -- point up
  2806. set_projectile_velocity(entity, 0, -200) -- shoot projectiles up
  2807. else
  2808. set_rotation(entity, 180) -- point down
  2809. set_projectile_velocity(entity, 0, 200) -- shoot projectiles down
  2810. end
  2811. ––]]
  2812. end
  2813. }
  2814. }
  2815. },
  2816. {
  2817. -- F-22 fighter jet
  2818. group = "enemies",
  2819. components = {
  2820. transform = {
  2821. position = { x = 10, y = 10 },
  2822. scale = { x = 1.0, y = 1.0 },
  2823. rotation = 90.0, -- degrees
  2824. },
  2825. rigidbody = {
  2826. velocity = { x = 0.0, y = 0.0 }
  2827. },
  2828. sprite = {
  2829. texture_asset_id = "f22-texture",
  2830. width = 32,
  2831. height = 32,
  2832. z_index = 5
  2833. },
  2834. animation = {
  2835. num_frames = 2,
  2836. speed_rate = 10 -- fps
  2837. },
  2838. boxcollider = {
  2839. width = 32,
  2840. height = 32
  2841. },
  2842. health = {
  2843. health_percentage = 100
  2844. },
  2845. projectile_emitter = {
  2846. projectile_velocity = { x = 200, y = 0 },
  2847. projectile_duration = 1, -- secondsm
  2848. repeat_frequency = 1, -- seconds
  2849. hit_percentage_damage = 10,
  2850. friendly = false
  2851. },
  2852. on_update_script = {
  2853. [0] =
  2854. function(entity, delta_time, ellapsed_time)
  2855. -- change the position of the the airplane to follow a sine wave movement
  2856. local new_x = ellapsed_time * 0.09
  2857. local new_y = 200 + (math.sin(ellapsed_time * 0.001) * 50)
  2858. set_position(entity, new_x, new_y) -- set the new position
  2859. end
  2860. }
  2861. }
  2862. }
  2863. }
  2864. }
  2865. -- Define some useful global variables
  2866. map_width = Level.tilemap.num_cols * Level.tilemap.tile_size * Level.tilemap.scale
  2867. map_height = Level.tilemap.num_rows * Level.tilemap.tile_size * Level.tilemap.scale