Search found 1195 matches

by darkfrei
Tue Sep 24, 2024 8:25 am
Forum: Libraries and Tools
Topic: Simple Sprite Generator
Replies: 18
Views: 14372

Re: Simple Sprite Generator

Sorry to necro but I just stumbled upon this and found it really interesting, so I spent a few minutes porting it over to Love 11.5 from 0.9.1. It mostly trivial, just changing some constants and what not. As it stands, the Blur shader doesn't work as trying to use it just crashes. It has something...
by darkfrei
Tue Sep 17, 2024 4:15 pm
Forum: Support and Development
Topic: How can you get the current OS time?
Replies: 4
Views: 4188

Re: How can you get the current OS time?

Is it possible to write date/time according to ISO 8601? For example date: 2024-09-17 or date and time: 2024-09-17T18:16:00Z
by darkfrei
Tue Sep 10, 2024 2:48 pm
Forum: General
Topic: Steam Deck
Replies: 9
Views: 4985

Re: Steam Deck

marclurr wrote: Fri Aug 26, 2022 7:36 am So my device arrived last night.
I've been waiting for my devkit for three years now.
by darkfrei
Tue Aug 27, 2024 3:27 pm
Forum: Libraries and Tools
Topic: Bezier
Replies: 3
Views: 3152

Re: Bezier

This is a bezier function where you can get a bezier of any order https://github.com/qwwshs/lua_bezier example: bez = require "bezier" print(bez:GetBezier(0,1,0,1,0.5,{0,0,1,1,1,1})) function love.draw() for i=0,1,0.001 do local int = bez:GetBezier(0,1,0,1,i,{0,0,1,1,1,1,1,1,0.5,0.5}) lov...
by darkfrei
Tue Aug 27, 2024 7:49 am
Forum: General
Topic: Any way to make the slopes system more efficient?
Replies: 4
Views: 3508

Re: Any way to make the slopes system more efficient?

Any way to make the slopes system more efficient? The main idea is to check if the moving point has collision with the slope / line: https://love2d.org/forums/viewtopic.php?p=255011#p255011 For the character rectangle here must be 4 moving points, each must be checked and the dx, dy must be shorten...
by darkfrei
Thu Aug 22, 2024 7:09 am
Forum: General
Topic: What is your solution to inventory management?
Replies: 7
Views: 5780

Re: What is your solution to inventory management?

The best loot is money: easy to collect, easy to use. All other upgrades are in the near store.
by darkfrei
Fri Aug 16, 2024 10:37 am
Forum: Support and Development
Topic: Calling draw/update functions from a table in for loop?
Replies: 10
Views: 6336

Re: Calling draw/update functions from a table in for loop?

Iterate using pairs or ipairs (if the table does not have empty nils) Could you explain this more? I am new to Love and Lua The best part of Lua: pairs for index, activeEnemy in pairs (self.activeEnemies) do activeEnemy:draw() end It iterates all and each element in the table "self.activeEnemi...
by darkfrei
Tue Jul 23, 2024 6:34 am
Forum: General
Topic: fading trail effect
Replies: 6
Views: 4760

Re: fading trail effect

by darkfrei
Tue Jul 09, 2024 7:13 am
Forum: Support and Development
Topic: how do i make a countdown timer?
Replies: 3
Views: 1781

Re: how do i make a countdown timer?

local function newTimer(seconds, callback) return { duration = seconds, callback = callback, elapsedTime = 0, active = true } end local function updateTimer(timer, dt) if timer.active then timer.elapsedTime = timer.elapsedTime + dt if timer.elapsedTime >= timer.duration then timer.active = false ti...
by darkfrei
Fri May 24, 2024 8:07 pm
Forum: General
Topic: [solved] Help with my pool(billiards) game
Replies: 4
Views: 1619

Re: Help with my pool(billiards) game

betobala wrote: Fri May 24, 2024 7:59 pm I need to draw the pool cue behind the cue ball, pointing at the mouse position. But I do not know the math to make that happens, can I get some help? :)
Make .love not .rar