How many positions are there in a 1x1 spacetile?

Guides about mapping and everything Teeworlds related.

Im 'corneum
User
Posts: 1046
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

How many positions are there in a 1x1 spacetile?

Post by Im 'corneum » Thu Jan 26, 2017 4:59 pm

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.https://www.youtube.com/watch?v=Zdm1jOfVDio&feature=youtu.be
Read this for more detailed information (https://forum.ddnet.tw/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 1488 times
Jumped twice:
screenshot_2017-01-26_17-01-29.png
screenshot_2017-01-26_17-01-29.png (82.68 KiB) Viewed 1488 times
Jumped three times:
screenshot_2017-01-26_17-01-30.png
screenshot_2017-01-26_17-01-30.png (82.71 KiB) Viewed 1488 times
reply to this post or your mom will die in her sleep tonight

Ninjed
User
Posts: 1299
Joined: Thu Oct 01, 2015 7:00 pm
Player profile: Le Petit Prince
Mapper profile: Ninjed

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

Post by Ninjed » Thu Jan 26, 2017 6:11 pm

Wow
The Real One!

RayB.
User
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. » Thu Jan 26, 2017 7:45 pm

This tutorial helped me a lot, thanks corneum :) .

Welf
User
Posts: 1839
Joined: Fri Jun 06, 2014 12:20 am
Player profile: Welf
Mapper profile: Welf

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

Post by Welf » Thu Jan 26, 2017 8:19 pm

Frontpage pls

User avatar
timakro
User
Posts: 414
Joined: Mon May 05, 2014 6:05 pm
Location: Germany
Player profile: timakro
Mapper profile: timakro
Clan: υηιqυє
Website: https://timakro.de/

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

Post by timakro » Thu Jan 26, 2017 10:10 pm

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
User
Posts: 1046
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

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

Post by Im 'corneum » Thu Jan 26, 2017 10:41 pm

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
User
Posts: 1839
Joined: Fri Jun 06, 2014 12:20 am
Player profile: Welf
Mapper profile: Welf

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

Post by Welf » Thu Jan 26, 2017 11:17 pm

Zeta said there are only stopper bugs because somebody was bad at coding some time ago xD
What about new, actually working, stoppers?

Ninjed
User
Posts: 1299
Joined: Thu Oct 01, 2015 7:00 pm
Player profile: Le Petit Prince
Mapper profile: Ninjed

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

Post by Ninjed » Fri Jan 27, 2017 3:30 am

Omg. Agree thats we need better stoppers. Which can.lt be thru
The Real One!

User avatar
timakro
User
Posts: 414
Joined: Mon May 05, 2014 6:05 pm
Location: Germany
Player profile: timakro
Mapper profile: timakro
Clan: υηιqυє
Website: https://timakro.de/

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

Post by timakro » Fri Jan 27, 2017 1:12 pm

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
User
Posts: 1046
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

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

Post by Im 'corneum » Fri Jan 27, 2017 1:25 pm

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 2 guests