Posts

Showing posts from January, 2024

finale update

Image
 When I started the project backup I started by adding an attack radius to the base tower. I also set it up to toggle show the radius which will be use to open the menu to upgrade,   I've added on the code for the enemy class enemy(QGraphicsRectItem,QTimer): def __init__ ( self ,parent= None ): super (enemy, self ). __init__ (parent) self .setRect( 0 , 75 , 75 , 75 ) self .check = 0 def move ( self ): while self .x()< 400 : self .setPos( self .x() + 100 , self .y()) self .check = 1 temp = enemy() temp.singleShot( 1000 ,temp,temp.move) scene.addItem(temp) this code is supposed to make it move and it is more finished than last time it was seen.  I found out why my code just stopped working the file somehow corrupted, but the code inside was fine so I grabbed a older version of the same code I had emailed to my self and copy and pasted the new stuff into it.

Day 7

Image
 I am trying to set up the move function  It isn't working and gives error

Day 6

 Today I started a few things I started making enemies and the start button to start the round here is the current code for both class enemy(QGraphicsRectItem,QTimer): def __init__ ( self ): self .setRect( 0 , 75 , 75 , 75 ) def timerEvent ( self , a0): if self .timeout == true: self .setPos( self .x()+ 5 , self .y()) class startButton(widgets.QPushButton): def __init__ ( self ): if

Day 5

Image
 Today I added the attack radius And the basis for the menu system and I plan to add enemies next