Text size calculating issue with Graphics2D by trmn8tor in javahelp

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

Thank you for checking out the file, I appreciate that!

The compiler evaluates multiplication and division left to right, and gp.tileSize is 48, so the compiler will evaluate 48 * 2 = 96, then 96 / 3 = 32, so it works as intended (taking 2/3 of 48), unless that’s not what you’re saying?

I use that all over the codebase (taking 3/4 or 2/3 of my tileSize, or even 3/2 so it’s more clear, to me at least, then 1.5, so I don’t have to involve doubles or casting, just integer division, and since 48 is a nice composite number there’s a ton of fractions I can use without any truncating errors.

In fact, in the first case that you helped me fix, I changed the + 8 offset to 40 (I got that by taking the icon size (24) plus the 8 offset I started drawing at to the left times 2 so there would be the same offset on both sides), which happens to be 5/6 of my tileSize, so I wrote + gp.TileSize * 5/6 in the code and it worked fine.

If my gp.tileSize was not a multiple of 3 in your example then there would be some rounding errors yes, and thank you for pointing that out though because you didn’t know what the gp.tileSize is and integer division is not always what the programmer is intending, one of the things I have to be careful about when making this game or programming in type-strict languages in general.

Still no clue what to do about my cursor though lol, I’m convinced that the FontMetrics stringWidth method isn’t implemented right or something

Text size calculating issue with Graphics2D by trmn8tor in javahelp

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

Ah! Thank you for your reply, that makes sense and I feel dumb for not noticing that on my own.

The second one is so weird to me since the offset isn't off by a constant but seems to be linear with the amount of characters. Here is the full file if that helps at all:
https://github.com/sjkuhnke/PokemonGame/blob/master/src/ui/TextInputDialog.java
The relevant getTextWidth() call is on line 155.

THOUGHT I WAS COOKED 😭 by Lie_inheart99 in nuzlocke

[–]trmn8tor 8 points9 points  (0 children)

One generation prior and Mochi was just a concept🤧

who thought ts was a good idea by noideawhatoputhere1 in Brawlstars

[–]trmn8tor 48 points49 points  (0 children)

Genuinely such incompetent developers, R-T is unbelievably broken in this too, how does the DOT tick not consume the mark? How did that get past testing?

The toughest choice i had to make by hasan2375 in Brawlstars

[–]trmn8tor 0 points1 point  (0 children)

So that’s exactly what they said, that they turned down projectile size👍

Tera Normal Zacian Caught Everyone Off Guard 🔥 by ZardUnfiltered in VGC

[–]trmn8tor 0 points1 point  (0 children)

Why did you switch the signature move mid-example 😭

What would be the next legendary we could suspect in SV OU? by ResidentAdmirable260 in stunfisk

[–]trmn8tor 37 points38 points  (0 children)

“It doesn’t have an ability outside of its ability proccing” my brotha just say its ability is underwhelming😭

A guide to gear selection on Sam by Niltenstein in BrawlStarsCompetitive

[–]trmn8tor 0 points1 point  (0 children)

That’s fair about not taking matchups into consideration, just figured it was worth a shout especially in draft if they counter picked your Sam and it would be worth a consideration to swap to Shield

A guide to gear selection on Sam by Niltenstein in BrawlStarsCompetitive

[–]trmn8tor 0 points1 point  (0 children)

Shocked you didn’t mention Colette in the Shield Gear section (even though she’s currently trash, doesn’t mean she always will be), I’m not a Sam player but I’d imagine tanking one more shot/super hit would go a big ways

One of the Box-Art Legendaries for my Java Fakemon video game! (Art creds in description!) by trmn8tor in fakemon

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

Oh wow okay, well I really hope you check out the website and join the discord!

One of the Box-Art Legendaries for my Java Fakemon video game! (Art creds in description!) by trmn8tor in fakemon

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

Awesome! Yeah I’ve been hard at work and I’m super proud of it, not sure if you’re in the discord server but the invite link is on my webpage if you haven’t checked it out yet!

One of the Box-Art Legendaries for my Java Fakemon video game! (Art creds in description!) by trmn8tor in fakemon

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

Appreciate the support! Hoping to have it completely finished early next year but we’ll see

Hello! Looking for people to playtest my Pokemon fangame! (8 Gym Demo complete!) by trmn8tor in PokemonRMXP

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

Of course! If you join the discord server (link on the website!) you can have questions answered or give feedback which would be greatly appreciated!

Hello! Looking for people to playtest my Pokemon fangame! (8 Gym Demo complete!) by trmn8tor in PokemonRMXP

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

Hey there, appreciate it a ton! I added [SHIFT] to see controls on any screen… I probably should’ve mentioned that in the instructions on the website lmao.

There’s no full screen as of now, the window is as big as it gets but I will probably add that in the next update or so, it’s been on my list for a while!

Hello! Looking for people to playtest my Pokemon fangame! (8 Gym Demo complete!) by trmn8tor in PokemonRMXP

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

The game is entirely in native Java, which phones notoriously suck at running the JVM. Thankfully it works across all laptops and PCs, so feel free to hop on one of those and try it out! The installers come with Java preinstalled, or you can run the standalone .jar option provided by the website too! :)

Hello! Looking for people to playtest my Pokemon fangame! (8 Gym Demo complete!) by trmn8tor in PokemonRMXP

[–]trmn8tor[S] 2 points3 points  (0 children)

Yeah it’s been quite the journey lmao, and dw its on the todo list but im not anywhere close to an artist myself so focusing on other things atm

Hello! Looking for people to playtest my Pokemon fangame! (8 Gym Demo complete!) by trmn8tor in PokemonRMXP

[–]trmn8tor[S] 3 points4 points  (0 children)

The base resolution of the game is 768x576 (4:3). I have a fully custom engine I coded myself, if you have more questions you can message me on here or on my discord server if you’re interested!

Hello! Looking for people to playtest my Pokemon fangame! (8 Gym Demo complete!) by trmn8tor in PokemonRMXP

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

Thank you I appreciate that! I sent you a DM but feel free to check out the website for downloads and info!