Search found 1968 matches

by zorg
Fri Jan 19, 2018 2:57 pm
Forum: Support and Development
Topic: Help calling Love functions from a module
Replies: 3
Views: 74

Re: Help calling Love functions from a module

Also, do be aware that the module keywordfunction(ality) is deprecated.
Edited
by zorg
Thu Jan 18, 2018 4:29 pm
Forum: Support and Development
Topic: confused about print() statements
Replies: 3
Views: 67

Re: confused about print() statements

Me neither, which can mean two things. 1. Less likely: Löve (or something that it uses internally) has a bug somewhere; 2. More likely: Your code (or a lib you might be using) has a bug somewhere. While the information's amount that you have written to describe the symptoms and stuff is a lot, i don...
by zorg
Thu Jan 18, 2018 3:46 pm
Forum: Support and Development
Topic: Help with 2D lighting
Replies: 10
Views: 244

Re: Help with 2D lighting

Top-Down is also a 2D view, are you thinking about Side-Scrollers perhaps? (Or maybe isometric, those are indeed harder to shadow/light correctly) I'm pretty sure both canvases, blendmodes and shaders are needed to get a good effect, and i'm suspecting that existing libraries (showcasing top-down de...
by zorg
Mon Jan 15, 2018 6:44 pm
Forum: Support and Development
Topic: MULTIPLAYER ONLINE GAME - how to do?
Replies: 9
Views: 331

Re: MULTIPLAYER ONLINE GAME - how to do?

I can give some further pointers though, but it may be in vain in terms of your deadline; From my experience with Lineage II (private servers, before the game went free2play i mean), i can state a few things: - Have your server be authoritative, that is to say, you only ever send user interaction da...
by zorg
Mon Jan 15, 2018 12:43 am
Forum: Support and Development
Topic: MULTIPLAYER ONLINE GAME - how to do?
Replies: 9
Views: 331

Re: MULTIPLAYER ONLINE GAME - how to do?

>MMORPG
>Without game programming knowledge
It's getting better and betterm, though i do admire your brazenness.

Okay, so basically you send whatever you want to send, and then process whatever you want to process. It's that simple.
It's all up to you how you code your game.
by zorg
Sat Jan 13, 2018 4:47 am
Forum: Support and Development
Topic: MULTIPLAYER ONLINE GAME - how to do?
Replies: 9
Views: 331

Re: MULTIPLAYER ONLINE GAME - how to do?

Hi and welcome to the forums! https://love2d.org/wiki/lua-enet has code for a simple server+client project, although you need to modify the infinite loops since löve already has love.update you should use. Alternatively https://love2d.org/wiki/socket and https://love2d.org/wiki/Tutorial:Networking_w...
by zorg
Sat Jan 13, 2018 4:38 am
Forum: Support and Development
Topic: 30log is not polymorphic?
Replies: 5
Views: 223

Re: 30log is not polymorphic?

local class = require "30log" local A = class("A") function A:init() print(self.test()) end function A:test() return "A" end local B = A:extend() function B:init() B.super.init(B) -- <- talking about this; end function B:test() return "B" end A() -- prints "A" B() -- should print "B", but prints "A...
by zorg
Sat Jan 13, 2018 4:35 am
Forum: Support and Development
Topic: Platforms in Game Error
Replies: 1
Views: 66

Re: Platforms in Game Error

I'm assuming you just dumped your separate source files together above, since there's no separate game.lua you have showed us, that would have love.graphics.rectangle call on the 17th line as the error message says... Either post a löve file, or separate the code as how it originally was, or we can'...
by zorg
Thu Jan 11, 2018 2:48 pm
Forum: Games and Creations
Topic: Bump in the Night
Replies: 4
Views: 436

Re: Bump in the Night

You could try to vary the pitch of very repetitive sounds, like footstep sounds, by a small amount each time you play them back; a simple code, something similar to the following might do the trick: -- sfx is the table of Sources, like you have it -- footstep is a Source object -- Whenever you call ...
by zorg
Thu Jan 11, 2018 2:27 pm
Forum: Support and Development
Topic: Multicore/Threading help?
Replies: 7
Views: 327

Re: Multicore/Threading help?

Ok thanks for this addition. Now I don't understand why I got to copy tables in lua as they're always passed by reference. It's true that tables are also passed by reference, but they are part of one lua state , and those are specific to one thread only. Think of it like trying to use a reference t...