Search found 48 matches

by MrFariator
Sat Jul 22, 2017 11:01 pm
Forum: Support and Development
Topic: Restore settings in conf.lua
Replies: 6
Views: 221

Re: Restore settings in conf.lua

You can always delay the window creation by disabling the window module in conf.lua and call love.window.setMode after conf.lua and/or your save file has been read by your game. Quoting from the wiki page: If you have disabled the window in conf.lua (i.e. t.window = false) and use this function to m...
by MrFariator
Mon Jul 03, 2017 5:02 pm
Forum: Libraries and Tools
Topic: [library] bump.lua v3.1.4 - Collision Detection
Replies: 206
Views: 33032

Re: [library] bump.lua v3.1.4 - Collision Detection

I had a similar problem with my game (player would get stuck when walking from one tile to the next because gravity would interrupt the movement), and the fix was to step movement in two different calls to bumpWorld:move(). In my case because my game is a 2d platformer, I first step the character on...
by MrFariator
Sat Jul 01, 2017 8:45 pm
Forum: Support and Development
Topic: In-App Purchases?
Replies: 3
Views: 261

Re: In-App Purchases?

Since it's a solution provided by Apple it's probably a fine choice, though I have no experience with it (I've only implemented IAP in Unity with a service I can't remember the name of anymore). I think it's best to just to go with whatever doesn't have a terrible track record or dubious history, or...
by MrFariator
Fri Jun 30, 2017 4:28 pm
Forum: Support and Development
Topic: In-App Purchases?
Replies: 3
Views: 261

Re: In-App Purchases?

Yes, it is possible. All you essentially need is some networking to send and receive request data about purchases, and then pick up a transaction service that provides an API that responds to those requests. Apple might have one of their own, but there are plenty out in the wild. You can possibly sp...
by MrFariator
Wed Jun 21, 2017 11:05 pm
Forum: Support and Development
Topic: How to test love2d project without creating .love each time
Replies: 7
Views: 525

Re: How to test love2d project without creating .love each time

If you have love installed on your system (so that it's added to your system's PATH), you can open the command line prompt in the folder where your main.lua is situated and run the command: love . I have personally setup my installation of Sublime Text 2 to run my project using its build system just...
by MrFariator
Mon Jun 19, 2017 3:51 pm
Forum: Support and Development
Topic: [SOLVED] Camera movement and tilemap issues
Replies: 2
Views: 190

Re: Camera movement and tilemap issues

The problem you're experiencing has to do with scaling: you're scaling the map and character sprites at uneven pixel sizes, resulting in artefacting and fat lines of pixels as demonstrated by your screenshot. Here are the relevant lines of code: -- line 35 in World.lua local scale = width() * 0.06 /...
by MrFariator
Mon Jun 05, 2017 5:25 pm
Forum: Libraries and Tools
Topic: Lovely-Windows
Replies: 2
Views: 384

Re: Lovely-Windows

It's a pretty simple and straight forward library, but there are a few things I could comment on. Firstly, passing a list of window sizes like this... local width = { f1 = 1024, f2 = 720, } local height = { f1 = 720, f2 = 640 } ...as opposed to... local table = { f1 = {1024, 720 }, f2 = {720, 640 } ...
by MrFariator
Sun May 28, 2017 1:28 am
Forum: Support and Development
Topic: Can you scan a table to find specific values?
Replies: 6
Views: 326

Re: Can you scan a table to find specific values?

Can you post your code with either or both of the approaches zorg wrote about?
by MrFariator
Thu Apr 20, 2017 11:14 pm
Forum: Support and Development
Topic: What program do you use to make graphics?
Replies: 13
Views: 1190

Re: What program do you use to make graphics?

GraphicsGale, though it's pretty old and windows-only. Aseprite would be my secondary choice, but frankly I do not like its pixel art UI.

Outside of pixel arty stuff, I tend to either draw my art in Adobe Flash CS4, Fire Alpaca (this one is free!) or Paint tool SAI.
by MrFariator
Wed Apr 05, 2017 12:47 pm
Forum: Support and Development
Topic: canvas black & white only?
Replies: 14
Views: 1001

Re: canvas black & white only?

It's probably assumed that user can check love.graphics.setColor if they are curious as to how it works. You should link there on the wiki as opposed to linking to this thread, or just reduce the comment to saying that the drawing color is changed to white.