Search found 106 matches

by dusoft
Wed Apr 17, 2019 9:42 pm
Forum: Support and Development
Topic: Image Layering
Replies: 5
Views: 7276

Re: Image Layering

You could also use SVG images, something like https://github.com/globalcitizen/svglover
Color of SVG images is easy to change.
by dusoft
Wed Apr 17, 2019 9:38 pm
Forum: General
Topic: A hot potato
Replies: 4
Views: 9311

Re: A hot potato

Post your code. Also, this belongs to Support & Dev, not General.
by dusoft
Sun Apr 14, 2019 8:11 pm
Forum: Support and Development
Topic: Click to Move Question [SOLVED]
Replies: 5
Views: 6897

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

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

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

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

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

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

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.