Files
andros 3ad1636c9c Port to LÖVE 11.5, translate to Spanish and wire up endings
Compatibility (0.10 -> 11.x):
- love.audio.newSource now requires a source type argument
- love.graphics.setColor uses 0-1 range instead of 0-255
  (stress overlay and MessageInABottle text/background/alpha)
- love.keyboard.isDown space key is "space", not " "
- conf.lua version bumped to 11.5

Content:
- Translate all in-game texts to Spanish
- Prepend control instructions to the welcome message
- Add the missing cap5stage text (bra reflection)
- Show endgood/endbad texts on the final screen

Bug fixes:
- stage7 crashed on the bad ending: music2 was only set on the
  good branch, guard the play() call
- stress overlay leaked its faded color; restore full color after draw
2026-08-14 21:40:53 +02:00

28 lines
612 B
Lua

local anim8 = require 'assets/scripts/vendor/anim8'
local tools = require 'assets/scripts/tools'
local arrows = require 'assets/scripts/arrows'
local stress = {}
local image
function stress.load(game, camera)
image = love.graphics.newImage('assets/sprites/stress/stress.png')
end
function stress.update(dt, game)
stress.stress = game.stress
arrows.update(dt)
end
function stress.draw()
if stress.stress == true then
cam_x, cam_y = camera.gcam:getVisible()
love.graphics.setColor(1, 1, 1, 90/255)
love.graphics.draw(image, cam_x, cam_y)
love.graphics.setColor(1, 1, 1, 1)
end
end
return stress