Search found 27 matches

by LuaCre
Mon Feb 27, 2023 7:17 am
Forum: Support and Development
Topic: Grid-only pathfinding only working on top left ?
Replies: 9
Views: 1084

Re: Grid-only pathfinding only working on top left ?

Haha, while Im more on the green than the suds I do appreciate it. The ~= nil for me is indicative of edge case error dodging and lets me know my logic in that area should either be tightened up or rewritten to avoid needing that catch entirely. And I know THIS is a terrible habit, but I always docu...
by LuaCre
Mon Feb 27, 2023 2:27 am
Forum: Support and Development
Topic: Grid-only pathfinding only working on top left ?
Replies: 9
Views: 1084

Re: Grid-only pathfinding only working on top left ?

Also note that your code, while working, is pretty weird in lua standards. while (pathcomplete ~= true) do >> while not pathcomplete do --easier readable if mouseover ~= nil then >> if mouseover then --same print("choice:"..choice) >> print("choice:",choice) -- much faster for s...
by LuaCre
Mon Feb 27, 2023 2:07 am
Forum: Support and Development
Topic: Grid-only pathfinding only working on top left ?
Replies: 9
Views: 1084

Re: Grid-only pathfinding only working on top left ?

One will keep failing to create anything useful if one keeps trying to use random internet stuff instead taking an hour time to do it proper oneself. I agree, and I've used jumper before but I was curious about the process. I've gotten a very surprised response from my crappy, sleep deprived code t...
by LuaCre
Sun Feb 26, 2023 7:22 pm
Forum: Support and Development
Topic: Grid-only pathfinding only working on top left ?
Replies: 9
Views: 1084

Re: Grid-only pathfinding only working on top left ?

Lol yeah I overcomplicated and made things messy trying to make it work/debug it. I just rewrote the entire thing with simplicity in mind and it works really easily (especially since I was able to go step by step), and this little pathfinder doesnt need to worry about walls, though one in the future...
by LuaCre
Sun Feb 26, 2023 4:22 pm
Forum: Support and Development
Topic: Grid-only pathfinding only working on top left ?
Replies: 9
Views: 1084

Grid-only pathfinding only working on top left ?

I've been working on a side project in my spare time and got around to needing pathfinding for that project, but couldn't find one as simple for my often sleep deprived brain to drag and drop as I would like, and thought I'd try and make one. Well I've tried and failed. The little robo-brain seems t...
by LuaCre
Sun Nov 20, 2022 1:22 am
Forum: Support and Development
Topic: Trouble with a seemingly simple snake game(Solved!)
Replies: 13
Views: 2309

Re: Trouble with a seemingly simple snake game(Solved!)

You may also want to consider a case where there's very little space left on the game board. The bigger the snake gets, the more likely it is that the food item will spawn on top of it, which means it's more likely for the check spawn loop to repeat a fair number of times. As such, it may still ran...
by LuaCre
Sun Nov 20, 2022 12:10 am
Forum: Support and Development
Topic: Trouble with a seemingly simple snake game(Solved!)
Replies: 13
Views: 2309

Re: Trouble with a seemingly simple snake game

I see! Thank you so much, what a silly oversight on my end.
by LuaCre
Sat Nov 19, 2022 10:23 pm
Forum: Support and Development
Topic: Trouble with a seemingly simple snake game(Solved!)
Replies: 13
Views: 2309

Re: Trouble with a seemingly simple snake game

Little offtopic, but: Since you use scaling library, why not allow window resizing? Isn't it main point of scaling? It's probably not good way to use key "printscreen" since in some os it might be "eaten" by os itself to do screenshot , so better to use something else I resize t...
by LuaCre
Sat Nov 19, 2022 10:21 pm
Forum: Support and Development
Topic: Trouble with a seemingly simple snake game(Solved!)
Replies: 13
Views: 2309

Re: Trouble with a seemingly simple snake game

Upon checking that love was in version 11.4 and that my conf.lua reflected that configuration, I ran the game again which worked with no errors. The crash however, did happen again. This time upon scoring my 70'th point, which has happened before.
by LuaCre
Sat Nov 19, 2022 10:12 pm
Forum: Support and Development
Topic: Trouble with a seemingly simple snake game(Solved!)
Replies: 13
Views: 2309

Re: Trouble with a seemingly simple snake game

I'll check out your library, i dont mind a shameless plug , if its good I'd be glad to use and credit its use in projects :) Also, F11 is already an additional screenshot button as I foresaw that issue but wanted print screen there for the people who do prefer it. I completely forgot to just routine...