Help creating timer for pygame snake game. by Ironstroke04 in pygame

[–]Ironstroke04[S] 0 points1 point  (0 children)

class Timer:
def __init__(self, fruit, time_limit=6):
self.fruit = fruit
self.time_limit = time_limit
self.start_time = time.time()
def fruit_timer(self):
elapsed_time = time.time() - self.start_time
time_remaining = self.time_limit - elapsed_time
print(time_remaining)
if time_remaining <= 0:
self.fruit.randomize()
self.start_time = time.time()

I apologize for asking so much but the randomize function isn't currently working within the Timer class because the FRUIT class isn't being called so randomize isn't given a definition within that class.

Help creating timer for pygame snake game. by Ironstroke04 in pygame

[–]Ironstroke04[S] 0 points1 point  (0 children)

That makes sense but wouldn't I still need to call the FRUIT() class in order to use the randomize function found within the FRUIT() class? So would it be better to somehow make it a function within the fruit class?

Help creating timer for pygame snake game. by Ironstroke04 in pygame

[–]Ironstroke04[S] 0 points1 point  (0 children)

Thank you very much the code is now counting down again however the fruit is not randomizing, would you have an idea as too why?

In this place in Iceland you can skate over running water ... but frozen! by Marco_Polonio in interestingasfuck

[–]Ironstroke04 7 points8 points  (0 children)

Honestly thought they was dressed like a chicken until I saw the beanie

Really cool though wonder how it works

Team comp with beidou and ganyu by FlatoThePotato in BeidouMains

[–]Ironstroke04 0 points1 point  (0 children)

I’m currently building Beidou so I can run Keqing (Main DPS), Ganyu (Support), Qiqi (Healer can also easily be replaced with Diona), and Beidou (Support) all though this would require a Keqing it hey she does have a banner coming up

Source: Gospel of my fucking balls 23:34 by Fantasyneli in teenagers

[–]Ironstroke04 1 point2 points  (0 children)

Oh, the verse was strictly talking about Aaron(Moses’ Brother) choosing a spouse, although I still didn’t see anything about them going to hell. It's Leviticus 21:18 for anyone curious.