Skip to content

Instantly share code, notes, and snippets.

@AlexanderBrevig
Last active April 23, 2018 21:43
Show Gist options
  • Save AlexanderBrevig/9d4b1b8eddceb6efd59b07e84f598c96 to your computer and use it in GitHub Desktop.
Save AlexanderBrevig/9d4b1b8eddceb6efd59b07e84f598c96 to your computer and use it in GitHub Desktop.

Printout of powerupdemo

BASE only has a range, abbreviated as R

ARROW has a range, and a number of projectiles shot

SNIPer has a range, an a rate of fire


BASE and ARROW has a range modifier, base increases with 1, arrow with 2

ARROW has two projectile powerups, starts at 1, then powers up to 2, then to 3

SNIPer has two rate of fire powerups, starts at 3, then powers up to 10, then to 20

dotnet run

Lets print out the tower stats, and apply powerups. Here we go!
BASE: R=1
ARROW: R=1 NUM=1
SNIP: R=1 ROF=3


After powerup 1:
BASE: R=2
ARROW: R=3.5 NUM=1
SNIP: R=1 ROF=10


After powerup 2:
BASE: R=2
ARROW: R=3.5 NUM=2
SNIP: R=1 ROF=20


After powerup 3:
BASE: R=2
ARROW: R=3.5 NUM=3
SNIP: R=1 ROF=20

IT WORKS :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment