[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture


View post   

File: 1.82 MB, 1620x2303, 1273480020056.png [View same] [iqdb] [saucenao] [google]
6012917 No.6012917 [Reply] [Original]

Why are they called "hit boxes" when they are clearly round?

>> No.6012918

Why do they call you a retard when you're a spergloid?

>> No.6012920

It's a term, retard.

>> No.6012924

Couldn't they just call it "hit spot"?

>> No.6012930

>>6012918
Hey man, is your name banned? That would be so funny.

>> No.6012931

Wouldn't it be easier to code collision in 2D as boxes?

Maybe they just made it a circle to fit with the style of the game, but the hitbox itself is square. Does anyone know for sure?

>> No.6012935

very tempted to call them hit circles, but boxes usually signify that what's inside is important too, hit circle would just give importance to circumference, especially when you get hit by bullets that's being spawn upon you, they obviously hit inside the circle not just touch the edge of it, you could consider call it hit round box, but that's just too long-winded

>> No.6012940

Because they aren't round. Maybe you should check your eyes.

>> No.6013736

They are boxes. The circle you see isn't your actual hitbox. It's only round for aesthetic reasons.

>> No.6013746
File: 141 KB, 500x689, 30f864f57300eb32f0ab5248d032445f.jpg [View same] [iqdb] [saucenao] [google]
6013746

At least post some Alice while discussing, guys.

>> No.6013752

>>6012935
>boxes usually signify that what's inside is important too

I never thought of it that way. I guess the hitbox is the seat of the soul.

>> No.6013758
File: 314 KB, 575x800, 1282403216445.jpg [View same] [iqdb] [saucenao] [google]
6013758

>>6013746
Why would anyone care for Alice?

>> No.6013769
File: 5 KB, 200x100, Th02hitbox_a.png [View same] [iqdb] [saucenao] [google]
6013769

sure is autism

anyway they actually are boxes

>> No.6013770

Hey guys I have a funnelchest IRL(which is basicly like having a dent in chest)
So I was playing soccer with some people a while ago and the ball hit my funnelchest.

It hurt so bad that I couldn't move for like 1 minute.
My first thought after getting hit by the ball was:"So that's what a touhou feels after getting her hitbox hit"

>> No.6013772

The hitbox it the touhou's most erogenous zone.

>> No.6013773

They only look round. Play genetos or something and you'll see they are actually square.

>> No.6013774

>>6013770
Serves you right, learn to bomb defensively.

>> No.6013777

You know, it's just a bunch of pixels in the end. So it's a box.

>> No.6013779

Why call them "A pair of panties" when its only one?
Why call "Bra" with no plural when there are two of them?
Why call them "Ties" when you don't tie them you knot them?
Why call it Iceland when its green?
Why call it greenland when its ice?

OP OPENED UP A CAN OF WORMS.

>> No.6013783
File: 77 KB, 480x480, 7a69b046e343465ca89ee60969d46584.gif [View same] [iqdb] [saucenao] [google]
6013783

>>6013770
Grazing motherfucker, do you know it?

>> No.6013806

>>6013736

No, a friend of mine has disassembled the code and it's circles. Or at least, it's intended to be.

ZUN has a bug in his hitbox code that's stuck around since MoF. The way he calculates collision is as follows:

if( (player.x - bullet.x)^2 + (player.y - bullet.y)^2 < (player.radius^2 + bullet.radius^2) )

Unfortunately, the correct math is:

if( (player.x - bullet.x)^2 + (player.y - bullet.y)^2 < (player.radius + bullet.radius)^2 )

because (a^2+b^2) is not the same as (a+b)^2.

A simple example: if your hitbox is 5 pixels of radius, and a bullet's hitbox is 10, then you should hit if you get within 15 pixels of the bullet. But with ZUN Math (TM), you hit if you get within 11.2 pixels. Yes, that's right, recent Touhou games are easier than they should be because ZUN fails at algebra.

>> No.6013808
File: 164 KB, 664x994, dichromatic_butterfly_36.jpg [View same] [iqdb] [saucenao] [google]
6013808

Speaking of hitboxes...

>> No.6013817

>>6013806
he intended it to be that way.


By the way, has he cracked the code for the scripts and danmaku patterns yet? What tool does he use?

>> No.6013831

>>6013806
If you're going to intentionally make deceptive sprites, why not go all the way and make deceptive code as well? Half the fun of danmaku is "I can't believe I just survived that!" and his code gives more of that.

>> No.6013853

Does ZUN ever use non-circle collision tests?

>> No.6013855
File: 220 KB, 580x395, 1229007337970.jpg [View same] [iqdb] [saucenao] [google]
6013855

It's a term. Calculating collisions betwen complex objects is well... complex and cpu hungry. Might as well place invisible boxes over them, collide the boxes, the difference is barely noticeable.

Think of the scenario in the picture. Say you have to write a program for Alice to react if touched. it would be much easier if you replaced her with a box rather than modelling her entire surface.

>> No.6013867

>>6012917
They are not round, you don't see the collision boxes, just a sprite that represents a collision object. And they are called collision boxes or hit boxes for obvious reasons.

>> No.6013871

>>6013867
It's not obvious at all because they are not boxes.

>> No.6013880

>>6013871
Okay, maybe not in Touhou, but in most other games they are.

>> No.6013883
File: 127 KB, 575x2000, 254213452.jpg [View same] [iqdb] [saucenao] [google]
6013883

>>6013808

>> No.6013915

>>6013880
If they can get away with it, sure.

>> No.6013940
File: 87 KB, 469x428, Trollface_HD.jpg [View same] [iqdb] [saucenao] [google]
6013940

>>6013883
This is what Marisa players actually believe.

>> No.6013958
File: 166 KB, 671x996, 46516432167.jpg [View same] [iqdb] [saucenao] [google]
6013958

>> No.6013977
File: 376 KB, 800x680, 42164254.jpg [View same] [iqdb] [saucenao] [google]
6013977

Touch that hitbox, oh yes.

>> No.6013978

In order to stop Reimu, get her to realize the true meaning of Christmas.

>> No.6013979

>>6013958

wat. is she trying to extract it or something?

>> No.6013985

>>6013817

He thinks it's a custom tool. He was able to insert some danmakus from other levels into each other, but that's about it.

>> No.6013990

>>6013979

No,she's trying to hit her.

>> No.6013994

Maybe they're round boxes

>> No.6013996

>>6013979
trying to touch it.

>> No.6013999

>>6013977
That hitbox looks fucking disgusting.

>> No.6014040
File: 93 KB, 512x456, etama2.png [View same] [iqdb] [saucenao] [google]
6014040

>> No.6014106

>>6013806
hey that's interesting, but maybe it's intentional. The "circle" of your hitbox is a constant (=k)
It basically means you're not dead on immediate contact but always have 2k*bullet.radius space to move into the bullet before dying. This means for bigger bullets you can go in a bit deeper.
It would make sense to me.

>> No.6014221

>>6013999
That's how you know it's sexual in nature.

>> No.6014349

I have a fucking huge hitbox.

>> No.6014452

>>6013806
1/10

>> No.6014536
File: 570 KB, 640x480, th199.png [View same] [iqdb] [saucenao] [google]
6014536

>>6013806

I'm confused.

I told people about that because it still showed up in 12.8.

No one has talked to be about ECL scripts recently nor have I actually bothered to transplant them at all.

Only DS/12.8 use circles for everything besides lasers in MoF+. Actually, I've never bothered to check MoF because I'm lazy.
Pic related.

>> No.6014637
File: 13 KB, 260x250, Scared Reimu.jpg [View same] [iqdb] [saucenao] [google]
6014637

>>6013806
>SA is supposed to be harder than it already is

>> No.6014651

>>6014637
SA is fucking easy.

I already did a no focus pacifist on lunatic using team Aya.

>> No.6014675

>>6014651
Aren't you a real champ.

>> No.6014688

SA is pure patterns
no random bullets at all

>> No.6015584 [DELETED] 
File: 155 KB, 277x2000, 4256143527.jpg [View same] [iqdb] [saucenao] [google]
6015584

>>6013999

Does it, really? I got that same reaction from somewhere else I posted this... Does it really look that bad?

>> No.6015634
File: 39 KB, 140x186, 1282775461520.jpg [View same] [iqdb] [saucenao] [google]
6015634

>>6013999

Does it, really? I got that same reaction from somewhere else I posted this... Does it really look that bad?

>> No.6015644

>>6015634

It looks like a giant blister...

>> No.6015658

>>6015644
This. Exactly this.
That thing can't be healthy, Reimu. You need to get it checked out immediately.

>> No.6015660

That wouldn't give her pleasure.
It'd inflict unbearable pain.
Or death.

>> No.6015665

>>6013779
These questions haunt me

>>
Name
E-mail
Subject
Comment
Action