Search found 9 matches

by Xrocetoxtos
Fri May 05, 2023 10:53 pm
Forum: Support and Development
Topic: Trying to make duplicate objects from the same class interact independently
Replies: 2
Views: 787

Re: Trying to make duplicate objects from the same class interact independently

I'm not sure this is the right way to do it, but I solved a similar issue with what I found here: https://www.lua.org/pil/16.1.html Basically, you make two more instances of 'ball', al with the same functionality but with its own position, direction, speed etc. Those are provided by the Ball:new fun...
by Xrocetoxtos
Thu Apr 27, 2023 12:47 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

Thank you, Ross. There's some differences between lua and c# that I need to get used to, like local not being the default and all the self stuff in functions. Your post here will be very useful.
by Xrocetoxtos
Wed Apr 26, 2023 12:56 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

Ah thank you. That looks useful too.
by Xrocetoxtos
Tue Apr 25, 2023 6:23 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

BrotSagtMist wrote: Tue Apr 25, 2023 4:35 pm Ahh yea sweet dejavu.
We just had a thread here viewtopic.php?f=4&t=94465
The TLDR is: I am out.
Alright. Thanks still.
by Xrocetoxtos
Tue Apr 25, 2023 6:23 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

I will check that out. Thank you for the help anyway.
by Xrocetoxtos
Tue Apr 25, 2023 2:17 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

Hmm I think I'm still misunderstanding something, because I have this thing in my love.load now in main.lua objects = require 'objects' player=objects.Player:new([... params...) then there is objects.lua local objects={} Player={} function objects:Player:new([...params...]) ... end If I run this, Lö...
by Xrocetoxtos
Tue Apr 25, 2023 2:00 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

Ah right. I think I understand. i probably like the other way better, with graphics.doSomething(). Maybe once I'm more versed in lua and less in c#, it might feel more comfortable. Thanks anyway, I'll let my people bring you guys the karma :awesome:
by Xrocetoxtos
Tue Apr 25, 2023 1:27 pm
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Re: Writing stuff in separate files

Thank you both. What I meant was exactly what Andlac was suggesting. I'll use it that way, except the other way is even better for my taste, so he's one more question: We can just use it to plain insert any file at that place so that the end result behaves as being one file. does this in practice me...
by Xrocetoxtos
Tue Apr 25, 2023 9:43 am
Forum: Support and Development
Topic: Writing stuff in separate files
Replies: 14
Views: 1813

Writing stuff in separate files

Hi people, I'm new here (well, I have some Löve experience back in the past, but switched to Unity and revisiting Löve now) I am working on a survival game of currently just blocks avoiding each other and I'm getting to the point of inserting some animations and graphics. To avoid my files being ver...