Search found 104 matches

by PGUp
Sat Oct 12, 2019 5:57 am
Forum: General
Topic: love2d without window
Replies: 1
Views: 1102

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: 602

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 home router...
by PGUp
Tue Sep 24, 2019 9:33 am
Forum: Support and Development
Topic: connection over the internet using sock.lua
Replies: 6
Views: 602

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: 602

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: 2568

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: 3251

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: 862

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: 4619

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: 3251

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
by PGUp
Sun Jun 16, 2019 2:26 pm
Forum: Libraries and Tools
Topic: Groverburger's Super Simple 3D Engine - v1.3
Replies: 25
Views: 19995

Re: Groverburger's Super Simple 3D Engine - v1.2

I added a simple obj file loader, credits to: https://github.com/karai17/lua-obj
loader.zip
(341.23 KiB) Downloaded 154 times