Earn with Crypto VIP Club Join us


Tic80 collisions

18.7.2022 - 1537 просмотров ;)

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 !

 

Статьи из раздела, Видеочат рулетка