Search found 56 matches

by zell2002
Sun Dec 07, 2014 5:04 pm
Forum: Support and Development
Topic: generated mass is the same as density passed in
Replies: 4
Views: 567

Re: generated mass is the same as density passed in

ah, i think i misread the computemass() output before as it is behaving the same for me now but yeah, if you print Density it is also 0.9375 which isn't correct when i change it to : Width = Meter * 2 Height = Meter * 2 Density = 1 the outputs are : Density : 1 Mass : 4 *edit, just seen your extra r...
by zell2002
Sun Dec 07, 2014 4:37 pm
Forum: Support and Development
Topic: generated mass is the same as density passed in
Replies: 4
Views: 567

generated mass is the same as density passed in

is this correct ? how does box2d calculate mass? here is my world : Meter = 64 love.physics.setMeter(Meter) --World = love.physics.newWorld(0, 0, true) World = love.physics.newWorld(0, 9.81 * Meter, true) so a meter is 64px for me then i create a shape : Width = Meter/2 Height = Meter * 2 local shap...
by zell2002
Sun Dec 07, 2014 4:11 pm
Forum: Support and Development
Topic: Running love2d from sublime when not in root folder
Replies: 6
Views: 1090

Re: Running love2d from sublime when not in root folder

using "${project_path:$file_path}" has the same results im afraid

im not 100% sure how I would write the batch file to do it for me inside sublime ...
by zell2002
Fri Dec 05, 2014 3:20 pm
Forum: Support and Development
Topic: Running love2d from sublime when not in root folder
Replies: 6
Views: 1090

Running love2d from sublime when not in root folder

i have this for my build : { "selector": "source.lua", "cmd": ["H:/LOVE/love.exe", "$file_path"], "shell": true } say im working on a project MyGame H:\LOVE\MyGame\ and in that I have main.lua and another folder "Library" which has a helper.lua file H:\LOVE\MyGame\Library\helper.lua file when in Sub...
by zell2002
Wed Oct 15, 2014 9:54 am
Forum: Support and Development
Topic: Getting started with multiplayer
Replies: 8
Views: 2491

Re: Getting started with multiplayer

*note * no code to hand, and havent looked at what i did for ages, and not sure if this is an over kill approach ... you may want to look into how other games handle this stuff replication, prediction etc.. i used LUBE and a lot of readings. i did it by having the Server holding the game state, and ...
by zell2002
Sat Oct 04, 2014 12:25 pm
Forum: Support and Development
Topic: gamepads || joysticks - how to tell what is plugged in
Replies: 4
Views: 1093

Re: gamepads || joysticks - how to tell what is plugged in

i have no idea what 'steam big picture mode' is lol and i havent launched any of my .love through steam tbh so not 100% sure how that would work out i think the gamepadmapping has finally clicked though, something like this: love.joystick.setGamePadMapping(ps2_guid, "a", "button", 5); i assume, i'd ...
by zell2002
Sat Oct 04, 2014 11:35 am
Forum: Support and Development
Topic: gamepads || joysticks - how to tell what is plugged in
Replies: 4
Views: 1093

Re: gamepads || joysticks - how to tell what is plugged in

ok that makes sense 360 controller is (of course) true for isGamepad() ps2 via usb converter is false ps3 controller is true how could i add my ps2 controller so its buttons can be seen also as A etc... Im writting a multiplayer game to play when friends come over, and have many ps2 controllers, so ...
by zell2002
Sat Oct 04, 2014 10:53 am
Forum: Support and Development
Topic: gamepads || joysticks - how to tell what is plugged in
Replies: 4
Views: 1093

gamepads || joysticks - how to tell what is plugged in

Hi, I've looked through the joystick API, but I'm a bit confused about how I go about doing this. I have an xbox 360 controlled plugged in, a ps2 (with usb converter) plugged in, and a ps3 controller obviously they all show different button ids for each button press (the ps2 right stick on the Y is ...
by zell2002
Tue Apr 29, 2014 7:39 pm
Forum: Support and Development
Topic: Water + Buoyancy
Replies: 0
Views: 623

Water + Buoyancy

Following this : https://www.iforce2d.net/b2dtut/buoyancy But not sure how I go about doing the : Area and centroid of a polygon, using the Intersection of two polygons ive found : http://love2d.org/wiki/PointWithinShape And assume the func I want is : GetIntersect() Has anyone done something simila...
by zell2002
Fri Mar 28, 2014 11:41 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 101040

Re: LUBE (Networking Library)

Hi thought id post back with an example of the server recieving from the client : server code : function onConnect(id) server:send("hi", id) -- never gets through print(id) -- always prints id end function onReceive(data, id) print(data .. "sent from "..id) -- always see this end function StartServe...