Search found 417 matches

by darkfrei
Mon Aug 30, 2021 3:59 pm
Forum: Support and Development
Topic: Conveyors, routers, sorters and overflow gates.
Replies: 3
Views: 2414

Re: Conveyors, routers, sorters and overflow gates.

I've thought about conveyors in Lua :cool: , it looks like that here must be two main tweaks: 1) The items on the belts are not moving (items on the belt are just names in the table). 2) Use the shift as function of time to draw and access items on belts. For example: belt = {} belt.items = {"w...
by darkfrei
Sat Aug 28, 2021 2:25 am
Forum: Support and Development
Topic: Create maps in LÖVE for Android
Replies: 23
Views: 8749

Re: Create maps in LÖVE for Android

pgimeno wrote: Fri Aug 27, 2021 8:06 pm Most importantly, GLES shaders don't accept integers where floats are expected. That's to say, use e.g. 1.0 instead of 1 if a float is required.
And
y = math.floor(x)/1
?
I knew that Lua has difference between 1 and 1.0!
by darkfrei
Thu Aug 26, 2021 9:14 pm
Forum: Support and Development
Topic: Create maps in LÖVE for Android
Replies: 23
Views: 8749

Re: Create maps in LÖVE for Android

What kind of maps? City grid or terrain maps or tile/block maps or ...? Well... I just wanted to know all the possible ways to create maps in LÖVE Android, since I can't use programs that are intended for the computer ;_;. And thank you so much for replying. :) You can make a Löve program for map c...
by darkfrei
Thu Aug 26, 2021 6:40 am
Forum: General
Topic: Box2D: detecting contact before contact
Replies: 4
Views: 4953

Re: Box2D: detecting contact before contact

I'd like to detect when two objects are approaching before the contact so evasive action is taken before a real contact event. I could calculate distance between every object every second or so. I also thought about making the body larger/wider than the image/graphic so the contact event fires befo...
by darkfrei
Wed Aug 25, 2021 10:36 am
Forum: General
Topic: How to manage scenes?
Replies: 8
Views: 5549

Re: How to manage scenes?

I would like to implement a way to switch between scenes and able to go from menu to scene1 and from scene1 back to the menu and basically delete all menu items from memory and load scene1 and then unload all scene1 items from memory and load menu. Not sure that it's a good implementation, but it l...
by darkfrei
Tue Aug 24, 2021 7:33 am
Forum: General
Topic: Coding challenge for coding challenge ppl
Replies: 6
Views: 6069

Re: Coding challenge for coding challenge ppl

However, as more tiles get placed and the grid fills up, the algorithm needs to ensure that every filled tile can access (i.e. draw a path) to every other tile without crossing another filled tile. Length/distance doesn't matter. Can not path diagonally. Fill the field with black and magenta tiles....
by darkfrei
Tue Aug 24, 2021 7:31 am
Forum: General
Topic: Coding challenge for coding challenge ppl
Replies: 6
Views: 6069

Re: Coding challenge for coding challenge ppl

(removed, cannot remove)
by darkfrei
Mon Aug 23, 2021 3:04 pm
Forum: Games and Creations
Topic: Line and curve drawings with grid, states and removing
Replies: 4
Views: 5386

Re: Line and curve drawings with grid, states and removing

In this tool you can draw ... If this is a tool, why is it in Games and Creations, instead of Libraries and Tools ? If someone is looking for this in future, they may search in the wrong forum and miss it. Tool as the internal tools, like a tool buttons in photoshop: first tool for lines, second to...
by darkfrei
Mon Aug 23, 2021 9:49 am
Forum: Support and Development
Topic: Gap while drawing a map
Replies: 9
Views: 6189

Re: Gap while drawing a map

Can you check if tiles in the black lines really exist and/or available for reading?
by darkfrei
Sun Aug 22, 2021 6:40 pm
Forum: Games and Creations
Topic: Line and curve drawings with grid, states and removing
Replies: 4
Views: 5386

Re: Line and curve drawings with grid, states and removing

Something fixed: no more errors on too short lines.
Tools are in the lib.