How do i make text fade to black?
Posted: Tue May 05, 2020 11:16 pm
I'm new to love and programming in general so i don't have the expertise that other people may have. I'm trying to make my text fade to black but i don't know how. Help would be greatly appreciated. here's my (probably terrible) code for reference:
Most things here are just placeholders. Also, unrelated question but i tried to make the music i made with Deflemask play but everytime i execute the project it just slaps my screen with "Could not play with ModPlug" or something like that so i had to resort to using a placeholder wave file untill i (or someone that can help) finds a solution to this problem. I thought you could play tracker formats in Love? again, help would be greatly appreciated.
Code: Select all
-- Escapism
-- Created by Sonic Eclipse
-- conf.lua
-- Load up required libraries before anything else.
require("assets.libs.TESound-master.tesound")
require("assets.libs.tween-master.tween")
-- Set up game window.
function love.load()
love.window.setTitle('Escapism')
love.window.setMode(800, 600, {fullscreentype=desktop, resizable=true})
-- Variables & other stuff
love.graphics.setNewFont("/fonts/MindEscape.ttf", 55) --The font i'm using.
local backgroundcolor = {255, 255, 255}
GameBootTheme = ("/music & sfx/VistaBeta.wav") -- Temporary.
TEsound.play(GameBootTheme, "static")
end
function love.draw()
love.graphics.print("C: Hello Human\nH: Hello Computer", 200, 200)
end