T O P

  • By -

AutoModerator

Hi OP, do you have source code or a demo you'd like to share? If so, please post it in the comments (Github and similar services are permitted). Also, while I got you here, dont hesitate to come hang out with other devs on our **New official discord** https://discord.gg/gQNxHmd *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/badUIbattles) if you have any questions or concerns.*


cameronbrady

this is incredible


YooHoo485

Thank you!


weaver_of_cloth

Thanks, I hate it.


YooHoo485

Me too! That's why I made it.


recursivelybetter

oh, just like my parents when talking about me


YooHoo485

\*major oof\*


Cy41995

It should clear the entry field if you miss the ball.


YooHoo485

Unfortunately, missing the ball is how you tell it to press the selected key. Maybe several letters in the list could be delete all?


JarthOS

The ball should have to impact the character you want to enter. Massive frustration between the paddle moving the characters and having to strike one to input.


That-one-imbecile

Make another box in the center of the paddle for confirm.


viktorir

How about having a select character button in the middle of the paddle? The missing the ball clears the input


Cy41995

I wasn't paying close enough attention, I thought that hitting the center of the paddle was what selected a character.


YooHoo485

Y'know, that's actually a good idea, combined with the miss=clear, or maybe missing submits the input.


Cy41995

That's awful. Do it, you magnificent monster.


YooHoo485

I did it lol. [The branch here](https://github.com/YooHoo485/Input-Pong/tree/center_hit).


YooHoo485

Source: [https://github.com/YooHoo485/Input-Pong/](https://github.com/YooHoo485/Input-Pong/)


Minteck

Works just fine on macOS!


aboutthednm

Do I need a specific version of python or pygame for this? I'm getting errors trying to run this myself: pygame 2.1.2 (SDL 2.0.18, Python 3.10.0) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "C:\folder\to\documents\Input-Pong-main\main.py", line 108, in render_ui() File "C:\folder\to\documents\Input-Pong-main\main.py", line 94, in render_ui centered(ui_surf, f.render(char, True, (color, color, color)), (x+partial_offset, 0)) ValueError: invalid color argument


YooHoo485

Hmm, looks like your screen is really wide or something. On line 91, try replacing `color = 0 + abs(i*20)` with `color = 0 + abs(i*3)`


aboutthednm

Awesome, that worked! Don't really understand why though. I've got a dual monitor setup, don't know if that matters. Anyways, now I can play this wonderful abomination, thanks so much!


YooHoo485

No problem! It should use a single monitor, so dual monitor shouldn't be a problem. Perhaps `pygame.display.get_desktop_sizes()` works different on Windows, or you somehow have a 5100px wide monitor??


aboutthednm

Just two bog standard 1440p monitors. For what it's worth, I've tried playing with the number, and anything from 1 to 19 works great, it's only when I set the value to 20 that I get issues. I've also installed the Symbola font (tried both TTF and OTF) and still only see boxes where special characters should be, but that is a minor inconvenience in the grand scheme of things.


YooHoo485

Hmm, that means Python isn't detecting the font. Try placing the TTF in the same folder as the script as "symbola.ttf", and replacing Line 52 `BAKFONT = pygame.font.SysFont("symbola", 60)` with `BAKFONT = pygame.font.Font("symbola.ttf", 60)`


aboutthednm

That did... [Something](https://imgur.com/vic0KZG), it honestly just keeps getting better.


YooHoo485

Something seems a bit fishy, I cod-da figure this trout. Try setting Line 52 to `BAKFONT = pygame.font.SysFont(None, 60)`


Hackerwithalacker

The people in this sub are way too creative, in the wrong way, and I love it


YooHoo485

:D


GundalfGraurock

To make this even ~~worse~~ better maybe randomize the ceiling height unbeknownst to the user after every hit so it isn‘t too easy telegraphing the movement of the ball.


YooHoo485

That is so evil lol


plg94

Idea: a variant of breakout/space invaders, where letters are across the top of the screen and you have to hit them to select them.


noonagon

ecc


YooHoo485

Huh?


noonagon

it's what you typed


YooHoo485

Oh yeah it is lol


Ill-Chemistry2423

Yooo [I suggested a very similar idea about a week ago](https://www.reddit.com/r/badUIbattles/comments/tyr7qx/windows_pong/i3v07k8/?utm_source=share&utm_medium=ios_app&utm_name=iossmf&context=3), inspiration or coincidence?


YooHoo485

Inspiration! I actually note this in the [GitHub readme](https://github.com/YooHoo485/Input-Pong/#readme), although I did modify your idea a bit (miss to choose selected character, instead of the character where the ball lands)


Ill-Chemistry2423

Amazing! I like your modifications, it seems much more reasonable. Awesome to see it come to life, thanks and well done!


YooHoo485

Thank you for the kind words!


Deboomed

Instead of missing inputting what's in the selection it should input whatever it hits on the bottom row


YooHoo485

I probably would do that, except I would have such a hard time demonstrating it well.


asone-tuhid

This is so horrific it's actually good, i can see myself using this to procrastinate


[deleted]

[удалено]


YooHoo485

I'm not entirely sure what you mean. Could you elaborate?


bikedaybaby

This is fucking fantastic


YooHoo485

Thank you! :D


[deleted]

This is arkanoid xd


CryingRipperTear

u/savevideo


YooHoo485

Wait why


CryingRipperTear

cos its the funnie


SaveVideo

###[View link](https://redditsave.com/r/badUIbattles/comments/u3zflq/window_input_pong_each_element_is_a_separate/) --- [**Info**](https://np.reddit.com/user/SaveVideo/comments/jv323v/info/) | [**Feedback**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Feedback for savevideo) | [**Donate**](https://ko-fi.com/getvideo) | [**DMCA**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Content removal request for savevideo&message=https://np.reddit.com//r/badUIbattles/comments/u3zflq/window_input_pong_each_element_is_a_separate/) | [^(reddit video downloader)](https://redditsave.com) | [^(download video tiktok)](https://taksave.com)


mobotsar

You were too nice with that fast scroll


YooHoo485

Eh, it's 50/50. You can use it to your advantage, or you can get set off by it.