Search found 4 matches
- Sat Mar 27, 2021 1:17 am
- Forum: Libraries and Tools
- Topic: Javaesque library
- Replies: 3
- Views: 10068
Re: Javaesque library
Quarantine has me working a lot on this. The library is now called LuaScript and comes with a preprocessor for luascript files (.lss) that transforms this import engine.schema local fieldController local class Love2d: Callbacks { let fieldController = FieldController() let mainWindow = Canvas(320, 2...
- Mon Feb 01, 2021 6:23 am
- Forum: Libraries and Tools
- Topic: Javaesque library
- Replies: 3
- Views: 10068
Javaesque library
HI! I've been working in an oop library for Löve2D for a few months. I am very pleased at the result so I'm sharing it with you guys. https://github.com/jotapapel/javaesque-lua It's very simple but functional. require 'javaesque' enum 'Colors' { 'RED', 'GREEN', 'BLUE' } interface 'Coloreable' { colo...
- Mon Aug 31, 2020 8:03 pm
- Forum: Support and Development
- Topic: Bug with copying tables.
- Replies: 4
- Views: 4837
Re: Bug with copying tables.
I've changed the implementation now with deepcopy and it works fine.
This is the version I'm currently using if anyone is interested.
This is the version I'm currently using if anyone is interested.
- Tue Aug 18, 2020 4:27 am
- Forum: Support and Development
- Topic: Bug with copying tables.
- Replies: 4
- Views: 4837
Bug with copying tables.
Hi! So I'm developing a game and for it I've created a little class system for lua. But when I try to use it in the LOVE engine it does not seem to work. function deepcopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_key, orig_value in next, orig, nil...