Search found 231 matches
- Mon Feb 26, 2018 9:46 pm
- Forum: Support and Development
- Topic: Should I use Delta Time?
- Replies: 3
- Views: 1292
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.
- Mon Feb 26, 2018 9:38 pm
- Forum: Support and Development
- Topic: noobhub on OpenShift?
- Replies: 4
- Views: 2360
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.
- Mon Sep 04, 2017 8:47 am
- Forum: Support and Development
- Topic: Problem making a horizontal gaussian blur
- Replies: 4
- Views: 2410
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...
- Sat Sep 02, 2017 4:12 pm
- Forum: Support and Development
- Topic: Problem making a horizontal gaussian blur
- Replies: 4
- Views: 2410
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...
- Sun Aug 27, 2017 11:49 am
- Forum: Support and Development
- Topic: noobhub on OpenShift?
- Replies: 4
- Views: 2360
- Sun Aug 27, 2017 10:35 am
- Forum: Support and Development
- Topic: White square collides with enemy but doesn't die
- Replies: 2
- Views: 1083
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 ...
- Sun Aug 27, 2017 9:54 am
- Forum: Support and Development
- Topic: noobhub on OpenShift?
- Replies: 4
- Views: 2360
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 ...
- Wed Jul 19, 2017 9:13 am
- Forum: Support and Development
- Topic: [Solved] How to delete a Sprite from a SpriteBatch
- Replies: 3
- Views: 2600
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...
- Sun Jul 16, 2017 6:15 pm
- Forum: Support and Development
- Topic: Changing part of image transparency?
- Replies: 7
- Views: 3518
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...
- Sun Jul 16, 2017 6:07 pm
- Forum: Support and Development
- Topic: [Solved] How to kill thread on any error?
- Replies: 10
- Views: 8354
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.
So, the thread should not continue running, unless you restart it somewhere in the main app.