Skip to content

Instantly share code, notes, and snippets.

@AlexanderBrevig
Last active April 23, 2018 21:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?

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