Search found 192 matches

by Tjakka5
Fri Nov 17, 2017 10:10 pm
Forum: Libraries and Tools
Topic: STALKER-X (Camera library)
Replies: 10
Views: 252

Re: STALKER-X (Camera library)

Absolutely fantastic! It seems to address all the issues I had with Hump Camera, while still being very easy to use.
I'll be sure to upgrade to this system once I can get around doing so.
by Tjakka5
Tue Nov 14, 2017 8:03 pm
Forum: Games and Creations
Topic: Scrolling apertures: a technical demo
Replies: 7
Views: 319

Re: Scrolling apertures: a technical demo

Note that you'd have to display 2 pages when you're moving from one to the other, just as a heads up ;)
by Tjakka5
Tue Nov 14, 2017 11:41 am
Forum: Games and Creations
Topic: Scrolling apertures: a technical demo
Replies: 7
Views: 319

Re: Scrolling apertures: a technical demo

I don't think there is any advantage using stencils over scissor. It may even be quite a lot slower. I also looked into the code and saw that, while the pages are indeed being clipped, invisible pages are still being rendered. I think this is a big issue, since if you for example have a huge list of...
by Tjakka5
Sun Nov 12, 2017 2:24 pm
Forum: Support and Development
Topic: Change image/drawing position to the mouse position every frame
Replies: 3
Views: 124

Re: Change image/drawing position to the mouse position every frame

Editing your code slightly: function love.load() image = love.graphics.newImage("ricardo.jpg") x, y = 0, 0 wi, hi = image:getDimensions() end function love.update(dt) -- Change image position accordingly to the mouse position x, y = love.mouse.getPosition() end -- Draw a coloured rectangle. function...
by Tjakka5
Sun Nov 12, 2017 12:50 pm
Forum: Support and Development
Topic: Coloring a spriteBatch sprite
Replies: 4
Views: 124

Re: Coloring a spriteBatch sprite

Sure! First, the sprite you want to edit needs to be white so the color will apply correctly. If you want to color a sprite partially, you have to separate it into multiple. You can edit the color with just RGB(A) values. But if you really want HSV you can look into converting it. https://gist.githu...
by Tjakka5
Sun Nov 12, 2017 11:33 am
Forum: Support and Development
Topic: Coloring a spriteBatch sprite
Replies: 4
Views: 124

Re: Coloring a spriteBatch sprite

Doing SpriteBatch:setColor will alter the color of all the next sprites you set/add in the batch; similar to how love.graphics.setColor works.
Documentation here:
https://love2d.org/wiki/SpriteBatch:setColor
by Tjakka5
Fri Nov 03, 2017 3:25 pm
Forum: Libraries and Tools
Topic: [library] fLUIds - A love-imgui API wrap for simplicity
Replies: 8
Views: 494

Re: [library] succ - A love-imgui helper inspired by LaTeX

Im not agains't "Love related" library names, as long as they make sense. you from the library name police? There have been numerous discussions about "Love" related naming of libraries. The general opinion is that they should either have a reason to be called that, or even just not be called that ...
by Tjakka5
Fri Nov 03, 2017 1:37 pm
Forum: Libraries and Tools
Topic: [library] fLUIds - A love-imgui API wrap for simplicity
Replies: 8
Views: 494

Re: [library] succ - A love-imgui helper inspired by LaTeX

Sadly I don't see how this library should help make GUI's made with Imgui "less ugly". I find writing a GUI in an immediate way very easy and flexible. With this however, you still need to store your variables somewhere. Where that location may be is not "fixed" by your library, so that "problem" st...
by Tjakka5
Mon Oct 30, 2017 7:19 am
Forum: Libraries and Tools
Topic: Simple Enums
Replies: 4
Views: 221

Re: Simple Enums

Hey Ivan. It is indeed a feature that may not be really needed, I posted it mainly because people in the Discord group wanted it. 2 things regarding your snippet versus mine though. 1. My system also ensures there are no duplicates with the nature of how it stores, key = key. 2. In my system you can...
by Tjakka5
Sun Oct 29, 2017 11:02 pm
Forum: Libraries and Tools
Topic: Simple Enums
Replies: 4
Views: 221

Simple Enums

Hey all! I made a small little libraries to add Enum like types to your game. It can be useful to make your game a bit more structured and neater. Check it our here: https://github.com/tjakka5/Enum local Enum = require("enum") -- Require the library -- Create an enum either with variable amount of v...