Search found 1195 matches
- 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...
- 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
- Tue Sep 10, 2024 2:48 pm
- Forum: General
- Topic: Steam Deck
- Replies: 9
- Views: 4985
- 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...
- 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...
- 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.
- 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...
- Tue Jul 23, 2024 6:34 am
- Forum: General
- Topic: fading trail effect
- Replies: 6
- Views: 4760
- 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...
- Fri May 24, 2024 8:07 pm
- Forum: General
- Topic: [solved] Help with my pool(billiards) game
- Replies: 4
- Views: 1619