Search found 4 matches

by FLÖRGEN
Sat Jun 27, 2015 7:01 am
Forum: Support and Development
Topic: Using layered/"paperdoll" sprites?
Replies: 8
Views: 2877

Re: Using layered/"paperdoll" sprites?

If you are worried about canvas not being compatible then you could use

Code: Select all

love.graphics.isSupported("canvas")
and if it's false do another method else use the canvas method.
by FLÖRGEN
Fri Jun 26, 2015 1:05 am
Forum: Support and Development
Topic: Problem with scoping (different files)
Replies: 5
Views: 2911

Re: Problem with scoping (different files)

Thank you so much :D I'm just wondering though, do you think there is a more elegant way to do this or would what I have be good enough?
by FLÖRGEN
Thu Jun 25, 2015 1:15 pm
Forum: Support and Development
Topic: Problem with scoping (different files)
Replies: 5
Views: 2911

Re: Problem with scoping (different files)

Hm, it doesn't seem to be working (EDIT: It cannot index the parent) :/ I am using middleclass and loveframes (with the gui.Component:new() functions being an attempt to neaten the code). Perhaps this is not the best way to be doing this and there is a more elegant way? Anyhow, I uploaded a .love be...
by FLÖRGEN
Thu Jun 25, 2015 2:31 am
Forum: Support and Development
Topic: Problem with scoping (different files)
Replies: 5
Views: 2911

Problem with scoping (different files)

Hi, I have a Game class which features an interface: local Game = class("Game") Game:include(Stateful) local Menu = Game:addState("Menu") function Menu:enteredState() self.interface = gui.Interface:new():loadFromFile("menu/main.lua") end And the menu being loaded from f...