Search found 120 matches

by Nelvin
Fri Jul 02, 2021 12:40 pm
Forum: General
Topic: Best practices and things you'd like changed about Love2D
Replies: 47
Views: 44126

Re: Best practices and things you'd like changed about Love2D

Just replace the function with one using the parameters you prefer local lg_rectangle = love.graphics.rectangle love.graphics.rectangle = function( mode, x, y, width, height, color ) if color then local cur_r, cur_g, cur_b, cur_a = love.graphics.getColor() love.graphics.setColor( color ) lg_rectangl...
by Nelvin
Sun Jun 06, 2021 9:09 am
Forum: Support and Development
Topic: Read files outside of love or project directory
Replies: 14
Views: 10507

Re: Read files outside of love or project directory

I'd use nativefs so you can load your images/data from wherever you want to. You actually can even use the regular Lua io module as long as you know the files you want to load and don't need any directory operations (like get the list of files in a directory) as Lua io has no support or even concept...
by Nelvin
Sun Jan 03, 2021 12:43 pm
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 36339

Re: Optimization Stuff

That's primarily a question of memory and also how big is big enough (there's only so much interesting content you can create with a team of two). I think the bigger maps in the campaigns will be around 128x128, I also did tests with 256x256 without a problem, so maybe some of that scale will be add...
by Nelvin
Sun Jan 03, 2021 9:57 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 36339

Re: Optimization Stuff

For you what is an example of a reasonably scaled game ? Something with multiple entities pathfinding on a large map, for example. Complex computation being done continuously. I guess Pacman is the minimal example to qualify, but even that's stretching. I'm working on a city builder in the style of...
by Nelvin
Mon Aug 17, 2020 7:09 am
Forum: Games and Creations
Topic: Fast 2D mesh animation
Replies: 9
Views: 7088

Re: Fast 2D mesh animation

This looks really cool - any plans to turn it into a kind of small module somehow and/or document how you did the exporter for Blender? I thought about doing some kind of multilayered mesh animations for short/simple cut scenes (mission briefings etc.) in our game using Spine as an editor but Blende...
by Nelvin
Tue Jun 02, 2020 12:45 pm
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 7388

Re: How to correctly save an image.

I guess i just understood your post as löve supports loading TGA files, not that it supports saving them. Edit: According to the wiki, saving tga might have been added, wasn't aware of that. :v Yeah that's what I meant - and primarily because the original poster also wondered about the long time sa...
by Nelvin
Mon Jun 01, 2020 1:33 pm
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 7388

Re: How to correctly save an image.

... That's nice and all but i'm pretty sure the question was about saving images with specific formats, not what types does löve support loading. :3 That's why I wrote TGA and in addition some other info why it may be at least a easy usable additional format wrt to the time required to save the ima...
by Nelvin
Mon Jun 01, 2020 8:53 am
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 7388

Re: How to correctly save an image.

TGA works too ... I just noticed this a very few months ago and now use it during development as both, writing (from within my asset handling tools) and loading (when running the game) is much much faster on my system. It turned probably around >= 5 seconds of startup time into a blink which doesn't...
by Nelvin
Thu May 21, 2020 12:37 am
Forum: Games and Creations
Topic: Steam release: Push Blox 2 (PC) - free keys
Replies: 19
Views: 15432

Re: Steam release: Push Blox 2 (PC) - free keys

It seems as if I somehow got the 5th key. Not sure if it's an issue on my side but I can't download/install using itch. I guessed the key was taken/something went wrong and didn't try anything else but it seems that it's still somehow linked to my account and I can download it manually using a brows...