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
Some more changes
Browse files Browse the repository at this point in the history
- yuri_glitch_head now scaled on 2nd
- slightly larger yuri poem font
- reset character y value on hide
  • Loading branch information
LukeeGD committed Apr 21, 2020
1 parent 71e07d5 commit 40769e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions game/ddlclove/draw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ function hideMonika()
end

function hideAll()
s_Set = {a='',b='',x=-675,y=s_Set.y}
y_Set = {a='',b='',x=-675,y=y_Set.y}
n_Set = {a='',b='',x=-675,y=n_Set.y}
m_Set = {a='',b='',x=-675,y=m_Set.y}
s_Set = {a='',b='',x=-675,y=4}
y_Set = {a='',b='',x=-675,y=4}
n_Set = {a='',b='',x=-675,y=4}
m_Set = {a='',b='',x=-675,y=4}
unloadAll()
end

Expand Down
2 changes: 1 addition & 1 deletion game/ddlclove/loader/assets_load.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function loaderAssets(l_timer)

elseif l_timer == 99 then
m1 = lg.newFont('assets/fonts/m1.ttf',30) --monika poem font
y1 = lg.newFont('assets/fonts/y1.ttf',31) --yuri poem font
y1 = lg.newFont('assets/fonts/y1.ttf',33) --yuri poem font
s1 = lg.newFont('assets/fonts/s1.ttf',35) --sayori poem font
n1 = lg.newFont('assets/fonts/n1.ttf',24) --natsuki poem font
dfnt = lg.newFont('assets/fonts/VerilySerifMono.ttf',23) --act 2 "edited" text font
Expand Down
4 changes: 2 additions & 2 deletions game/ddlclove/scripts/event-2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ function event_draw_2()

if event_type == 'yuri_glitch_head' then
if eventvar1 == 2 then
drawanimframe(850,140)
drawanimframe(800,0,1.5)
else
drawanimframe(750,100)
drawanimframe(800,100)
end
end

Expand Down
9 changes: 5 additions & 4 deletions game/scripts/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ function event_start(etype, arg1)
end
end

function drawanimframe(x,y)
if x == nil then x = 0 end
if y == nil then y = 0 end
function drawanimframe(x,y,s)
if not x then x = 0 end
if not y then y = 0 end
if branch ~= 'ddlclove' or not s then s = 1 end
if animframe[currentframe] then
lg.draw(animframe[currentframe],x,y)
lg.draw(animframe[currentframe],x,y,0,s,s)
end
if sectimer > 0.75 and animframe[4] then
currentframe = 4
Expand Down

0 comments on commit 40769e5

Please sign in to comment.