Search found 2 matches

by Blackhardd
Sat May 10, 2014 8:31 am
Forum: Support and Development
Topic: Stuck with functions
Replies: 5
Views: 2917

Re: Stuck with functions

Thanks all for response. And i have one more question. I have this code: function love.load() -- Setting window love.window.setMode(1280, 720, {fullscreen=false}) love.window.setTitle("Blackhardd") -- Loading menu images logo = love.graphics.newImage("Sprites/Menu/logo.png") play...
by Blackhardd
Sat May 10, 2014 1:04 am
Forum: Support and Development
Topic: Stuck with functions
Replies: 5
Views: 2917

Stuck with functions

I know it's more related question for LUA then for Love2D but i'm asking for help. I had just two simple lua scipts. First is "buttons.lua" function createBtn( imgPath, btnName ) btnName = love.graphics.newImage(imgPath) end and "main.lua" require("buttons") function lo...