Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove api abstraction, keep simple direct calls to Love2D #3

Closed
piXelicidio opened this issue Feb 19, 2018 · 1 comment
Closed

Remove api abstraction, keep simple direct calls to Love2D #3

piXelicidio opened this issue Feb 19, 2018 · 1 comment

Comments

@piXelicidio
Copy link
Owner

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.

@piXelicidio
Copy link
Owner Author

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.

piXelicidio added a commit that referenced this issue Mar 8, 2018
…D improved! 6,000ants at 30fps (from 20 fps alg #3)
piXelicidio added a commit that referenced this issue Mar 8, 2018
* feature-pheromones:
  Pheromones inspired "NEW" algorithm #4.  Implemented and working. SPEED improved! 6,000ants at 30fps (from 20 fps alg #3)
  updateOnGrid cleaning
  refactored all ant comm algorithms, separated function calls, clean the mix
piXelicidio added a commit that referenced this issue Mar 8, 2018
* develop:
  Pheromones inspired "NEW" algorithm #4.  Implemented and working. SPEED improved! 6,000ants at 30fps (from 20 fps alg #3)
  updateOnGrid cleaning
  smaller cargo food circle draw
  refactored all ant comm algorithms, separated function calls, clean the mix
  localizing a function, passing it as parameter has bad performance
  not mine, delete.

# Conflicts:
#	main.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant