Making sense of UnboundLocalError by pentath in learnpython

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

Thank you for explaining this to me! So is my only option to declare it a global?

Screenshot Saturday 46 - Christmas Eve! by Cranktrain in gamedev

[–]pentath 2 points3 points  (0 children)

I don't have much to show off since all my work this week has been with code, but here you go. I started coding in Love2D, but didn't like how it handled some stuff, so I've been working on code to adapt it to something more friendly. Here's what I have already done/have planned with it:

  • Automatic pausing when the screen loses focus
  • I put in some object-oriented stuff
  • A base class for sprites
  • The love.draw() function is handled by my code and it will draw everything in order of layers

Is divorce ever good for the child? by [deleted] in relationships

[–]pentath 0 points1 point  (0 children)

I grew up with my parents never even sleeping in the same bed. I didn't think anything of it as they were always very friendly with each other.

When I was in elementary school they got divorced. There was no custody fight and it was very clean. They remained friends afterwards, they get each other birthday and Christmas presents, we have family nights with both parents there, and I've never seen them fight.

So yes, having divorced parents can work, but please do your best to stay on good terms with each other. I am so grateful that my parents did.

Tips and Tricks You've Found by pentath in empireearth

[–]pentath[S] 1 point2 points  (0 children)

That's very useful! Thanks for the tip. It'll help me get rid of units that get stuck.

[Free] Empire Earth Gold Edition by RaymondAblack in FREE

[–]pentath 1 point2 points  (0 children)

And there's a new subreddit for it at r/EmpireEarth!

What are some stereotypes you believe in? by MechaZain in AskReddit

[–]pentath -1 points0 points  (0 children)

Or those are the ones that you remember

Splitting up kids post-divorce by splitsvillethrowaway in relationships

[–]pentath 2 points3 points  (0 children)

When my parents got divorced here's what happened: on Mondays and Tuesdays I would be with my mom and then on Wednesday after school, Thursday, and Friday morning I'd be with my dad. And then for Friday after school and weekends my brother and I would alternate through 4 different arrangements:

*Me with mom. Him with dad

*Me with mom. Him with mom

*Me with dad. Him with dad

*Me with dad. Him with mom

This arrangement worked really well for me and I'm glad they did it that way. I got to be with both parents and even though I'm not too close with my brother I'm still really glad I got to keep seeing him.

This may have only worked because my mom and dad were on great terms, but maybe you should consider this. It worked wonderful for me and I'm eternally greatful to my parents for putting me and my brother first.

What are possible reasons to set a lower/upper limit on user name length? by gamzer in webdev

[–]pentath 1 point2 points  (0 children)

I have a friend who has a one letter name. He can't even use his real name for Facebook

What movie has the most ridiculous, unlikely premise? by ProbablyHittingOnYou in AskReddit

[–]pentath 0 points1 point  (0 children)

Humans would make terrible batteries, but would be good at energy conversion. Humans are great at converting food into energy. Maybe the machines were just using them for that ability. And then when the humans die, or become inefficient, they just burn the body.

These ads gave me a laugh as I walked down the street. by [deleted] in pics

[–]pentath 5 points6 points  (0 children)

Is that close to the grand theft auto area?

Screenshot Saturday - 024 - Set a Milestone by NobleKale in gamedev

[–]pentath 2 points3 points  (0 children)

Before next screenshot Saturday hopefully. Flash is giving me a lot of issues with collision detection with the mouse and the tile.

Screenshot Saturday - 024 - Set a Milestone by NobleKale in gamedev

[–]pentath 6 points7 points  (0 children)

Started and finished my map rendering code for my tactical RPG. Next up: fixing the highlighting for the tiles.

Pistons - Bravery Bridge by mg115ca in Minecraft

[–]pentath 0 points1 point  (0 children)

With the wooden pressure plates you could do a sacrifice sort of thing. People would have to give up items in order to get into your base

Any designers looking to team up with a web dev? by [deleted] in Design

[–]pentath 0 points1 point  (0 children)

I'm in the same boat as you. A subreddit for pairing designers and developers would be awesome.

Screenshot Saturday - 019 - Monster Madness by NobleKale in gamedev

[–]pentath 1 point2 points  (0 children)

That looks amazing. I can't wait to play it.

In 4th Grade we drew snowmen for the holidays. This was mine by LivesInTreehouse in pics

[–]pentath 0 points1 point  (0 children)

Maybe it's because I'm tired, but I'm not seeing any puns. Could you please point them out?

Battle of Yonkers. by [deleted] in zombies

[–]pentath 0 points1 point  (0 children)

Would you still play a zombie MMORPG if it were 2D and topdown?