piXelicidio / locas-ants

A modern Lua+Löve2D remake of my Ant Colony Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove api abstraction, keep simple direct calls to Love2D

piXelicidio opened this issue · comments

Remove Corona SDK and multiple potential frameworks support. This adds more complexity than necessary.
Benefits: fewer modules, fewer calls. Easier to understand the flow of code.

Use a simple alias on top of every module that want to call Love2D directly, like:
local apiG = love.graphics
...
apiG.line(x,y..... )

In case anyone wants to port, this funny solution tells you if a module is accessing the API and you can replace the alias.
Why not a module to abstract the api, becuase... man... I don't want to lose auto-completition of Love2D in ZeroBraneStudio.