If you solved the problem then explain how and the next one can google it.
Search found 1186 matches
- Thu Nov 16, 2023 8:13 am
- Forum: Support and Development
- Topic: Love wont display anything :( [CLOSED]
- Replies: 7
- Views: 13050
- Mon Nov 13, 2023 5:55 pm
- Forum: Support and Development
- Topic: Love wont display anything :( [CLOSED]
- Replies: 7
- Views: 13050
Re: Love wont display anything :(
-- wrong: for i = 1, sel-1 do love.graphics.circle("line", ar[i], ar[i+1], 30) end -- rigth: for i = 1, sel-1, 2 do love.graphics.circle("line", ar[i], ar[i+1], 30) end Also be sure where you insert values: function mk() ar[#ar+1] = love.math.random(0, love.graphics.getWidth()) ...
- Mon Nov 13, 2023 11:19 am
- Forum: General
- Topic: Code Doodles!
- Replies: 197
- Views: 311472
Re: Code Doodles!
Boids - flocking simulation in toroidal world Width,Height = love.graphics.getDimensions() love.window.setTitle ('Boids - Flocking Simulation') love.graphics.setLineWidth (3) -- Define boids class Boids = {} Toroidal = {} function Toroidal.position (x,y , width,height) x = (x + width) % width y = (y...
- Fri Nov 10, 2023 8:06 pm
- Forum: Support and Development
- Topic: [solved] Animation - For Limit Must Be A Number
- Replies: 10
- Views: 21811
Re: Animation - For Limit Must Be A Number
What is imageHeight and imageWidth? Where it was defined?
- Thu Nov 09, 2023 11:23 am
- Forum: Libraries and Tools
- Topic: Buttons Barebone Library
- Replies: 0
- Views: 101786
Buttons Barebone Library
Hi all! There is a buttons barebone library, it supports what you want it to support. For example: -- main.lua local myButtons = require ('myButtons') function love.load() local color = {1,1,1} local function onButtonHovered (button) button.hovered = true button.lineWidth = 4 end local function onBu...
- Mon Nov 06, 2023 11:26 am
- Forum: General
- Topic: Code Doodles!
- Replies: 197
- Views: 311472
Re: Code Doodles!
Code doodle game about rolling of 5 dice: Press space to reroll table.unpack = table.unpack or unpack love.graphics.setFont(love.graphics.newFont (20)) dx = 20 local function random () return math.random (6) end local function getSumm () local value = 0 for i = 1, 5 do local dice = diceSet[i] value ...
- Wed Nov 01, 2023 8:06 am
- Forum: Games and Creations
- Topic: I published my first game with Love2d - Fire at Will (with source code)
- Replies: 11
- Views: 22407
Re: My first game with Love2d: Fire at Will
Maybe this site sell games with copyrights, not just a games as game copy?
- Sun Oct 29, 2023 11:16 am
- Forum: Support and Development
- Topic: Translating a 2D world into a retro 3D first person perspective
- Replies: 1
- Views: 4355
Re: Translating a 2D world into a retro 3D first person perspective
1. Create the same, but just with circles. Each circle has x,y position on map, radius on map. By the given player position and periscope direction, it can be recalculated as x position on the screen and radius un the screen. function love.load() Width, Height = love.graphics.getDimensions () MapCan...
- Sat Oct 28, 2023 2:45 pm
- Forum: Support and Development
- Topic: how to call an array to draw an object after a certain amount of DT has passed?
- Replies: 2
- Views: 9353
Re: how to call an array to draw an object after a certain amount of DT has passed?
im currently working on my first game, and i have a way to brute force a functionality thats good enough for this project, but with significantly more lines of code than id likely need if i could figure out how to call an array. Counter = 0 function love.load () require "enemy" enemy = En...
- Fri Oct 27, 2023 1:50 pm
- Forum: Libraries and Tools
- Topic: Parabola functions in Lua
- Replies: 11
- Views: 100810
Re: Parabola functions in Lua
Voronoi Fortune's Algorithm Animation in Lua. The code was reworked, works fine, but the circle event was replaced with beach line cleaning. --[[ Copyright 2023 darkfrei The MIT License https://opensource.org/license/mit/ <...> --]] local vfa = {} local function sortXYBackward (list) table.sort(list...