Search found 52 matches

by monkyyy
Fri Jan 25, 2019 2:59 am
Forum: Support and Development
Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
Replies: 7
Views: 5344

Re: Game uses 50MBs, still I get PANIC: (not enough memory)

>I am using three 1500x10000 canvases for the background

Shouldn't you be using some sort of loading system at that size?
by monkyyy
Thu Jan 24, 2019 6:30 am
Forum: Support and Development
Topic: puzzle forge clone, with ranting and other bullshit
Replies: 3
Views: 3745

Re: [solved] wanted a functional pattern matching lib, found one

Got the pattern marcher "working" within my prototype The block of magic code is still wrong, but its functioning within love2d and not a lua5.1 interpreter I'm confused why this line >combine_table = table.sort(combine_table) breaks things, but in theory I don't need it maybe I rewrite my...
by monkyyy
Thu Jan 24, 2019 4:31 am
Forum: Support and Development
Topic: Random Enemies Shooting
Replies: 2
Views: 3330

Re: Random Enemies Shooting

I'm confused by many of your decisions >enemy.shots = {} Why is the "shots" managed per enemy? That should probably be a single global table If bullets disappear based on an enemy dying, its this that's going to be causing it >enemies_controller.enemies[3].fire() If you want this random, i...
by monkyyy
Mon Jan 21, 2019 1:33 pm
Forum: Support and Development
Topic: puzzle forge clone, with ranting and other bullshit
Replies: 3
Views: 3745

Re: Making a puzzle forge clone; can has pattern matching lib?

I found "tamale", its 8 years old and I'm quite sure lua has been updated since then but who knows letssa go https://github.com/silentbicycle/tamale For google "functional style pattern matching lua" "lua pattern matching -strings" that was a pain to find In theory this...
by monkyyy
Mon Jan 21, 2019 5:36 am
Forum: Support and Development
Topic: Hearthstone-like card hold mechanic?
Replies: 3
Views: 3249

Re: Hearthstone-like card hold mechanic?

my take

still needs some y angle hacking as well as a smarter rotation but have fun i always hated frame stacking logic

pay attention to the units of the lib your using, you made 2 bugs from ignoring the api.
by monkyyy
Mon Jan 21, 2019 3:59 am
Forum: Support and Development
Topic: Hearthstone-like card hold mechanic?
Replies: 3
Views: 3249

Re: Hearthstone-like card hold mechanic?

>lp.rotate(220+(i*220)-220); I would abstract it out; its a trail and error thing and the logic shouldn't be part of the for loop as the third card in the hand of three shouldn't be rotated the same as the third card in the hand of 10. I would write two different functions, hand_draw_logic() that se...
by monkyyy
Sat Jan 19, 2019 11:05 pm
Forum: Support and Development
Topic: puzzle forge clone, with ranting and other bullshit
Replies: 3
Views: 3745

puzzle forge clone, with ranting and other bullshit

My quick a dirty prototype works boop main.lua If your unaware, its sorta like 2048 but you place the pieces and it takes 3 to combine and they are unmoving I like the game puzzle forge but its was way to easy once you learned the system, so I'm going to add "threes" like separate base ele...
by monkyyy
Thu Dec 21, 2017 11:48 am
Forum: General
Topic: Whats a good resource for writing "good" lua code?
Replies: 6
Views: 9763

Whats a good resource for writing "good" lua code?

Its one thing to bodge together something small with trial and error with banging my head against the lua api ; it's quite another to take on a major project with some semblance of sanity 3 minutes into it.

Anyone got anything worth reading on how to do the latter?
by monkyyy
Mon Jun 18, 2012 4:54 pm
Forum: Support and Development
Topic: Multiple bugs with game prototype
Replies: 2
Views: 1378

Re: Multiple bugs with game prototype

many of us "could" fix it for u, but i doubt anyone will

also, u called it a prototype, if it proved its conspect isnt it done?
by monkyyy
Tue May 29, 2012 12:59 am
Forum: Support and Development
Topic: Loading External Native Library (dll or .so)
Replies: 6
Views: 5221

Re: Loading External Native Library (dll or .so)

ummm i remember having the remove the file type from require when they updated to .8, try removing the dll or so