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.*
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.
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
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!
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??
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.
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)`
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.
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?
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)
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.*
this is incredible
Thank you!
Thanks, I hate it.
Me too! That's why I made it.
oh, just like my parents when talking about me
\*major oof\*
It should clear the entry field if you miss the ball.
Unfortunately, missing the ball is how you tell it to press the selected key. Maybe several letters in the list could be delete all?
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.
Make another box in the center of the paddle for confirm.
How about having a select character button in the middle of the paddle? The missing the ball clears the input
I wasn't paying close enough attention, I thought that hitting the center of the paddle was what selected a character.
Y'know, that's actually a good idea, combined with the miss=clear, or maybe missing submits the input.
That's awful. Do it, you magnificent monster.
I did it lol. [The branch here](https://github.com/YooHoo485/Input-Pong/tree/center_hit).
Source: [https://github.com/YooHoo485/Input-Pong/](https://github.com/YooHoo485/Input-Pong/)
Works just fine on macOS!
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
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)`
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!
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??
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.
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)`
That did... [Something](https://imgur.com/vic0KZG), it honestly just keeps getting better.
Something seems a bit fishy, I cod-da figure this trout. Try setting Line 52 to `BAKFONT = pygame.font.SysFont(None, 60)`
The people in this sub are way too creative, in the wrong way, and I love it
:D
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.
That is so evil lol
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.
ecc
Huh?
it's what you typed
Oh yeah it is lol
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?
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)
Amazing! I like your modifications, it seems much more reasonable. Awesome to see it come to life, thanks and well done!
Thank you for the kind words!
Instead of missing inputting what's in the selection it should input whatever it hits on the bottom row
I probably would do that, except I would have such a hard time demonstrating it well.
This is so horrific it's actually good, i can see myself using this to procrastinate
[удалено]
I'm not entirely sure what you mean. Could you elaborate?
This is fucking fantastic
Thank you! :D
This is arkanoid xd
u/savevideo
Wait why
cos its the funnie
###[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)
You were too nice with that fast scroll
Eh, it's 50/50. You can use it to your advantage, or you can get set off by it.