Search found 165 matches

by MrFariator
Tue Oct 06, 2020 7:49 pm
Forum: General
Topic: Does anyone have any ideas for a game that will take a solid 8 to 12 months?
Replies: 3
Views: 218

Re: Does anyone have any ideas for a game that will take a solid 8 to 12 months?

Depends. It could be an extremely polished version of pong with different modes and other bells and whistles, or something more ambitious, but might come up short in terms of content. It's entirely gonna depend on your, or your team's skill level, and how much time you can commit to it on a daily or...
by MrFariator
Sun Sep 13, 2020 11:12 pm
Forum: General
Topic: Error attempt to perform arithmetic on local 'dt' (a table value)
Replies: 2
Views: 3210

Re: Error attempt to perform arithmetic on local 'dt' (a table value)

The error is a subtle one. In main.lua, you wrote: player:update(dt) ...while in Player.lua you wrote: function player.update(dt) -- rest of the code end The difference between a colon (":") and period (".") is important. Consider the following: -- method 1 function player.update ( self, dt ) -- pla...
by MrFariator
Tue Sep 08, 2020 11:41 pm
Forum: Support and Development
Topic: Accessing device camera?
Replies: 2
Views: 4522

Re: Accessing device camera?

I don't think love has any built-in way to access device camera, but you could load a C library via luajit FFI. With some googling there are libraries like OpenCV that'd do the job, but might not hurt to search around a bit more if that's a bit too large of library for you.
by MrFariator
Mon Aug 31, 2020 4:16 pm
Forum: Support and Development
Topic: Error main.lua:52: attempt to get length of global 'zombies' (a nil value)
Replies: 2
Views: 1876

Re: Error main.lua:52: attempt to get length of global 'zombies' (a nil value)

As it says, on line 52 of main.lua, you're trying to get the length of a nil value. This most commonly means a typo, or an undeclared variable. At closer inspection, on line 52 you write "zombies", and in love.load you only declare a table called "zombie". Glancing at the rest of the code, you seem ...
by MrFariator
Sat Aug 29, 2020 9:39 pm
Forum: General
Topic: Love CPU usage
Replies: 33
Views: 17114

Re: Love CPU usage

Just to humor you, I grabbed my old Macbook from 2009 ( specs , running 10.11.6 (El Capitan)), and your attached .love only consumed 8% CPU at startup, and 5.6~5.8% CPU after a little while. Maybe you have some power saving settings on, and GPU is not properly firing up? Dunno, at this point it migh...
by MrFariator
Sat Aug 29, 2020 8:29 pm
Forum: General
Topic: Love CPU usage
Replies: 33
Views: 17114

Re: Love CPU usage

On my Windows machine the .love you attached at most only uses 1% of my CPU, most of the time doesn't register even that. Even when I modify the code to output something to console, or do some operations, it doesn't budge. Didn't check if it maintains 60fps properly. However, I see you are trying to...
by MrFariator
Thu Aug 27, 2020 12:56 pm
Forum: Support and Development
Topic: how to use the love.filesystem
Replies: 3
Views: 1684

Re: how to use the love.filesystem

You can not create, save or delete files under the working directory. Löve's filesystem is sandboxed, meaning that it will only perform file modifications under your löve project's save directory (but it will still load files from working directory). You can get said directory's location with love.f...
by MrFariator
Wed Aug 26, 2020 2:31 pm
Forum: Support and Development
Topic: Issues with running my game
Replies: 2
Views: 717

Re: Issues with running my game

You have the files in correct order, but it appears you're running into a deprecation issue. You're attempting to call getPixelScale , which has since version 11.0 been replaced by getDPIScale . You could either modify push.lua to fix the issue, or run the love/zip file with an older version of löve...
by MrFariator
Sat Aug 15, 2020 6:02 pm
Forum: General
Topic: Wall sliding
Replies: 2
Views: 3081

Re: Wall sliding

Perhaps looking up tutorials or examples on the subject using Box2D (the physics engine that's packaged with löve under love.physics) might yield relevant results. Of course, you might not find examples that are exactly applicable to löve, but any such code should be relatively straight forward to c...
by MrFariator
Fri Aug 07, 2020 8:15 pm
Forum: Support and Development
Topic: Question about Bump.lua
Replies: 2
Views: 603

Re: Question about Bump.lua

By default, bump.lua will report any and all collisions if you don't provide a filter to its functions. Here's some crude, quick code example: local playerObj = { isPlayer = true } local pickup = { isPickup = true } -- populate the world local playerX = 0 local bumpWorld = bump.newWorld () bumpWorld...