Page 1 of 1

Change controls

Posted: 11 Mar 2012, 01:44
by jeggy
Is there any easy to change the controls for the player2? i don't have numpad. if not how to change the code?

Re: Change controls

Posted: 11 Mar 2012, 01:52
by trosh
use a joystick
EDIT : OH DUCK THAT SHIP I GOT FORUMS MIXED UP AGAIN
I really don't know if you can. You'd probably have to edit the .lua files to change the keys it's looking for

Re: Change controls

Posted: 11 Mar 2012, 02:03
by Camewel
If you're on a mac, ControllerMate is really useful here.
Otherwise, I have no idea.

Re: Change controls

Posted: 11 Mar 2012, 02:26
by jeggy
Camewel wrote:If you're on a mac, ControllerMate is really useful here.
Otherwise, I have no idea.
I'm on ubuntu, and i don't really care if i have to change the .lua files, i just don't know how

Re: Change controls

Posted: 11 Mar 2012, 02:34
by trosh
get the source, copy not_tetris_2.love (or whatever) to not_tetris_2.zip
extract that into an existing folder.
Edit the main.lua file, the love.keypressed function starts at line 751 I think.
You could use geany. Set execute command as

Code: Select all

love .
and press F5 if you want to test.
EDIT : ok actually i think you'll have to look at gameBmulti.lua instead. main.lua only takes keypresses for menus.
Man does not tetris's code look 10x cleaner and shorter than mari0's.

Re: Change controls

Posted: 16 Mar 2012, 19:44
by Nabopolasszar
May I suggest to change the "erase data" button from backspace, to anything which is farther from return/enter, becouse i have erased my datas 2 times by accident so far.
It is kind of annoying to finally score 15000+ and delete it by pushing a wrong button