Log In  

Cart #warriorofcayuse-3 | 2021-09-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
16

you are a pilot of MD530F Cayuse warrior.

pilot this tiny helicopter and complete your challenging missions !

You have two kinds of missions : ground attack and rescue.

in ground attack missions, you have to destroy all given targets in the level.

in rescue missions, you have to rescue the hostages and carry them back to your base.
you get a bonus helicopter if you success this mission, but if half or more of hostages are killed the mission is considered as failure and you can't get that bonus.

during the mission, enemy aircrafts (self-destructing drones, gunships, and bombers) will appear to stop you. if you heard aircraft warning sound, watch your radar and fight or avoid them carefully.

by landing at the base, you can rearm weapons and repair the helicopter.
if you press X while landing at the base, you can switch the main weapon between minigun and rockets.

minigun has large amount of ammo and fast firerate speed, which is useful for anti-air and anti-personel but it can't damage armored enemies or buildings.

rockets can damage armored enemies, but its slow projectile speed and less amount of ammo make it hard to deal with aircrafts.

your helicopter can take 2 gunfires, but everything else (flak cannons, shells, bombs, rockets, and walls) can destroy it with one hit.

controls :

X : Fire main weapon / drop bombs when facing center / switch main weapon

Holding O while facing sides : face the opposite direction.

shortly tapping O while facing sides : face the center.

Pressing O while facing center and holding left or right : face the desired direction.

since I had ran out of tokens I couldn't add scoreing and leaderboard. just try and see how many missions you can complete.

P#97333 2021-09-15 06:14 ( Edited 2021-09-23 02:57)

At first glance of your code, one way you can save tokens is by declaring and assigning variables on a single line. So this:

gamemode=0
stlevel=1
titlerotor=0

Becomes this:

gamemode,stlevel,titlerotor=0,1,0

This will get you closer to being able to implement scoring and saving of the highest score.

P#97334 2021-09-15 08:34 ( Edited 2021-09-15 08:34)

You can do it with tables too:

wpnmaxammo={60,30}
wpnspd={4,2.75}

Becomes:

wpnmaxammo,wpnspd={60,30},{4,2.75}
P#97335 2021-09-15 08:35 ( Edited 2021-09-15 08:37)

Thanks timeandspace, I didn't know that was possible.

P#97336 2021-09-15 08:36

Note that you can't use this trick when declaring variables within tables though.

P#97338 2021-09-15 08:37

Another tip. For methods that use only multiple ints as parameters, you can change this:

rectfill(37,118,88,127,5)

To this:

rectfill(split("37,118,88,127,5"))

It will only save you tokens if there are more than two ints though.

P#97340 2021-09-15 08:48

@timeandspace it needs unpack() to work

rectfill(unpack(split"37,118,88,127,5"))

@hijongpark be aware that many token saving techniques can have significant perf impact.
For ex, the above construct is almost 2x slower than regular rectfill call

..
and excellent job!
game is super hard but super enjoyable

P#97349 2021-09-15 18:39 ( Edited 2021-09-15 18:46)
1

1.1 patch

  • I have optimized the code and added scoring. you gain a score when you complete each objectives. Since i didn't want the score displayer to hide the screen all the time the score is only displayed when you are landed at the base or starting/ending the mission.

  • I have adjusted the difficulty, nerfing ground units and buffing air units as they are suppossed to be your biggest threat.
P#97388 2021-09-16 05:58

1.2 patch

  • Infantries will use rocket launcher more frequently as the difficulty increases.

  • Enemy helicopter's movement speed increases based on the difficulty.

  • level 4 has 12 hostages instead of 6.

  • Increased enemy aircraft spawn cooltime.
P#97488 2021-09-18 12:06

Easily a new favorite of mine. So addicting!

P#97534 2021-09-19 06:55

1.3 patch

  • Increased minigun's ammo capacity to 250 from 240.

  • slight modification to enemy helicoipter's AI.

  • Spawn speed of enemy aircrafts changes based on the number of objectives. (less objective means faster spawn)
P#97693 2021-09-23 02:59
:: ilkke

Lovely game!
btw, your itch and youtube are not properly linked

P#97748 2021-09-24 13:20

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-09-25 09:02:30 | 0.073s | Q:29