Search found 104 matches

by dusoft
Sun Apr 14, 2019 8:11 pm
Forum: Support and Development
Topic: Click to Move Question [SOLVED]
Replies: 5
Views: 6829

Re: Click to Move Question

Get the coordinates of player and the coordinates of click, then just add (or subtract step (e.g. 1) depending on which is higher) from player x,y until you get there (loop). If x,y equals click x,y, stop looping. You need to have two pairs of x,y variables - current player position, final player po...
by dusoft
Fri Mar 15, 2019 8:09 pm
Forum: Games and Creations
Topic: Get mouse coordinates on a rotated "grid"
Replies: 15
Views: 14982

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: 1749

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: 15
Views: 14982

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: 3560

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: 3455

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: 11309

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: 11309

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: 11309

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.