Search found 2283 matches

by pgimeno
Tue Sep 29, 2020 8:03 pm
Forum: Libraries and Tools
Topic: easy way to render pixelart with PIX.lua
Replies: 5
Views: 3358

Re: easy way to render pixelart with PIX.lua

I know you're probably not checking this account anymore, but I'm trying to use your library and I'm having a bit of an issue. For a tutorial I'm following, you center the player character by dividing the height and width of the window by 2 and using that as your draw coordinates. I tried to use th...
by pgimeno
Tue Sep 29, 2020 7:56 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (G3D) New and Improved!
Replies: 48
Views: 58017

Re: Groverburger's 3D Engine (G3D) New and Improved!

One thing I'm curious to test is if there's a performance increase by using love.math.Transform objects instead of Lua tables, since they can be used as 4x4 matrices. In my experience , calling engine functions through the standard interface is slower than calling FFI functions or pure Lua code (wi...
by pgimeno
Tue Sep 29, 2020 7:36 pm
Forum: Libraries and Tools
Topic: LuaPreprocess
Replies: 17
Views: 13904

Re: LuaPreprocess

Use the right tool for the job. This sums it up pretty concisely. If you don't see a need for it, maybe you don't have one. When you need it, it's there for you. There can be many uses for a preprocessor. One application that comes to mind is creating a demo version of a program without including t...
by pgimeno
Mon Sep 21, 2020 1:35 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 164
Views: 159279

Re: Love.js - A Direct Emscripten Port

Note that in WebGL you are not allowed to initialize your externs so: extern number scale = 1; Well. True. But it used to work. You do not see shaders compilation warnings automatically. Löve does not perform any syntax analysis of the code beyond some very basic checks. Compilation of GLSL is perf...
by pgimeno
Thu Sep 17, 2020 2:20 pm
Forum: Libraries and Tools
Topic: Screen wipe/transition shader
Replies: 2
Views: 703

Re: Screen wipe/transition shader

Nice effect! I wonder though, could it be done with a greyscale texture? For example: http://www.formauri.es/personal/pgimeno/temp/crossfade-patterns.png Or of course, anything else you can draw with a black-white gradient, e.g. spiral: https://www.filterforge.com/filters/6027.html or spotted or fra...
by pgimeno
Thu Sep 17, 2020 10:18 am
Forum: Support and Development
Topic: Why aren't my quads drawing?
Replies: 2
Views: 967

Re: Why aren't my quads drawing?

Every thing I can think to print to console to debug and verify looks fine. So you have that luxury but you don't allow it to us... :cry: I've made a runnable program out of your snippets, but next time please do that yourself. Help us help you. If you don't want to share all of your code, just mak...
by pgimeno
Wed Sep 16, 2020 8:27 pm
Forum: General
Topic: Calling a previous file
Replies: 2
Views: 859

Re: Calling a previous file

It's a little problem of Android, you can't use different folders, you're limited to the lovegame folder, or to using .love files. Here's what you can do: To run several different Lua files in Android, I suggest you have a file called main.lua which only requires the file you want to run and does no...
by pgimeno
Wed Sep 16, 2020 5:23 pm
Forum: Support and Development
Topic: 'untrusted' code
Replies: 10
Views: 3225

Re: 'untrusted' code

The reason why running umc (UserMadeContent) code on the server would require people to limit its cpu usage is simply that the server shouldn't become become unresponsive (for probably many players in case that the server hosts multiple games) if one umc author writes bad code. Minetest has been ru...
by pgimeno
Tue Sep 15, 2020 12:29 pm
Forum: Support and Development
Topic: 'untrusted' code
Replies: 10
Views: 3225

Re: 'untrusted' code

Yes, it seems now, sooner or later, the server must move from Löve to another framework. Most likely the best solution is to come up with another c++ host that links to the love2d library for providing the filesystem features (savedir, mounting zips, etc). If that's really all you need to use from ...