This tiny native extension is for raycasting in the tiled words using DDA algorithm.
DDA is a very simple(but elegant I suppose) and fast solution for tile raycasting in tile based worlds like platformers or top-down games.
This implementation is based on(adapted from) Raycasting and Super Fast Ray Casting in Tiled Worlds using DDA - YouTube
There is a simple platformer example which I’m still working on(I need to fix some rough edges). It might contains problems but they are not related to native extension. Simply because of the implementation. Developing perfect platformer is hard and require a lot of time(which I don’t have for this small sample right now.). It is here to be a proof of concept, not for been the perfect platformer implementation.
Source:
Test:
https://selimanac.github.io/defold-tile-raycast-platformer/