Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
/ DDLC-LOVE Public archive

Commit

Permalink
Update keys and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeeGD committed May 29, 2020
1 parent fd9d9d7 commit f4f2cb9
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 20 deletions.
6 changes: 6 additions & 0 deletions game/conf.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
function love.conf(t)
t.identity = 'DDLC-LOVE'
end

lv1luaconf = {
keyconf = "SE",
imgscale = false,
resscale = true
}
8 changes: 8 additions & 0 deletions game/ddlclove/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ function love.gamepadpressed(joy, button)
button = 'left'
elseif button == 'dpright' then
button = 'right'
elseif button == 'a' then
button = 'b'
elseif button == 'b' then
button = 'a'
elseif button == 'x' then
button = 'y'
elseif button == 'y' then
button = 'x'
end
love.keypressed(button)
end
Expand Down
8 changes: 6 additions & 2 deletions game/ddlclove/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,13 @@ function menu_draw()
lg.print(menutext,140,90)
local keys = {}
if global_os == 'LOVE-WrapLua' then
keys = {'Cross, L','Circle','Square','Triangle','R','Select'}
if not lv1lua.confirm then
keys = {'Cross, (L)','Circle','Square','Triangle','Start','Select'}
else
keys = {'Circle, (L)','Cross','Triangle','Square','Start','Select'}
end
else
keys = {'A','B','X','Y','Plus','Minus'}
keys = {'(A), (L)','(B)','(X)','(Y)','(+)','(-)'}
end
lgsetColor(0,0,0)
lg.print('Key Bindings:',160,120)
Expand Down
6 changes: 3 additions & 3 deletions game/ddlclove/states/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function game_keypressed(key)
end

function newgame_keypressed(key)
if (key == 'a' or key == 'lbutton') and unitimer >= uniduration then
if (key == 'a' or key == 'leftshoulder') and unitimer >= uniduration then
textboxd = true
if print_full_text then
autotimer = 0
Expand All @@ -138,9 +138,9 @@ function newgame_keypressed(key)
end
collectgarbage()
collectgarbage()
elseif key == 'r' or key == 'rbutton' or key == 'plus' then
elseif key == '=' or key == 'start' then
textboxd = not textboxd
elseif key == 'minus' or key == '-' or key == 'select' then
elseif key == '-' or key == 'back' then
if settings.o ~= 1 then settings.o = 1
else settings.o = 0 end
end
Expand Down
2 changes: 1 addition & 1 deletion game/ddlclove/states/poemgame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function poemgamekeypressed(key)
menuselect()
end

if key == 'a' or key == 'lbutton' then
if key == 'a' or key == 'leftshoulder' then
if xaload >= 35 then
if poemstate == 0 then
poemstate = nil
Expand Down
12 changes: 6 additions & 6 deletions game/scripts/eng/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ tr.splash = {
}
tr.menuitem = {'Yes','No','Delete ','Restore All'}
tr.menuhelp = {
' - Advances through the game, activates menu choices',
' - Exit Menu, Auto-Forward On/Off',
' - (Menu) Previous Page, Skipping On/Off',
' - (Menu) Next Page, Enter Game Menu',
' - Show/hide text window',
' : Advances through the game, activates menu choices',
' : Exit Menu, Auto-Forward On/Off',
' : (Menu) Previous Page, Skipping On/Off',
' : (Menu) Next Page, Enter Game Menu',
' : Show/hide text window',
'Managing files: Go to Settings > Characters',
[[
Deleting save data: Delete the save folder:
Expand Down Expand Up @@ -108,7 +108,7 @@ tr.menuhelp = {
me?will you promise to spend the most time with me?will you promise to spend the most
time with
]],
' - Toggle text outline'
' : Toggle text outline'
}
tr.error = {
'Press Y/Triangle to quit',
Expand Down
4 changes: 2 additions & 2 deletions game/scripts/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function event_next()
end

function event_keypressed(key)
if ((textbox_enabled and event_type ~= 'show_vignette') or (event_type == 'yuri_eyes' and cl < 700)) and (key == 'a' or key == 'lbutton') then
if ((textbox_enabled and event_type ~= 'show_vignette') or (event_type == 'yuri_eyes' and cl < 700)) and (key == 'a' or key == 'leftshoulder') then
newgame_keypressed('a')
elseif key == 'y' and event_type == 'ch23-30' then
menu_mchance = math.random(1,50)
Expand All @@ -161,7 +161,7 @@ function event_keypressed(key)
elseif key == 'b' and event_type == 'ch23-30' and chapter == 30 then --auto
sfx1:play()
if autotimer == 0 then autotimer = 0.01 else autotimer = 0 end
elseif (key == 'minus' or key == '-' or key == 'select') and event_type == 'ch23-30' then
elseif (key == '-' or key == 'back') and event_type == 'ch23-30' then
if settings.o ~= 1 then settings.o = 1
else settings.o = 0 end
end
Expand Down
12 changes: 6 additions & 6 deletions game/scripts/spa/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ tr.splash = {
}
tr.menuitem = {'','No','Borrar ','Restaurar todo'}
tr.menuhelp = {
' - Avanzas en el juego, seleccionas alguna opción en las elecciones',
' - Te sales del menú, activas o desactivas el modo automático',
' - (Menú) Página anterior, activas o desactivas el modo saltar',
' - (Menú) Página siguiente, entras en el menú del juego',
' - Muestra o oculta la ventana de diálogos',
' : Avanzas en el juego, seleccionas alguna opción en las elecciones',
' : Te sales del menú, activas o desactivas el modo automático',
' : (Menú) Página anterior, activas o desactivas el modo saltar',
' : (Menú) Página siguiente, entras en el menú del juego',
' : Muestra o oculta la ventana de diálogos',
'Configurar archivos: Vete a ajustes > Characters',
[[
Borrar los datos guardados: Para borrar los datos guardados tienes que ir a la siguiente ruta:
Expand Down Expand Up @@ -158,7 +158,7 @@ tr.menuhelp = {
club sea un lugar más íntimo para todos. Como veo que eres un amorcito, ¿me prometes
que pasarás la mayor parte del tiempo conmigo?
]],
' - Mostrar sombreado del texto'
' : Mostrar sombreado del texto'
}
tr.error = {
'Pulsa Y/Triangulo para salir',
Expand Down

0 comments on commit f4f2cb9

Please sign in to comment.