How many positions are there in a 1x1 spacetile?

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

How many positions are there in a 1x1 spacetile?

Post by Im 'corneum »

How many positions are there in a 1x1 spacetile?
written by Im 'corneum

As you can see there are 4 positions you can be in in a single block hozizontal.
Assuming that the same rules go for this verticaly, we only have to calculate 4x4.
So there are 16 different positions in one block.[bbvideo=560,315]https://www.youtube.com/watch?v=Zdm1jOf ... e=youtu.be[/bbvideo]
Read this for more detailed information (viewtopic.php?p=48510#p48510)
Here are some screens to show it a bit more:
SpoilerShow
Jumped once:
screenshot_2017-01-26_17-01-26.png
screenshot_2017-01-26_17-01-26.png (83.96 KiB) Viewed 7228 times
Jumped twice:
screenshot_2017-01-26_17-01-29.png
screenshot_2017-01-26_17-01-29.png (82.68 KiB) Viewed 7228 times
Jumped three times:
screenshot_2017-01-26_17-01-30.png
screenshot_2017-01-26_17-01-30.png (82.71 KiB) Viewed 7228 times
reply to this post or your mom will die in her sleep tonight
Ninjed
Posts: 1300
Joined: Thu Oct 01, 2015 7:00 pm
Player profile: https://ddnet.tw/players/Le-32-Petit-32-Prince/
Mapper profile: https://ddnet.tw/mappers/Ninjed

Re: How many positions are there in a 1x1 spacetile?

Post by Ninjed »

Wow
The Real One!
RayB.
Posts: 1170
Joined: Mon Dec 01, 2014 9:24 pm
Clan: TOP

Re: How many positions are there in a 1x1 spacetile?

Post by RayB. »

This tutorial helped me a lot, thanks corneum :) .
Welf
Posts: 1838
Joined: Fri Jun 06, 2014 12:20 am
Player profile: http://ddnet.tw/players/Welf/
Mapper profile: http://ddnet.tw/mappers/Welf/

Re: How many positions are there in a 1x1 spacetile?

Post by Welf »

Frontpage pls
User avatar
timakro
Posts: 414
Joined: Mon May 05, 2014 6:05 pm
Location: Germany
Player profile: http://ddnet.tw/players/timakro/
Mapper profile: http://ddnet.tw/mappers/timakro/
Clan: unique

Re: How many positions are there in a 1x1 spacetile?

Post by timakro »

Code: Select all

	//character's size
	static const int ms_PhysSize = 28;
Character size is 28

Code: Select all

int CCollision::GetPureMapIndex(float x, float y)
{
	int Nx = clamp(round_to_int(x)/32, 0, m_Width-1);
	int Ny = clamp(round_to_int(y)/32, 0, m_Height-1);
	...
}
Tile size is 32


32-28=4
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

Re: How many positions are there in a 1x1 spacetile?

Post by Im 'corneum »

Hook and unhook arent filling out the whole tile.
Thats why you can move when surrounded by them, but not when surrounded by stoppers. Stoppers can make you stand still 100%.
You also cant hammer through 1tile of stoppers theoreticly. But since they are bugged, you can Hammer through even better.
reply to this post or your mom will die in her sleep tonight
Welf
Posts: 1838
Joined: Fri Jun 06, 2014 12:20 am
Player profile: http://ddnet.tw/players/Welf/
Mapper profile: http://ddnet.tw/mappers/Welf/

Re: How many positions are there in a 1x1 spacetile?

Post by Welf »

Zeta said there are only stopper bugs because somebody was bad at coding some time ago xD
What about new, actually working, stoppers?
Ninjed
Posts: 1300
Joined: Thu Oct 01, 2015 7:00 pm
Player profile: https://ddnet.tw/players/Le-32-Petit-32-Prince/
Mapper profile: https://ddnet.tw/mappers/Ninjed

Re: How many positions are there in a 1x1 spacetile?

Post by Ninjed »

Omg. Agree thats we need better stoppers. Which can.lt be thru
The Real One!
User avatar
timakro
Posts: 414
Joined: Mon May 05, 2014 6:05 pm
Location: Germany
Player profile: http://ddnet.tw/players/timakro/
Mapper profile: http://ddnet.tw/mappers/timakro/
Clan: unique

Re: How many positions are there in a 1x1 spacetile?

Post by timakro »

Hook and unhook are filling out a full tile, a tee is just smaller than a full tile. I feel like stoppers are an excuse to make a bad designed part work somehow instead of coming up with good one, even if they were implemented correctly.
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

Re: How many positions are there in a 1x1 spacetile?

Post by Im 'corneum »

So stoppers are bigger than one tile o.O
reply to this post or your mom will die in her sleep tonight
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests