Search found 29 matches

by kingnoob
Wed Dec 27, 2023 10:37 pm
Forum: Games and Creations
Topic: Started My Very First Love2d Game
Replies: 25
Views: 360822

Re: Started My Very First Love2d Game

Something seems to be up with the way you've packaged your game - normally if you have Love2D installed, you should be able to run the .love file directly. I could only do that once I unzipped it and repackaged it myself. What method are you using for this? Other than that, seems to be coming along...
by kingnoob
Wed Dec 27, 2023 8:11 pm
Forum: Games and Creations
Topic: Started My Very First Love2d Game
Replies: 25
Views: 360822

Re: Started My Very First Love2d Game

This is a very simple explanation of the gui system. Maybe this is common. Or maybe it is new. Idk. It is a craft by hand system but it would be nice to have a visual designer for it that will write the functions for us. My Update function is very simple function Update() Keyboard() Mouse() UpdateLi...
by kingnoob
Tue Dec 26, 2023 7:17 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

Re: I used ChatGPT

I'm curious what it would be like to completely get ChatGPT to create a game in love2d - would probably need some level of automation though, so that you can automatically disregard generated code that throws errors. Edit: Screw it I'm gonna try it I am... surprised that it actually did it. It's ob...
by kingnoob
Tue Dec 26, 2023 5:45 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

Re: I used ChatGPT

It appears that I'm smarter than ChatGPT. lol Surprised? You shouldn't ;) The formulas answered for one of the questions make no sense whatsoever (the ones "based on the ratio of the longer and shorter axes"). The answer you need is: Thanks! However the code derived from ChatGPT actually ...
by kingnoob
Tue Dec 26, 2023 5:02 am
Forum: Games and Creations
Topic: Started My Very First Love2d Game
Replies: 25
Views: 360822

Re: Started My Very First Love2d Game

This was a long day. But happily I was able to solve a programming dilemma with the help of ChatGPT. How to move an object across the screen from (x1, y1) to (x2, y2) at a consistent speed. And I added temporary demo code to see if it works. --added to globals.lua fleet = {} for i = 1, 1000 do fleet...
by kingnoob
Tue Dec 26, 2023 12:44 am
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

Re: I used ChatGPT

It appears that I'm smarter than ChatGPT. lol I just got the impression that Chat's code was overly complicated so I proposed the following code to ChatGPT. distance = math.sqrt((x2 - x1) ^ 2 + (y2 - y1) ^ 2) delta_x = x2 - x1 delta_y = y2 - y1 delta_x_scaled = delta_x / distance delta_y_scaled = de...
by kingnoob
Mon Dec 25, 2023 10:14 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

Re: I used ChatGPT

After a couple of back and forths with ChatGPT I presented ChatGPT with some code. dx = x2 - x1 dy = y2 - y1 mag = math.sqrt(dx ^ 2 + dy ^ 2) dxn = dx / mag dyn = dy / mag vel = 1 / 60 dist = vel * mag dxs = dxn * dist dys = dyn * dist while x1 ~= x2 and y1 ~= y2 do x1 = x1 + dxs y1 = y1 + dys end A...
by kingnoob
Mon Dec 25, 2023 9:15 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

Re: I used ChatGPT

ME Here is a post i made on a lua forum. "Well that is not exactly what I wanted. So I went back to ChatGPT and asked a better question. my previous two questions (1. in two dimensional space if an object is at floating point coordinates (x1, y1) and is moving at a constant velocity to floating...
by kingnoob
Mon Dec 25, 2023 8:49 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

Re: I used ChatGPT

Well that is not exactly what I wanted. So I went back to ChatGPT and asked a better question. my previous two questions (1. in two dimensional space if an object is at floating point coordinates (x1, y1) and is moving at a constant velocity to floating point coordinates (x2, y2) how are delta x and...
by kingnoob
Mon Dec 25, 2023 8:16 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 263832

I used ChatGPT

Do you use ChatGPT? Here is my session. ME in two dimensional space if an object is at floating point coordinates (x1, y1) and is moving at a constant velocity to floating point coordinates (x2, y2) how are delta x and delta y calculated for 1/60th of a second? CHAT To calculate the change in x (del...