Tic80 collisions

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

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 !

 

ТОП ссылочных бирж 2023

Trustlink
LinkFeed
Sape
Mainlink
CMSE
UniPlace
Ingots
Linkpad
Бывшие биржи:
Megaindex
Setlinks
Liex

 



Сегодня: 2023.12.03
Earn with Crypto VIP Club Join us