Search found 29 matches
- Sun Dec 24, 2023 6:01 pm
- Forum: Games and Creations
- Topic: Started My Very First Love2d Game
- Replies: 25
- Views: 341143
Re: Started My Very First Love2d Game
Okay, so here is attached the .love file. The code is slightly further along. A mouseover of a star will pop up a panel with some information. The blue star will be named Sol (working on that now). Sol is the human's home star. Mouse over the closest stars to the blue star to see if they are in rang...
- Sun Dec 24, 2023 5:36 pm
- Forum: Games and Creations
- Topic: Started My Very First Love2d Game
- Replies: 25
- Views: 341143
Re: Started My Very First Love2d Game
Every star will have a name. That is what I am working on now. So if anyone wants a star named after them they need to supply working code. :cool: Thanks Bobble68, That is a bit over my head for now. Looks a bit complicated for my Very Simple Space Game . But one question, please. Does tying it to d...
- Sun Dec 24, 2023 7:32 am
- Forum: Games and Creations
- Topic: Started My Very First Love2d Game
- Replies: 25
- Views: 341143
Re: Started My Very First Love2d Game
I'm definitely up past my bedtime but I couldn't go to sleep until I cleaned up the code. main.lua require("colors") require("globals") require("initiate") require("draw") require("update") require("utils") function love.load() Initiate() e...
- Sun Dec 24, 2023 5:21 am
- Forum: Games and Creations
- Topic: Started My Very First Love2d Game
- Replies: 25
- Views: 341143
Re: Started My Very First Love2d Game
Took a moment to update the file structure. This way I need only post the files that change. main require("colors") require("initiate") require("draw") require("update") require("utils") function love.load() love.window.setFullscreen(true, "desk...
- Sun Dec 24, 2023 4:08 am
- Forum: Games and Creations
- Topic: Started My Very First Love2d Game
- Replies: 25
- Views: 341143
Started My Very First Love2d Game
It is going to be a very simple Space Conquest Game. I'll be open to suggestions along the way. All I got done so far is some initialization, drawing of stars and ship numbers. And one can press 'n' for a new start. Basically one will send ships from one's own stars to another star in range. There w...
- Sat Dec 23, 2023 7:18 pm
- Forum: General
- Topic: I Imagine A Color Picker Has Been Done A Thousand Times
- Replies: 5
- Views: 23851
Re: I Imagine A Color Picker Has Been Done A Thousand Times
Nice coding by both! :) However, both are too fast on my machine. Really nice idea to hold down more than one color key at a time. Page down works with two colors but page up does not. So just a minor bug. There are rgb color list online that gives names to various colors. Like SlateBlue rgb(106, 90...
- Thu Dec 21, 2023 8:10 pm
- Forum: General
- Topic: My Very First Love2d Program
- Replies: 2
- Views: 1502
Re: My Very First Love2d Program
Thanks!milon wrote: ↑Thu Dec 21, 2023 6:38 pm Pretty good for a first go at it!
Quick tip - the first 4 lines in love.update(dt) can be changed to one line:Code: Select all
if love.keyboard.isDown("escape") then love.event.quit() end
- Thu Dec 21, 2023 3:46 pm
- Forum: General
- Topic: I Imagine A Color Picker Has Been Done A Thousand Times
- Replies: 5
- Views: 23851
I Imagine A Color Picker Has Been Done A Thousand Times
I just did one as part of my learning curve. press "r" and ("down arrow" or "up arrow") or press "g" and ("down arrow" or "up arrow") or press "b" and ("down arrow" or "up arrow") to adjust the color levels. fu...
- Thu Dec 21, 2023 6:57 am
- Forum: General
- Topic: My Very First Love2d Program
- Replies: 2
- Views: 1502
My Very First Love2d Program
Rat In A Cage function love.load() love.window.setFullscreen(true, "desktop") width, height = love.window.getDesktopDimensions(1) circle = {} circle.x = width/2 circle.y = height/2 circle.dx = 0 circle.dy = 0 circle.radius = 20 end function love.update(dt) down = love.keyboard.isDown("...