Search found 38 matches

by EngineerSmith
Mon Aug 01, 2022 11:56 am
Forum: Support and Development
Topic: Is there sometthing like the pen on scratch in love 2d or lua?
Replies: 4
Views: 2076

Re: Is there sometthing like the pen on scratch in love 2d or lua?

Sounds similar to turtle graphics. There's a library for love2d, not sure how up-to-date it is https://github.com/arthurealike/turtle.lua
by EngineerSmith
Fri Jul 08, 2022 12:22 pm
Forum: Support and Development
Topic: Buttons on android?
Replies: 3
Views: 1538

Re: Buttons on android?

It's pretty much the same as PC; but using different callbacks https://gist.github.com/EngineerSmith/71cb3f8790914b26126190ec05c7c095 I threw together a basic example. It is a little over engineered; but by handing all input in one file it is much easier to track and trace where things are going wro...
by EngineerSmith
Wed Jun 01, 2022 3:02 pm
Forum: Support and Development
Topic: love.graphics.newImage using a thread: yes or no?
Replies: 12
Views: 3986

Re: love.graphics.newImage using a thread: yes or no?

You can't safely use love.graphics in threads. You can load imageData in a thread and send it back to the main thread to create an image from it.
I personally use lily ( https://github.com/MikuAuahDark/lily ) for multithreaded loading (works in 11.4, so no need to mess about with it).
by EngineerSmith
Fri Apr 29, 2022 8:32 am
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 7346

Re: How to serialize ANY table?

Not sure if this question is still open, but with love11.4 luajit was updated to include `string.buffer` library. So you can now use that to serialize lua tables. If you're using Ubuntu, some program managers don't install the correct version of luajit with love11.4 so they don't have `string.buffer...
by EngineerSmith
Fri Apr 22, 2022 7:13 pm
Forum: General
Topic: Multiple clients
Replies: 2
Views: 2310

Re: Multiple clients

If it is enet, each peer on the server is it's own "client" (in server-client arch). You can get the peer from event.peer If it is luasocket (UDP), each receivefrom return's each client's connected ip address (unique for that current connection, ip can change, and port will change on each ...
by EngineerSmith
Tue Apr 19, 2022 12:35 pm
Forum: Support and Development
Topic: Simple glow shader
Replies: 2
Views: 1271

Re: Simple glow shader

It might be better to just improve your base image; especially as you're targeting android. Doing multiple passes isn't something mobile GPUs can usually handle very well. Generally to get a better "glow" you'd sample a lot more and a lot further to get a better result. You can then add a ...
by EngineerSmith
Thu Apr 07, 2022 12:09 pm
Forum: General
Topic: HTTPS
Replies: 9
Views: 7179

Re: HTTPS

Github actions is where all the builds are kept, you'd need a github account to access them: https://github.com/love2d/love/actions/runs/2083673514 Just scroll down to the artefacts and use what you need. Love 12.0 changes somethings like stencils and other graphics elements to do with meshes. As th...
by EngineerSmith
Thu Mar 31, 2022 7:17 pm
Forum: Libraries and Tools
Topic: AppleCake - Love Profiling
Replies: 0
Views: 9136

AppleCake - Love Profiling

AppleCake is an extensive profiling library designed to profile multithreaded applications. It uses widely available Chromium's about://tracing for you to visualise the data. AppleCake is a little over 2 years old now, and I have recently updated it to provide more features and better performance! h...
by EngineerSmith
Mon Mar 14, 2022 9:11 am
Forum: General
Topic: Has anyone tried to 'cost' their project development?
Replies: 8
Views: 7450

Re: Has anyone tried to 'cost' their project development?

I personally keep a log in a notebook of when I start and when I end. I lay it out in a simple bar graph that is aesthetically pleasing. I mostly do it to track the time working since I'm self employed
by EngineerSmith
Fri Feb 11, 2022 10:40 am
Forum: Support and Development
Topic: How to give the back buffer a depth buffer without using conf
Replies: 0
Views: 9093

How to give the back buffer a depth buffer without using conf

Is there a way to give the back buffer (default canvas) a depth buffer without using conf? I tried the following, but it doesn't work. local lg = love.graphics local w, g = lg.getPixelDimensions() local depthcanvas = lg.newCanvas(w, h, {format="depth24", readable=true}) lg.setDepthMode(&qu...