Change controls

Post Reply
jeggy
Posts: 11
Joined: 08 Mar 2012, 13:21
Contact:

Post » 11 Mar 2012, 01:44

Is there any easy to change the controls for the player2? i don't have numpad. if not how to change the code?

User avatar
trosh
Posts: 1594
Joined: 03 Feb 2012, 08:36

Post » 11 Mar 2012, 01:52

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

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 11 Mar 2012, 02:03

If you're on a mac, ControllerMate is really useful here.
Otherwise, I have no idea.

jeggy
Posts: 11
Joined: 08 Mar 2012, 13:21
Contact:

Post » 11 Mar 2012, 02:26

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

User avatar
trosh
Posts: 1594
Joined: 03 Feb 2012, 08:36

Post » 11 Mar 2012, 02:34

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.

Nabopolasszar
Posts: 1
Joined: 16 Mar 2012, 19:40

Post » 16 Mar 2012, 19:44

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

Post Reply