Search found 10 matches

by vitto
Wed Dec 17, 2014 6:48 pm
Forum: General
Topic: Ho to handle multiple independent animations on characters
Replies: 0
Views: 2108

Ho to handle multiple independent animations on characters

I would try to create a character composed by multiple independent animated parts, for example like in Metal Slug: http://k36.kn3.net/C3E615D00.png if you check, in the bottom of the image you'll notice legs are independent to body, this is nice to fire with a weapon with dynamic movement. So my que...
by vitto
Wed Dec 17, 2014 6:35 pm
Forum: General
Topic: How to debug LOVE?
Replies: 7
Views: 7013

Re: How to debug LOVE?

Thank you all, I got it. I meant especially when I pass data around classes and I need to check if this data is consistent or loss it's format for some reason, basically I have to check it with a hand made console in an overlay on the game.

:monocle:
by vitto
Thu Dec 11, 2014 1:28 am
Forum: General
Topic: How to debug LOVE?
Replies: 7
Views: 7013

How to debug LOVE?

I'm trying to find a way to debug what I code, but the compiler errors blocks my game and I cannot understand what happened exactly, I've tried lovebird with the hope to add more information but it doesn't.

Which are the common ways to debug with LOVE 2D?
by vitto
Fri Nov 21, 2014 11:35 pm
Forum: Support and Development
Topic: Keyboard Layout Problem
Replies: 12
Views: 8085

Re: Keyboard Layout Problem

I've a similar problem, I'm using Italian Layout on a MacBook Air but it seems that the layout of the keyboard for LOVE is different, maybe American?
by vitto
Fri Nov 21, 2014 11:08 pm
Forum: General
Topic: conf.lua is not affecting the rest of the game
Replies: 12
Views: 5578

conf.lua is not affecting the rest of the game

I'm trying to set some default param on my [wiki]Config_Files[/wiki] to give a base of params for my game, for example: -- file conf.lua function love.conf(t) t.identity = "Game name" end Then I'm try to read the data from it without success: -- file main.lua function love.draw() local ide...
by vitto
Fri Nov 21, 2014 10:00 pm
Forum: General
Topic: What's the difference between load and require?
Replies: 1
Views: 1740

What's the difference between load and require?

I've tested a demo with a simple key press showed with a text on game window and it works in both cases:

Code: Select all

-- a file with load
love.filesystem.load("keypress.lua")()

-- a file with require
require "keypress"
what's the difference?
by vitto
Fri Nov 21, 2014 9:30 pm
Forum: General
Topic: Sharing vars around .lua files
Replies: 2
Views: 2055

Sharing vars around .lua files

I would ask this question to be sure I'm not doing a best practice on how I should share a specific information around game lua files. For example, I would share the game name "Super Generic Adventure" around my code for various reasons, for example the window title, or the name of the fol...
by vitto
Thu Nov 20, 2014 10:05 pm
Forum: General
Topic: Best practice to manage game config options
Replies: 1
Views: 2503

Best practice to manage game config options

As I've read on [wiki]Config_Files[/wiki] wiki page that I can define all game settings inside conf.lua file. If I'm not wrong, all the config i set in conf.lua doesn't affect directly the game, because config is loaded before main.lua starts, so I suppose, the config set before is visibile to the r...
by vitto
Thu Nov 20, 2014 6:49 pm
Forum: Support and Development
Topic: Hello world text flickering on fullscreen window
Replies: 2
Views: 2847

Re: Hello world text flickering on fullscreen window

Thank you, if you say that I suppose event handling is one of the first things I should read on documentation.

Now it's more clear why it's flickering!

bye

:ultraglee:
by vitto
Thu Nov 20, 2014 5:16 pm
Forum: Support and Development
Topic: Hello world text flickering on fullscreen window
Replies: 2
Views: 2847

Hello world text flickering on fullscreen window

I'm trying to create my first Hello world window but I see the text flickering only if the window is set to Fullscreen mode , where I'm wrong? I have a MacBook Air 2011 with a screen resolution of 1440 x 900 pixels function love.draw() love.graphics.print('hey that\'s flickering!', 50, 50) success =...