Search found 221 matches

by Luke100000
Mon Feb 26, 2018 9:46 pm
Forum: Support and Development
Topic: Should I use Delta Time?
Replies: 3
Views: 695

Re: Should I use Delta Time?

If the game runs slowly (~30 FPS instead of 60), because it's loading something for example, the game will slow down if you don't use dt.
by Luke100000
Mon Feb 26, 2018 9:38 pm
Forum: Support and Development
Topic: noobhub on OpenShift?
Replies: 4
Views: 1495

Re: noobhub on OpenShift?

Nothing so far. As much as I learned it's simple not possible to get it running on openshift and I think Heroku won't work either. A lot of people recommend DigitalOcean for 5$ per month instead.
by Luke100000
Mon Sep 04, 2017 8:47 am
Forum: Support and Development
Topic: Problem making a horizontal gaussian blur
Replies: 4
Views: 1671

Re: Problem making a horizontal gaussian blur

Ok, let's start with shaderBlur2: I do not know why the first error happens but after changing the weights array to this: int weights[15] = int[15](1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1); it works fine. The second error is because you want to get x of a number value. This only works on some sy...
by Luke100000
Sat Sep 02, 2017 4:12 pm
Forum: Support and Development
Topic: Problem making a horizontal gaussian blur
Replies: 4
Views: 1671

Re: Problem making a horizontal gaussian blur

shaderBlur2 crashed on my PC: Error: Cannot compile pixel shader code: Line 6: error: OpenGL does not allow C style initializers Line 10: error: OpenGL does not allow swizzles on scalar expressions Use the first shader (shaderBlur). number pixel_size = 1.0 / (texture_width/texture_height); is the er...
by Luke100000
Sun Aug 27, 2017 11:49 am
Forum: Support and Development
Topic: noobhub on OpenShift?
Replies: 4
Views: 1495

Re: noobhub on OpenShift?

Nixola wrote:
Sun Aug 27, 2017 11:27 am
You can register for the Github Student Pack, which is absolutely free and includes 50$ of DigitalOcean credit. It's not strictly a solution, but still.
Thanks for the hint, I will check it out. But after 10 months I will have the same problem again :death:
by Luke100000
Sun Aug 27, 2017 10:35 am
Forum: Support and Development
Topic: White square collides with enemy but doesn't die
Replies: 2
Views: 700

Re: White square collides with enemy but doesn't die

You should keep your code cleaner by using tabs, new lines, comments and stuff like that. You made an extra "end" after the first enemies loop, everything following was no longer in love.update() causing the game to crash. Also, the code which kills the player is no longer active. After fixing this ...
by Luke100000
Sun Aug 27, 2017 9:54 am
Forum: Support and Development
Topic: noobhub on OpenShift?
Replies: 4
Views: 1495

noobhub on OpenShift?

Hello, I want to install my own noobhub server and I tried Heroku and OpenShift. On both I was able to launch noobhub, but I am not able to connect with the client. I researched a lot and all people "solved" the problem by using digitalocean. But I rather want a free service. I'm a student and have ...
by Luke100000
Wed Jul 19, 2017 9:13 am
Forum: Support and Development
Topic: [Solved] How to delete a Sprite from a SpriteBatch
Replies: 3
Views: 1610

Re: How to delete a Sprite from a SpriteBatch

from https://love2d.org/wiki/SpriteBatch:set SpriteBatches do not support removing individual sprites. One can do a pseudo removal (instead of clearing and re-adding everything) by: SpriteBatch:set(id, 0, 0, 0, 0, 0) This makes all the sprite's vertices equal (because the x and y scales are 0), whic...
by Luke100000
Sun Jul 16, 2017 6:15 pm
Forum: Support and Development
Topic: Changing part of image transparency?
Replies: 7
Views: 2043

Re: Changing part of image transparency?

I'm still curious to know if there is a best way to do it (without calling the same image multiple times), but at least I can move forward! You can use a shader with an additional texture/canvas defining the final alpha channel. Like this (untested) extern Image alpha; vec4 effect(vec4 color, Image...
by Luke100000
Sun Jul 16, 2017 6:07 pm
Forum: Support and Development
Topic: [Solved] How to kill thread on any error?
Replies: 10
Views: 5284

Re: How to kill thread on any error?

If the thread crashes or finishes, the thread is dead. If you call thread:start() again it restarts.
So, the thread should not continue running, unless you restart it somewhere in the main app.