Search found 1169 matches

by darkfrei
Wed Nov 30, 2022 3:51 pm
Forum: Support and Development
Topic: Bullet death when hitting a bump wall
Replies: 2
Views: 958

Re: Bullet death when hitting a bump wall

Im trying to make it so that when a bullet class hits a wall it "dies" dying = self.alive = false I have it so it died when it goes outside the screen but I have no clue where to even start when it comes to killing it on a Bump lib wall, I added each bullet to the world when its made, and...
by darkfrei
Wed Nov 30, 2022 1:18 pm
Forum: Games and Creations
Topic: Day and Night (cellular automaton)
Replies: 5
Views: 2107

Day and Night (cellular automaton)

Hi all! Here is a Day and Night (cellular automaton) Very short code, no GUI or shortcuts. Nice algorithm in pure Lua to create procedural generated maps (by stop after 200 steps). function love.load() w = 1920/4 h = 1080/4 love.window.setMode(w, h) field = {} for y = 1, h do field[y] = {} for x = 1...
by darkfrei
Tue Nov 29, 2022 2:51 pm
Forum: Support and Development
Topic: Collision with Bump
Replies: 6
Views: 1179

Re: Collision with Bump

I've never used this lib but but found it here: https://github.com/kikito/bump.lua#collision-resolution function movePlayer(player, dt) local goalX, goalY = player.x + player.vx * dt, player.y + player.vy * dt local actualX, actualY, cols, len = world:move(player, goalX, goalY) player.x, player.y = ...
by darkfrei
Sun Nov 27, 2022 3:55 pm
Forum: Support and Development
Topic: Shader to create transparency? (I need to use JPG)
Replies: 3
Views: 1394

Re: Shader to create transparency? (I need to use JPG)

You can use png optimization tool mo make it smaller.
by darkfrei
Fri Nov 25, 2022 11:51 am
Forum: Libraries and Tools
Topic: Generate 47 tiles template
Replies: 3
Views: 2304

Generate 47 tiles template

Hi all! Here is a small tool to generate 47 tiles as: sprites-47.png The size of tile (pixels per tile) and image dpi (subpixels per unit "pixel") can be changed. -- main function: local function getCanvas() local subtileSize = 4 -- pixels in tile local dpiscale = 8 -- subpixels per pixel ...
by darkfrei
Fri Nov 18, 2022 9:48 pm
Forum: General
Topic: Function to outline texts
Replies: 17
Views: 3144

Re: Function to outline texts

Yes, the freebie is not free :)
You are need to pay for any optimization.
by darkfrei
Fri Nov 18, 2022 9:44 pm
Forum: Support and Development
Topic: Drawing the 'Negative' of a circle.
Replies: 10
Views: 1776

Re: Drawing the 'Negative' of a circle.

pgimeno wrote: Fri Nov 18, 2022 4:53 pm I forgot it was for an older version, sorry.
It looks very nice! I cannot right now look how it works, can you please in short explain that?
Screenshot_20221118-224212.jpg
Screenshot_20221118-224212.jpg (427.33 KiB) Viewed 1141 times