thealphadollar / brkout

A game made using PyGame under CodeClub as a learning project.
MIT License
8 stars 19 forks source link

power layout added #49

Closed pixlmaster closed 5 years ago

pixlmaster commented 5 years ago

added basic format for powerups it- 1)randomly spawns a circle in a rectangular region in the grey circle.(to be changed to multiple different colour circles) 2) circle spwans for 3 seconds and then disappears for a random cooldown of 6-12 seconds. 3)Circle to be replaced by sprites later.

changes made.

  1. added constant "spawn" in constants.py 2.made a new class for powerups with an init and update funcs.
  2. in render functions, called the function to update powerup.

further changes to be made

  1. add touch function which checks touching with striker. 2.replace with sprites.
  2. add multiple powreups.

Help =Can we extend the rectangular region to be a circle of the grey region, any ideas on how to do it?

screenshot from 2018-12-13 18-13-04 screenshot from 2018-12-13 18-14-49