jkeks блог


Tic80 collisions

18.7.2022 - 344 просмотрa ;)

How to make collisions in Tic80

From tic 1.00 you can set spetial bits

like in Pico-8 now we can check this bits anytime.

this function check collide square with marked tile

example to use this function:


thats it..

this is it !

 

this can be written like

so, collide we may check after change x and y of our hero

then code will

 

 

but if sprite has more than 8px width, then check must be some huge

next code check each border pixel for collide

work perfectly !

 

Мой ТОП ссылочных бирж
LinkFeed
Trustlink
Sape
Mainlink
CMSE
Ingots
Megaindex
Linkpad
Setlinks
* Сверху лучшие

 



Сегодня: 2023.03.23