Search found 83 matches

by dusoft
Fri Mar 15, 2019 8:09 pm
Forum: Games and Creations
Topic: Get mouse coordinates on a rotated "grid"
Replies: 10
Views: 384

Re: Get mouse coordinates on a rotated "grid"

Could this help? https://github.com/kikito/gamera I think it contains all the helper functions you need. You don't have to even use, just check the code. I can't find anything in the code that would help. Maybe just use that library as it offers all the basic functions you are having difficulties t...
by dusoft
Thu Mar 14, 2019 10:14 pm
Forum: General
Topic: Putting Objects Into Strings
Replies: 5
Views: 188

Re: Putting Objects Into Strings

What you need is called serialization. E.g. this library provides it:
https://github.com/bakpakin/binser

Your backend server should take care of deserializing string into objects then (e.g. PHP serialize/unserialize).
by dusoft
Thu Mar 14, 2019 10:12 pm
Forum: Games and Creations
Topic: Get mouse coordinates on a rotated "grid"
Replies: 10
Views: 384

Re: Get mouse coordinates on a rotated "grid"

Could this help?
https://github.com/kikito/gamera

I think it contains all the helper functions you need. You don't have to even use, just check the code.
by dusoft
Fri Feb 01, 2019 8:02 pm
Forum: Games and Creations
Topic: Transport sim / Procedural city generation
Replies: 0
Views: 1613

Transport sim / Procedural city generation

Hey, I have been working for past few weeks on a transport sim that focuses on city transport / public transport management. To offer option to create and play scenarios (and not have same city over and over) I have also developed city generation on the way with different types of buildings, water (...
by dusoft
Sun Dec 30, 2018 1:04 am
Forum: Libraries and Tools
Topic: [Guide] State Manager
Replies: 7
Views: 1374

Re: [Guide] State Manager

See also: https://github.com/love2d-community/awe ... -libraries
(state helpers / switchers)
by dusoft
Thu Nov 08, 2018 11:24 pm
Forum: Support and Development
Topic: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?
Replies: 39
Views: 7183

Re: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?

So you built another framework :-) Or a connector. Or a bridge. Erm, smart, but thanks no thanks.
by dusoft
Sat Nov 03, 2018 9:59 pm
Forum: Support and Development
Topic: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?
Replies: 39
Views: 7183

Re: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?

pgimeno wrote:
Thu Nov 01, 2018 7:32 pm
On a side note, what makes you think Wesley Werner is Alex Szpakowski?
Ah, It was just a guess based on this: https://github.com/wesleywerner/loveslime
by dusoft
Thu Nov 01, 2018 5:16 pm
Forum: Support and Development
Topic: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?
Replies: 39
Views: 7183

Re: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?

BTW, found this game which I believe has been written by slime:
https://github.com/wesleywerner/nova-pi ... tag/v0.2.3

Unable to run as it only supports 10.x and crashes.
by dusoft
Thu Oct 25, 2018 5:51 pm
Forum: Support and Development
Topic: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?
Replies: 39
Views: 7183

Re: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?

Maybe, it would be the right thing to add a conversion function (helper) for people using 0-255. I made this . It patches all relevant functions for you when you start your game and forces everything (not just the trivial functions) back to 0-255 in a transparent way, as if the change never happene...