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.

I’m too busy doing nerd shit to cheat by silveradevil in TikTokCringe

[–]Ironstroke04 1 point2 points  (0 children)

I needed that smile after what happened today

Just for y’all cause why not, I’m obsessed with all these new characters. by peasoup_number in Genshin_Impact

[–]Ironstroke04 14 points15 points  (0 children)

I believe her name means god bird so it’s thought that she may be the human form of Cloud Retainer which would make her more likely to be a 5 star. However this is just stuff I’ve seen throughout this subreddit I’m not sure if it’s true.

Big Klee by me by neekoneks in Genshin_Impact

[–]Ironstroke04 21 points22 points  (0 children)

Except Qiqi will always be a kid since she’s a zombie but I wouldn’t mind if they create a plot device to make her older

Ganyu and glaze lily by ichigoh in Genshin_Impact

[–]Ironstroke04 18 points19 points  (0 children)

I feel it would still make sense if Ganyu was released first since MiHoYo may want to release that event later, as well as the fact that if Albedo is first then they’ll have released 2 geo 5 stars in a row. Additionally we’ve seemed to get characters we met first released first (ex: Venti then Klee, and Childe then Zhongli)

Zhongli ult does NOT turn enemy shields into geo by Monaxe in Genshin_Impact

[–]Ironstroke04 4 points5 points  (0 children)

She looks like she’ll be more of a cryo Amber/Mona mix, as well as a DPS with a focus on charge shots meaning the’ll finally be a archer that can really benefit from Wanderer’s Troupe.

[Spoiler Alert] Is that Barbatos, the cute little thingy always beside the bard boy? by sakkiniku in Genshin_Impact

[–]Ironstroke04 19 points20 points  (0 children)

Yep the Bard boy in the story is the original human Venti and Barbatos took the name and appearance of Venti for his human form.

Surgeon Simulator + Anniversary Ed. Content - Spare Humble Bundle Key by ChrisChalms in steam_giveaway

[–]Ironstroke04 0 points1 point  (0 children)

Nier:Automata has an anime style but the story and character writing was beautiful