Search found 11 matches

by lauriszz123
Mon May 29, 2023 11:57 am
Forum: General
Topic: [Problem] Perspective mapping
Replies: 0
Views: 5456

[Problem] Perspective mapping

Im developing a neural network game, and I have a camera that projects all of the objects from the scene, based if it is in range, and im putting it into a 16x16 image, problem is that i have no clue how to move the objects from my line if sight which is the direction i am facing. The code below wor...
by lauriszz123
Sun Feb 14, 2021 9:15 am
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Objective Lua Version 2.6 Released Fixed bugs that 4vZEROv addressed. Thanks again 4vZEROv! :awesome: All in all 2.6 I think is the release that should improve stability with math operations. If any bugs spotted, feel free to give me an example of it and I will quickly iron it out! The new version ...
by lauriszz123
Sat Feb 13, 2021 9:31 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Objective Lua Version 2.5 Released
Fixed bugs that 4vZEROv addressed. Thanks!
The new version is in the GitHub repo here!
by lauriszz123
Thu Feb 11, 2021 7:19 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Objective Lua Version 2.4 Released As per pgimeno's claim I've added support for: local i = 0 i += expression i -= expression i *= expression i /= expression i ^= expression i %= expression As well as zorg's claim: a, b, c *= expression, expression, expression Which all of these expressions evaluat...
by lauriszz123
Mon Feb 08, 2021 6:39 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Thanks for the feedback pgimeno! I've fixed the issue in 2.3 release, but for precedence, I suppose you are right. I will look into that and will publish a patch soon, for now, I've fixed the issue that these math operations for some reason were not detected in classes.

Regards,
Laurynas.
by lauriszz123
Mon Feb 08, 2021 4:32 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Thanks, grump for your comment. I've fixed the needed Lexical Conventions for Lua, I will continue to improve the parser with that page in mind. Objective Lua Version 2.2 Released Thanks to grump for pointing out the issues. In addition 2.1 version is also released with support for math operations s...
by lauriszz123
Mon Feb 08, 2021 12:12 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Objective Lua Version 2.0 Released Thank you all for your suggestions and comments. I've remade the whole parser and added test case support so that I can find any potential bugs! Right now everything should work as intended, even the Lua's: local str = [=[ --[[ some comment inside --]] ]=] Also as...
by lauriszz123
Fri Feb 05, 2021 2:12 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Regex is not my specialty, sadly. Regular expressions and its little brother Lua patterns are not the right tool to implement tokenization of arbitrary code. Just differentiating between code, comments, and strings alone is very difficult to get right with that approach, and leads to messy code, co...
by lauriszz123
Fri Feb 05, 2021 1:24 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Re: Objective Lua - additional syntax to original Lua!

Thank you for your descriptive comment. Can I have the file that failed for inspection? I could iron out the issue while having the file. Also, I'm doing test cases for any Lua/Objective Lua code that could occur, I will try to iron out as many issues as I can, I wrote some files that could have pot...
by lauriszz123
Thu Feb 04, 2021 11:27 pm
Forum: Libraries and Tools
Topic: Objective Lua - additional syntax to original Lua!
Replies: 26
Views: 22052

Objective Lua - additional syntax to original Lua!

Objective Lua What is Objective Lua? Objective Lua is a programming language that implements class support in Lua for Love2D without modifying vanilla Lua. Implementation It is fairly easy, just implement this snippet of code in the first line of your project code: main = require "olua.lua&quo...