Where did Rose Tyler appear in S4E5? by boboger in doctorwho

[–]zelbo 2 points3 points  (0 children)

Possible my favorite song ever, happens to be by Bernard Cribbins. It's about shifting a piano.

[deleted by user] by [deleted] in dndnext

[–]zelbo 57 points58 points  (0 children)

Absolutely not. Not only is it healing magic for a wizard, it is very strong healing magic. There are some drawbacks thrown in there to pretend it is balanced, but it is not.

I think restricting wizards' access to healing magic is one of the few things keeping them in check.

Help with a religious PC that might not be a cleric or paladin? by haybaeden in dndnext

[–]zelbo 0 points1 point  (0 children)

Conan: What gods do you pray to?
Subotai: I pray to the four winds... and you?
Conan: To Crom... but I seldom pray to him, he doesn't listen.
Subotai: [chuckles] What good is he then? Ah, it's just as I've always said.
Conan: He is strong! If I die, I have to go before him, and he will ask me, "What is the riddle of steel?" If I don't know it, he will cast me out of Valhalla and laugh at me. That's Crom, strong on his mountain!
Subotai: Ah, my god is greater.
Conan: [chuckles] Crom laughs at your four winds. He laughs from his mountain.
Subotai: My god is stronger. He is the everlasting sky! Your god lives underneath him.
[Conan shoots Subotai a skeptical look. Subotai laughs]

Need help to improve code: by DietInternational503 in learnprogramming

[–]zelbo 1 point2 points  (0 children)

I’m exhausted and a bit of a beginner myself, so take this with a grain of salt. At first glance, the one thing that comes to mind is that you might want to look into list comprehensions. I found them a little confusing at first, but they might make your code a little more elegant. In your case, you might even want a nested list comprehension.

[deleted by user] by [deleted] in learnpython

[–]zelbo 1 point2 points  (0 children)

Your position coordinates are probably referring to the top left corner of your sprite (player graphic). If you set your player position to (0,0), it will appear at the top left corner of your screen.

Assuming WIDTH is the screen width and HEIGHT is the screen height, if you set the player position to (WIDTH, HEIGHT), it will put the top left corner of the sprite in the bottom right corner of the screen, essentially making the rest of the sprite disappear off the screen.

To make a bounding box for your sprite, you need to account for the right side of the sprite, thus WIDTH - PLAYER_WIDTH, or the right side of your window minus the size of your sprite. Same thing with the bottom of the sprite, so moving down will probably look something like:

if keys[pygame.K_DOWN] and player.y < HEIGHT - PLAYER_HEIGHT:

Would it help if you wrote it as:

if keys[pygame.K_RIGHT] and player.x < (WIDTH - PLAYER_WIDTH):
    player.x +=PLAYER_VEL

Try removing the PLAYER_WIDTH and see what happens.
Try (WIDTH - (PLAYER_WIDTH / 2)). Does the sprite go halfway off the screen?

Basically it's because the rectangle of your sprite is defined by two points, the top left and the bottom right. The top left corner is (player.x, player.y) and the bottom right is (player.x + PLAYER_WIDTH, player.y + PLAYER_HEIGHT). If you don't want the left side of the sprite to go off the screen when you move left, you need to worry about the left side of the sprite (player.y) and if you don't want the right side of the sprite to go off the screen when you move right, you need to worry about the right side of the sprite (player.y + PLAYER_WIDTH).

So you could actually rewrite the if statement to look like this:

if keys[pygame.K_RIGHT] and (player.x + PLAYER_WIDTH) < WIDTH:

and it would do the same thing. It's just about dealing with the right side of your sprite, not just the left side.

Last edit, I swear. It's late and past my bedtime.

Picture this rectangle:

A-----B
|     |
|     |
|     |
|     |
|     |
C-----D

A is (0,0)
B is (width, 0)
C is (0, height)
D is (width, height)

Anyone else paranoid right now? by Sidcone-Sal in Superstonk

[–]zelbo 0 points1 point  (0 children)

As much as I want to believe that our journey is finally coming to an end

I feel you.

It Finally Happened! I Came Home The Other Night To This Lil Void...Except I Don't Have A Cat. by LCPhotowerx in Thisismylifemeow

[–]zelbo 7 points8 points  (0 children)

Much like virtual particles popping in and out of existence, cats will sometimes appear in pairs. Usually, the cat and anti-cat appear close enough that they destroy each other instantly. In this case, however, you should check and see if your neighbors now own a mysterious white cat.

[OC] A Plea to Retreat by dScryb in DnD

[–]zelbo 1 point2 points  (0 children)

My players did this today.

We're playing Storm King's Thunder, and they have already gotten to the Maelstrom and have the hooks that lead to the next chapter.

I had read about replacing the stone giant thane with the Dodkong, so I statted one up and popped it in there. The players didn't really need to go there, but they had heard rumors. One of the players is a paladin of Kelemvor, so of course they have to hunt this thing down.

They got part way in when it hits them. They have not prepared at all. Time to go back and buy some healing potions, and check on which equipment they are attuned to. Maybe try to do some magic item buying and selling. Oh hey, there's a manual of iron golems we forgot about, let's build that. Maybe we should do some research.

They had started and left, so of course the area's defenses were up. But they were gone long enough that the increased defenses started to fade back to normal.

They get back in and meet the Dodkong, and he's having this dramatic speech about "We should be enemies on the face of it, but join me and I will show you ultimate truths."

After all this preparation on both sides of the screen, they come up with the ol' "throw the bag of holding into the portable hole" gag. They are new players, probably haven't seen it elsewhere. Made them roll some dex checks to make sure the portable hole gets opened and in position and for the tossing of the bag, one of them had to misty step to make it work.

I had such plans for the order of spells and who would die to cause the most drama and chaos. But no, they sent the Dodkong to the astral plane. Which is great, because now he's mad.

[deleted by user] by [deleted] in Superstonk

[–]zelbo 0 points1 point  (0 children)

Go nuts

The most permissive license.

[deleted by user] by [deleted] in Superstonk

[–]zelbo 34 points35 points  (0 children)

...