Search found 105 matches

by PGUp
Fri Dec 27, 2019 3:11 pm
Forum: Support and Development
Topic: I have been trying to figure this out for the past 2 day pls help ;(
Replies: 2
Views: 3389

Re: I have been trying to figure this out for the past 2 day pls help ;(

Just use sock.lua, it's a wrapper on top of enet.. even easier
by PGUp
Sat Oct 12, 2019 5:57 am
Forum: General
Topic: love2d without window
Replies: 1
Views: 4503

love2d without window

why is this not working?

Code: Select all

function love.conf(t)
	t.modules.window = false
	t.modules.image = false
	t.modules.graphics = false 
	t.modules.audio = false
	t.console = true
end
love2d would just crash, version 11.2
by PGUp
Tue Sep 24, 2019 9:58 am
Forum: Support and Development
Topic: connection over the internet using sock.lua
Replies: 6
Views: 4847

Re: connection over the internet using sock.lua

Check out my humble tutorial using just Lua socket: https://2dengine.com/?p=networking By setting its address to "*" the server will be able to communicate with multiple clients Note that Lua socket won't work over the internet when one or both machines are behind a NAT device such as a h...
by PGUp
Tue Sep 24, 2019 9:33 am
Forum: Support and Development
Topic: connection over the internet using sock.lua
Replies: 6
Views: 4847

Re: connection over the internet using sock.lua

zorg wrote: Tue Sep 24, 2019 9:24 am The github page gives examples for the server, and that has this one line in it:

Code: Select all

server = sock.newServer("*", 22122)
Maybe try it like that? :3
I gave it a try, the server and client never communicate, is it because I am on the same machine testing it though?
by PGUp
Tue Sep 24, 2019 9:17 am
Forum: Support and Development
Topic: connection over the internet using sock.lua
Replies: 6
Views: 4847

connection over the internet using sock.lua

I'm using sock.lua library networking.. https://github.com/camchenry/sock.lua so from my knowledge, to achieve connection over the internet, the server needs it's public ip adress/localhost and the client need to connect over that ip adress... this is the server code local sock = require 'sock' func...
by PGUp
Sun Aug 04, 2019 10:27 am
Forum: Support and Development
Topic: Command line parameters not working
Replies: 3
Views: 5496

Command line parameters not working

Code: Select all

function love.load(arg)
    for i,v in pairs(arg) do
		print(v)
	end
end
I ran the .love file with the following command:

Code: Select all

main.love test a b c
the output of the print function is not showing the argument i passed with the command line
by PGUp
Sun Jul 21, 2019 2:57 pm
Forum: Support and Development
Topic: How to print text that isn't affected by the camera.scale ?
Replies: 12
Views: 10826

Re: How to print text that isn't affected by the camera.scale ?

Use love.graphics.push() and love.graphics.pop()
by PGUp
Wed Jul 10, 2019 11:48 am
Forum: Support and Development
Topic: Creating a physics engine
Replies: 4
Views: 4123

Re: Creating a physics engine

love2d already has it's own physics library, love.physics, if you are struggling with collision detection look this up
https://2dengine.com/?p=intersections
by PGUp
Tue Jul 09, 2019 2:55 pm
Forum: Support and Development
Topic: e-net: host not working with external IP adress on port forwarding
Replies: 3
Views: 7964

Re: e-net: host not working with external IP adress on port forwarding

just use this dude, it's an enet wrapper and it's much more simple than enet
https://github.com/camchenry/sock.lua
by PGUp
Tue Jul 09, 2019 10:59 am
Forum: Support and Development
Topic: How to print text that isn't affected by the camera.scale ?
Replies: 12
Views: 10826

Re: How to print text that isn't affected by the camera.scale ?

use love.graphics.push() before drawing the text and love.graphics.pop() after drawing the text