Search found 1169 matches
- 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...
- 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...
- 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 = ...
- Tue Nov 29, 2022 2:42 pm
- Forum: Support and Development
- Topic: Is there any way to turn a Text into a normal string?
- Replies: 9
- Views: 2808
- 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.
- 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 ...
- Wed Nov 23, 2022 7:50 pm
- Forum: Support and Development
- Topic: attach two images together inside memory, ImageData:paste() ? no glitch when moving together
- Replies: 3
- Views: 1105
Re: attach two images together inside memory, ImageData:paste() ? no glitch when moving together
If you using something like this (spritesheet layers of body tiles and clothes)
https://opengameart.org/content/lpc-character-bases
you can also use the array of sprites:
https://love2d.org/wiki/love.graphics.newArrayImage
https://opengameart.org/content/lpc-character-bases
you can also use the array of sprites:
https://love2d.org/wiki/love.graphics.newArrayImage
- Wed Nov 23, 2022 6:56 pm
- Forum: Support and Development
- Topic: attach two images together inside memory, ImageData:paste() ? no glitch when moving together
- Replies: 3
- Views: 1105
Re: attach two images together inside memory, ImageData:paste() ? no glitch when moving together
Just draw to canvas, you can also save it to file.
- 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.
You are need to pay for any optimization.
- Fri Nov 18, 2022 9:44 pm
- Forum: Support and Development
- Topic: Drawing the 'Negative' of a circle.
- Replies: 10
- Views: 1776