Search found 243 matches

by MrFariator
Thu Apr 01, 2021 11:54 am
Forum: Support and Development
Topic: about Lua
Replies: 7
Views: 434

Re: about Lua

Perhaps this tutorial by sheepolution can get you started? It should help you learn and understand lua and löve.
by MrFariator
Tue Mar 30, 2021 4:37 pm
Forum: Support and Development
Topic: Enforce just one instance?
Replies: 21
Views: 2949

Re: Enforce just one instance?

I think you can probably do that via C FFI, but you'd have to do it on a per-platform basis. Additionally, I don't think reading the application window or process name is a good idea, as that can, depending on circumstances, create false-positives. Sure, games' titles often can be a bit more unique ...
by MrFariator
Tue Mar 30, 2021 2:29 am
Forum: Support and Development
Topic: Resizing the window causes endless flashing
Replies: 7
Views: 673

Re: Resizing the window causes endless flashing

No? The issue in your original post is that you're updating the window mode every time love.update runs, which causes the window to resize/update every single frame. This is not at all a good idea. You should only ever mess with the window dimensions when you actually mean it. In practice this often...
by MrFariator
Mon Mar 29, 2021 3:09 pm
Forum: Support and Development
Topic: Resizing the window causes endless flashing
Replies: 7
Views: 673

Re: Resizing the window causes endless flashing

So, what you're talking about is a simple resolution toggle while the game is running? Simply check for when the specified button/menu item is clicked, and only then change the resolution. local resolutionMultiplier = 1 local resolutionMultiplierMax = 4 local baseWindowWidth = 100 local baseWindowHe...
by MrFariator
Mon Mar 29, 2021 2:49 am
Forum: Support and Development
Topic: I have no idea why I am getting this error, I am a new dev.
Replies: 2
Views: 535

Re: I have no idea why I am getting this error, I am a new dev.

The error is because you used a dot (".") instead of a colon (":") when calling the getWidth and getHeight functions. The corresponding line of code needs to be either of the two: -- with "." love.graphics.draw(sprites.player, px, py, .1, .1, sprites.player.getWidth(spr...
by MrFariator
Sat Mar 27, 2021 7:53 pm
Forum: Support and Development
Topic: love.touchpressed doesnt work
Replies: 11
Views: 1330

Re: love.touchpressed doesnt work

In that code snippet, it seems you have written "touch_id" in place of "touches_id". "touch_id" is not defined, so it errors when you try to index it like a table. Additionally, "ipairs" is intended for looping through tables with consuctive numeric indices, s...
by MrFariator
Sat Mar 27, 2021 9:03 am
Forum: General
Topic: Software engineering or Computer Science
Replies: 12
Views: 2215

Re: Software engineering or Computer Science

What type of essays :o Depended on the class. Some required to simply explain a subject, while others asked to elaborate specific processes relating to software development in some manner. Nothing out of the ordinary if you have ever written an essay for homework. My bachelor's thesis was also a li...
by MrFariator
Sat Mar 27, 2021 12:48 am
Forum: General
Topic: Software engineering or Computer Science
Replies: 12
Views: 2215

Re: Software engineering or Computer Science

I've got a master's degree in Computer Science (or Information Processing Sciences, to be more exact), with a minor in software production. For a two to three year period I worked as a software designer/engineer, though my job title was pretty loosely defined. I was mostly doing fullstack mobile dev...
by MrFariator
Mon Mar 22, 2021 9:51 pm
Forum: Support and Development
Topic: Do you suggest sprite sheets or frames?
Replies: 1
Views: 1086

Re: Do you suggest sprite sheets or frames?

You can use a sprite sheet with rotation, no problem. You'll load a single image as your texture (the sprite sheet), define and draw quads (which represent the individual frames from your sprite sheets). Quads can be rotated as they're drawn. Sprite sheets help with batching draw calls (lowering the...
by MrFariator
Mon Mar 22, 2021 10:41 am
Forum: General
Topic: Example code of Platformer AI
Replies: 15
Views: 3931

Re: Example code of Platformer AI

I want to see any type of enemy AI that can jump gaps and walls. What Xii works, or alternatively take a look again at the Tigsource post linked. You can use a sensor system like that for a wide variety of purposes, including checking for gaps in the floor, or if the enemy is in front of a wall. Si...