Switch to DuckDuckGo Search
   October 19, 2016  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[00:04:20] *** kjempff <kjempff!~kvirc@1004ds2-arno.0.fullrate.ninja> has quit IRC (Read error: Connection reset by peer)
[00:07:09] <mobidevelop> Probably not
[00:07:50] <TEttinger> if your game isn't really doing much physics, it might
[00:08:11] <TEttinger> board games probably don't need box2d
[00:11:01] *** CaptainLex <CaptainLex!~CaptainLe@12.104.244.5> has quit IRC (Ping timeout: 260 seconds)
[00:14:56] *** Biliogadafr1 <Biliogadafr1!~PIN@nat-minsk-pool-46-53-202-183.telecom.by> has quit IRC (Ping timeout: 260 seconds)
[00:17:08] *** Xoppa <Xoppa!~Xoppa@54689556.cm-12-1c.dynamic.ziggo.nl> has quit IRC (Quit: Leaving)
[00:25:10] *** Oebele <Oebele!~quassel@143.177.58.202> has quit IRC (Read error: Connection reset by peer)
[00:27:06] <diphtherial> well, i was under the impression that it'd be fighting box2d more than not if i were to use it for a classic platformer
[00:27:43] <diphtherial> and, in fact, i don't need most of its functionality; i just need to move around AABBs in a roughly believable way, no joints (or even rotation) required
[00:30:23] <ficolas> json serialization didnt work with enums right?
[00:33:13] *** intrigus <intrigus!uid114902@gateway/web/irccloud.com/x-oqqddqyohfsbyrsg> has quit IRC (Quit: Connection closed for inactivity)
[00:34:20] *** dsaltares <dsaltares!~siondream@149.18.70.210> has quit IRC (Ping timeout: 250 seconds)
[00:35:37] *** hextileX <hextileX!~Thunderbi@xdsl-87-78-163-92.netcologne.de> has quit IRC (Ping timeout: 252 seconds)
[00:35:53] *** mobidevelop <mobidevelop!~nexsoftwa@2607:fb90:84bb:ebd6:2eef:3431:9c84:d078> has quit IRC (Ping timeout: 245 seconds)
[00:37:08] <ficolas> no, its the object map what isnt serializing correctly
[00:44:30] *** schlogg <schlogg!~meinteil@ua-84-219-215-81.cust.bredbandsbolaget.se> has joined #libgdx
[00:44:52] <schlogg> is the correct way to handle expired links to run a cron job? what alternatives is there? could that be really hard when the database is huge, say 1 million users? loop over all and set change pw links and dates to none. delete user if it is an unconfirmed account. etc
[00:51:47] *** gerds0n <gerds0n!~gerds0n@p5DCDE922.dip0.t-ipconnect.de> has quit IRC (Quit: Leaving)
[00:51:57] *** Betalord <Betalord!bce68946@gateway/web/freenode/ip.188.230.137.70> has left #libgdx
[00:53:23] <ShivanHunter_> using the Tiled map editor, is there any way to add properites to a specific tile on the map (not a tile type in the tileset)? Or dies the format just not support it
[00:55:37] <Tomski> ShivanHunter_: right click the tile
[00:56:35] *** hextileX <hextileX!~Thunderbi@xdsl-87-78-163-92.netcologne.de> has joined #libgdx
[00:57:12] <ShivanHunter_> on the tileset?
[00:57:18] <ShivanHunter_> I mean a specific tile on the map
[00:57:22] <Tomski> on a tile
[00:57:51] <ShivanHunter_> that just selects the tile so I can place more of it
[00:58:03] *** mtphr <mtphr!~metaphore@31.204.23.14> has quit IRC (Read error: Connection reset by peer)
[01:00:07] <ficolas> How can I serialize object maps? it says java.lang.String cannot be cast to whatever key class is used
[01:00:13] <ficolas> example code: http://pastebin.com/7J7XRgra
[01:01:30] <Tomski> ShivanHunter_: perhaps you cant then
[01:01:38] <ShivanHunter_> ya, figured as much
[01:01:44] <Tomski> Usually tile specific meta can be done on another layer
[01:01:46] <ficolas> if instead of an enum and a vec2 simpler clases are used, it still doesnt work
[01:07:13] <ficolas> will I need to use save two arrays and then link them toguether into an objectmap? or is there an easier way
[01:07:39] *** schlogg <schlogg!~meinteil@ua-84-219-215-81.cust.bredbandsbolaget.se> has left #libgdx
[01:11:44] *** Kotcrab <Kotcrab!uid51771@gateway/web/irccloud.com/x-ozwerxyzogdarkrk> has quit IRC (Quit: Connection closed for inactivity)
[01:16:00] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has joined #libgdx
[01:22:13] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[01:22:25] <dnyy> hm, how can i do something when a TextField value changes?
[01:22:29] <dnyy> do i have to overwrite the listener?
[01:23:25] *** Neomex <Neomex!~Neomex@bqu61.neoplus.adsl.tpnet.pl> has quit IRC (Quit: Leaving)
[01:23:52] *** icomputo <icomputo!~saku@148.227.223.248> has quit IRC (Quit: icomputo.com)
[01:27:54] *** LiquidNitrogen <LiquidNitrogen!~quassel@122-56-232-202.mobile.spark.co.nz> has joined #libgdx
[01:28:51] <diphtherial> dnyy: yeah, you should call addListener() on your TextField and pass it an overridden version of EventListener -- TextField.TextFieldListener looks like a good candidate
[01:29:15] <diphtherial> here's an example, albeit with an InputListener: https://github.com/libgdx/libgdx/wiki/Scene2d#inputlistener
[01:30:19] <dnyy> ok that's kinda what i thought ty
[01:31:17] *** Loraunt <Loraunt!~Loraunt@ip70-178-10-112.ks.ks.cox.net> has joined #libgdx
[01:32:55] *** ficolas <ficolas!5d7295f1@gateway/web/freenode/ip.93.114.149.241> has quit IRC (Ping timeout: 260 seconds)
[01:34:40] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 260 seconds)
[01:36:00] <dnyy> my game like randomly locks up w/ no error it's gettin' old lol ;_;
[01:36:03] <dnyy> no idea where to start to fix it
[01:37:22] <diphtherial> it's possible the locking up is GC thrashing; it'd help to profile it
[01:37:44] <diphtherial> look for instances where you're allocating a bunch of transient entities and consider pooling them if that's frequent
[01:37:51] <diphtherial> *objects, not entities
[01:38:54] *** Keniyal <Keniyal!~Keniyal@unaffiliated/keniyal> has quit IRC (Ping timeout: 244 seconds)
[01:46:21] *** Keniyal <Keniyal!~Keniyal@unaffiliated/keniyal> has joined #libgdx
[01:46:52] <dnyy> yea i think just start of game is busy
[01:47:05] <dnyy> like no matter waht, the first turn (turn based game) lags for like half a second then the game runs smoothe
[01:47:09] <dnyy> but sometimes it just freezes on first turn
[01:47:21] <dnyy> i guess 'cause lotta pathfinding stuff going on idk, not sure how to really fix it tho
[01:49:11] <TEttinger> pathfinding can sometimes get weird locking conditions if there's a bug in your code (not necessarily pathfinding, if the level has no connected possible way to travel from point A to point B, and you try to find a path from A to B, it may freeze if your game is waiting for a path)
[01:49:47] <dnyy> oh hm, that shouldn't happen but def maybe. only happens every, like, 30 times i start the game which is half of why it's so hard to figure out
[01:49:55] <dnyy> will try and see if that's happening tho
[01:49:59] <TEttinger> other things might be map gen producing all walls, so it endlessly tries to spawn a player/monster and can't
[01:50:28] <TEttinger> I say walls, I mean impassable cells
[01:50:43] <dnyy> i do checks to make sure the map is so big and no closed off spots before spawning anything. an entity could become blocked, tho, if another enemy is blocking the only tile that would be walkable (in a tunnel or something)
[01:50:55] <dnyy> might be what's happening
[01:51:24] <TEttinger> does it always pathfind for all monsters to the player regardless of range?
[01:51:45] <TEttinger> you could maybe check if there is a way the monster could get to the player first
[01:51:55] <dnyy> nah so, unless they see the player (basically never on first turn), each entity picks a random open position on the map and finds a path there (for "wondering")
[01:52:07] <dnyy> another prob good idea was to limit how far from their starting position they can wander
[01:52:08] <TEttinger> ohhh
[01:52:18] <TEttinger> could the random open position be unconnected?
[01:52:41] <TEttinger> like a space behind a tunnel blocked by another enemy?
[01:53:02] <dnyy> that *shouldn't* since the pathfinding checks every turn if their path has become blocked but always possible it's buggy
[01:53:09] <dnyy> just wish this stuff was easier to see haha
[01:53:41] <TEttinger> yep. I use seeded random number generators everywhere I test
[01:53:57] <TEttinger> it can help if the map is random
[01:54:31] <TEttinger> (as in, give the same seed every test)
[01:56:22] <dnyy> yea i use seed + have seed input in UI before starting game but not totally confident it works right haha
[01:56:44] <dnyy> like map gen is always same, doesn't always feel like AI and combat and stuff are same
[02:06:18] *** hextileX <hextileX!~Thunderbi@xdsl-87-78-163-92.netcologne.de> has quit IRC (Quit: hextileX)
[02:07:45] *** Isogash <Isogash!~Isogash@87.127.112.116> has quit IRC (Quit: Leaving)
[02:17:51] *** rubenwardy <rubenwardy!~rubenward@unaffiliated/rubenwardy> has quit IRC (Remote host closed the connection)
[02:34:47] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has quit IRC (Read error: Connection reset by peer)
[02:35:15] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has joined #libgdx
[02:42:19] <Loraunt> Am I stupid or will HorizontalGroups not center their children?...
[02:42:58] <Loraunt> Like I want [....[1,2,3]....] but what I'm getting is [......[1,2,3]..]
[02:43:43] *** davimore_ <davimore_!~davimore@46.227.67.83> has joined #libgdx
[02:45:37] *** Joetz <Joetz!~Johannes@cable-78-34-30-47.netcologne.de> has quit IRC (Quit: Leaving)
[02:46:14] *** davimore <davimore!~davimore@46.227.67.83> has quit IRC (Ping timeout: 250 seconds)
[02:57:56] *** mobidevelop <mobidevelop!~nexsoftwa@2607:fb90:2201:e05d:a690:2b3:6020:63e3> has joined #libgdx
[02:57:56] *** ChanServ sets mode: +o mobidevelop
[03:08:40] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has quit IRC (Quit: Leaving)
[03:31:52] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[03:34:20] *** crazy_imp <crazy_imp!~mj@unaffiliated/crazy-imp/x-8704303> has quit IRC (Ping timeout: 250 seconds)
[03:41:48] *** crazy_imp <crazy_imp!~mj@unaffiliated/crazy-imp/x-8704303> has joined #libgdx
[03:42:24] <TEttinger> dnyy, oh yeah, AI and combat can't be the same if the choices made are different
[03:42:26] *** LiquidNitrogen <LiquidNitrogen!~quassel@122-56-232-202.mobile.spark.co.nz> has quit IRC (Remote host closed the connection)
[03:42:33] <TEttinger> the issue seems to be at startup though
[03:51:24] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 260 seconds)
[03:55:06] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has joined #libgdx
[03:57:15] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has quit IRC (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)
[04:08:51] *** Maylay <Maylay!~gren@adsl-65-9-198-69.mia.bellsouth.net> has quit IRC (Quit: Intoxication, drink, humanity, non-drinkers, beauty.)
[04:09:31] *** Maylay <Maylay!~gren@adsl-65-9-198-69.mia.bellsouth.net> has joined #libgdx
[04:23:00] *** guardianL_ <guardianL_!~guardian@58-7-194-122.dyn.iinet.net.au> has quit IRC ()
[04:28:32] *** Keniyal <Keniyal!~Keniyal@unaffiliated/keniyal> has quit IRC (Remote host closed the connection)
[04:31:52] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has joined #libgdx
[04:39:12] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[04:46:10] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has quit IRC (Ping timeout: 268 seconds)
[04:51:16] *** barodapride <barodapride!~barodapri@c-98-240-156-69.hsd1.mn.comcast.net> has joined #libgdx
[04:51:37] <barodapride> hey does anyone know why libgdx recommends a 1/45 second step time?
[04:53:30] *** pplante <pplante!~textual@65.78.138.166> has joined #libgdx
[05:01:51] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Remote host closed the connection)
[05:05:03] <solarlune> barodapride, Step time?
[05:05:08] <solarlune> You mean like world step time?
[05:06:24] <barodapride> yeap
[05:08:10] <solarlune> Where did you see that?
[05:08:13] <solarlune> barodapride,
[05:08:58] <barodapride> https://github.com/libgdx/libgdx/wiki/Box2d#stepping-the-simulation
[05:11:52] <solarlune> barodapride, Huh. Well, that indeed doesn't say why Box2D suggests 1/45 step time.
[05:12:06] <solarlune> The example shows 1/60 anyway, so ??? from me.
[05:12:34] <barodapride> just wondering
[05:14:04] *** Loraunt <Loraunt!~Loraunt@ip70-178-10-112.ks.ks.cox.net> has quit IRC (Ping timeout: 265 seconds)
[05:17:35] <solarlune> barodapride, Nah, that's a good question - the documentation should state the reason behind suggestions if possible.
[05:17:40] <solarlune> Maybe someone'll edit it in.
[05:26:55] <barodapride> It's probably been there for a long time
[05:27:53] *** davimore_ <davimore_!~davimore@46.227.67.83> has quit IRC (Ping timeout: 260 seconds)
[05:29:05] <barodapride> solarlune are you the guy that does the youtube videos? Are you using libgdx now?
[05:30:58] *** lukass <lukass!~lukass@p5087C1F1.dip0.t-ipconnect.de> has joined #libgdx
[05:34:04] *** lukass_ <lukass_!~lukass@p5087CC49.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 260 seconds)
[05:36:04] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has joined #libgdx
[05:41:13] <pplante> how do i upgrade to gradle 2.3?
[05:41:22] <pplante> im on 2.14.1
[05:41:46] <pplante> oh i guess im an idiot and was on a newer version :)
[05:42:11] <pplante> numbers :/
[06:27:55] *** guardianL_ <guardianL_!~guardian@58-7-194-122.dyn.iinet.net.au> has joined #libgdx
[06:28:51] *** pplante <pplante!~textual@65.78.138.166> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)
[06:37:31] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has quit IRC (Remote host closed the connection)
[06:47:22] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has quit IRC (Remote host closed the connection)
[06:47:57] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has joined #libgdx
[06:49:52] *** barodapride <barodapride!~barodapri@c-98-240-156-69.hsd1.mn.comcast.net> has quit IRC (Read error: Connection reset by peer)
[06:52:00] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has quit IRC (Ping timeout: 244 seconds)
[06:54:27] *** warmwaffles <warmwaffles!~warmwaffl@cpe-72-183-137-95.austin.res.rr.com> has quit IRC (Remote host closed the connection)
[07:05:25] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has joined #libgdx
[07:21:08] *** Corosauce <Corosauce!~Corosus@135-23-126-120.cpe.pppoe.ca> has quit IRC (Quit: Leaving)
[07:21:59] *** Corosus <Corosus!~Corosus@135-23-126-120.cpe.pppoe.ca> has joined #libgdx
[07:28:02] *** Sadale <Sadale!~Sadale@unaffiliated/sadale> has joined #libgdx
[07:43:09] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[07:45:20] *** guardianL_ <guardianL_!~guardian@58-7-194-122.dyn.iinet.net.au> has quit IRC ()
[07:59:07] *** iprime <iprime!~v@unaffiliated/iprime> has joined #libgdx
[08:03:52] *** smelC <smelC!~churlin@4be54-1-81-56-4-73.fbx.proxad.net> has joined #libgdx
[08:12:03] *** pplante <pplante!~textual@65.78.138.166> has joined #libgdx
[08:17:15] *** Corosus <Corosus!~Corosus@135-23-126-120.cpe.pppoe.ca> has quit IRC (Ping timeout: 265 seconds)
[08:17:21] <pplante> i loaded a model, and its rendering fine. however the model instance's transform is null. any idea why?
[08:25:48] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 260 seconds)
[08:31:25] *** gerds0n <gerds0n!~gerds0n@p57991755.dip0.t-ipconnect.de> has joined #libgdx
[08:38:23] *** Corosus <Corosus!~Corosus@135-23-126-120.cpe.pppoe.ca> has joined #libgdx
[08:39:40] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has joined #libgdx
[08:49:04] *** guardianA <guardianA!~guardianA@58-7-194-122.dyn.iinet.net.au> has joined #libgdx
[08:51:02] *** pplante <pplante!~textual@65.78.138.166> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)
[08:56:42] *** darkamikaze <darkamikaze!~darkamika@cpe-76-169-176-20.socal.res.rr.com> has joined #libgdx
[08:59:59] *** Shockah|Work <Shockah|Work!~Shockah@185.28.17.74> has joined #libgdx
[09:03:53] *** JoeyDePoey <JoeyDePoey!~rembrandt@c98195.upc-c.chello.nl> has quit IRC ()
[09:18:24] *** TEttinger <TEttinger!~notostrac@76-217-24-171.lightspeed.irvnca.sbcglobal.net> has quit IRC (Ping timeout: 250 seconds)
[09:22:25] *** davebaol <davebaol!~davebaol@93.92.79.200> has joined #libgdx
[09:23:40] *** davebaol <davebaol!~davebaol@93.92.79.200> has quit IRC (Read error: Connection reset by peer)
[09:23:40] *** LiquidNitrogen <LiquidNitrogen!~quassel@115-189-93-69.mobile.spark.co.nz> has joined #libgdx
[09:23:41] *** davebaol_ <davebaol_!~davebaol@93.92.79.200> has joined #libgdx
[09:39:40] *** darkamikaze <darkamikaze!~darkamika@cpe-76-169-176-20.socal.res.rr.com> has quit IRC (Read error: Connection reset by peer)
[09:42:23] *** [AD]Turbo <[AD]Turbo!~ADTurbo@host242-241-dynamic.56-79-r.retail.telecomitalia.it> has joined #libgdx
[09:42:52] <[AD]Turbo> morning ladies :D
[09:59:47] *** mk1 is now known as mk1_daily
[10:00:12] *** Biliogadafr <Biliogadafr!~PIN@nat-minsk-pool-46-53-202-183.telecom.by> has joined #libgdx
[10:04:40] *** realitix <realitix!~Thunderbi@92.103.166.6> has joined #libgdx
[10:07:18] *** Larry1123 <Larry1123!Larry1123@irc.larry1123.net> has quit IRC (Ping timeout: 244 seconds)
[10:09:55] *** Larry1123 <Larry1123!Larry1123@irc.larry1123.net> has joined #libgdx
[10:12:25] *** Jonas__ <Jonas__!~Jonas__@unaffiliated/jonas/x-7723671> has joined #libgdx
[10:12:43] *** Jonas___ <Jonas___!~Jonas__@unaffiliated/jonas/x-7723671> has quit IRC (Read error: Connection reset by peer)
[10:13:49] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has quit IRC (Quit: Leaving)
[10:17:41] *** laubed <laubed!~Thunderbi@hotsplots-blu1-ip52.cust.syseleven.net> has joined #libgdx
[10:19:44] *** exception <exception!~textual@1-36-176-128.static.netvigator.com> has joined #libgdx
[10:19:57] *** laubed <laubed!~Thunderbi@hotsplots-blu1-ip52.cust.syseleven.net> has quit IRC (Client Quit)
[10:22:44] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[10:28:48] *** atrus6 <atrus6!~Thunderbi@72.241.82.247> has quit IRC (Ping timeout: 256 seconds)
[10:34:42] *** exception <exception!~textual@1-36-176-128.static.netvigator.com> has quit IRC (Quit: Textual IRC Client: www.textualapp.com)
[10:41:04] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has joined #libgdx
[10:41:46] *** mk1_daily <mk1_daily!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[10:41:50] *** LiquidNitrogen <LiquidNitrogen!~quassel@115-189-93-69.mobile.spark.co.nz> has quit IRC (Remote host closed the connection)
[10:46:21] *** Jonas__ <Jonas__!~Jonas__@unaffiliated/jonas/x-7723671> has quit IRC (Quit: Leaving)
[10:46:33] *** Jonas__ <Jonas__!~Jonas__@unaffiliated/jonas/x-7723671> has joined #libgdx
[10:48:31] *** Serpent7776 <Serpent7776!~Serpent77@90-156-68-175.internetia.net.pl> has joined #libgdx
[10:58:50] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[11:03:27] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has joined #libgdx
[11:03:38] *** remonvv <remonvv!~remon@ip-213-127-248-102.ip.prioritytelecom.net> has joined #libgdx
[11:06:20] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 260 seconds)
[11:07:43] *** Betalord <Betalord!bce68946@gateway/web/freenode/ip.188.230.137.70> has joined #libgdx
[11:07:46] <Betalord> hi
[11:08:22] <Betalord> I have a problem with the UI... on desktop, it looks great, on my android, it's way to small. How can I most easily scale it on my android (by factor 2, for example)?
[11:08:43] <Betalord> that is, only my UI (buttons, texts, ...) and not the game itself
[11:09:09] <Betalord> and the second question would be, how can I scale EVERYTHING (UI and the game itself)?
[11:28:23] <monsieur_h> Betalord: you may want to look at viewports
[11:51:47] <Betalord> well, I just tested it out... I created a new Viewport (FillViewPort) and set my UI's stage like this: uiStage.setViewport(viewport). The problem is, that the buttons don't scale, they just stretch. The other problem is, that clicking on buttons no longer works, because mouse coordinates are scaled or something. Any ideas on how to correct these problems?
[11:58:01] *** karab44 <karab44!~karab44@unaffiliated/karab44> has joined #libgdx
[12:05:54] <monsieur_h> for the mouse coordinates issues you can use camera.project()
[12:06:07] <monsieur_h> for the stretching, look at the different types of viewports
[12:06:23] <monsieur_h> I.E.https://github.com/libgdx/libgdx/wiki/Viewports
[12:06:25] <monsieur_h> https://github.com/libgdx/libgdx/wiki/Viewports
[12:12:17] *** remonvv <remonvv!~remon@ip-213-127-248-102.ip.prioritytelecom.net> has quit IRC (Quit: remonvv)
[12:13:41] <mk1> Betalord: stretching is usually not a good idea. better provide different UI atlases and font sizes for different pixel densities
[12:15:00] *** Ashiren <Ashiren!~Ashiren@host-62-61-44-66.dynamic.mm.pl> has quit IRC (Ping timeout: 260 seconds)
[12:15:11] <Betalord> monsieur_h: unproject can't be used... it's the UI itself that needs to handle this things. I can unproject coordinates in the onClick event, but not on the onHover etc., which gets handled automatically by the UI
[12:16:01] *** Ashiren <Ashiren!~Ashiren@host-62-61-44-66.dynamic.mm.pl> has joined #libgdx
[12:21:50] *** Neomex <Neomex!~Neomex@abfy156.neoplus.adsl.tpnet.pl> has joined #libgdx
[12:38:20] *** remonvv <remonvv!~remon@ip-213-127-248-102.ip.prioritytelecom.net> has joined #libgdx
[12:38:21] *** laubed <laubed!~Thunderbi@dslb-088-075-251-243.088.075.pools.vodafone-ip.de> has joined #libgdx
[12:51:43] *** lukass <lukass!~lukass@p5087C1F1.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 256 seconds)
[12:52:58] *** lukass <lukass!~lukass@p5087C1F1.dip0.t-ipconnect.de> has joined #libgdx
[13:02:49] *** Xoppa <Xoppa!~Xoppa@54689556.cm-12-1c.dynamic.ziggo.nl> has joined #libgdx
[13:02:49] *** ChanServ sets mode: +o Xoppa
[13:03:28] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[13:42:08] *** cackling_ladies <cackling_ladies!~cackling_@14.162.209.116> has joined #libgdx
[13:44:04] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 260 seconds)
[13:45:39] *** laubed <laubed!~Thunderbi@dslb-088-075-251-243.088.075.pools.vodafone-ip.de> has quit IRC (Quit: laubed)
[13:55:05] *** BCX <BCX!d91fcd02@gateway/web/freenode/ip.217.31.205.2> has joined #libgdx
[14:06:15] *** davimore <davimore!~davimore@253-148-045-062.dynamic.caiway.nl> has joined #libgdx
[14:08:37] *** Neomex <Neomex!~Neomex@abfy156.neoplus.adsl.tpnet.pl> has quit IRC (Quit: Leaving)
[14:16:36] *** BCX <BCX!d91fcd02@gateway/web/freenode/ip.217.31.205.2> has quit IRC (Quit: Page closed)
[14:19:13] *** rgr <rgr!~user@p20030086AB0F06757EDD90FFFE49493A.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 245 seconds)
[14:38:42] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has joined #libgdx
[14:42:17] <mobidevelop> Betalord: are you handling resize and updating the viewport there?
[14:44:23] *** Kotcrab <Kotcrab!uid51771@gateway/web/irccloud.com/x-waouzytqgtlyjjsq> has joined #libgdx
[14:46:08] *** karab44 <karab44!~karab44@unaffiliated/karab44> has quit IRC ()
[14:47:54] *** Freiza <Freiza!~Freiza@117.205.150.69> has joined #libgdx
[14:56:58] <Betalord> ok, I figured it out... was setting the Stage's viewport too late in the pipe. Now clicking on buttons works fine. However, a new question: my UI is scaled now (via Stage.setViewport()), however all the rest of the screen is not, that is when I draw circles and lines, and textures on the screen. How can I apply this viewport that I use for uiStage for other stuff as well?
[14:57:42] <Betalord> I want everything to be affected by my viewport... so that it would create a kind of zoom-in effect
[14:58:28] <Betalord> mobidevelop: btw, no, I'm not (I didn't add anything to resize() method). Should I do something in resize()?
[14:58:41] *** evident_ is now known as evident
[15:00:07] <mobidevelop> Betalord: you should update the viewport in resize, the wiki linked previously should give full details
[15:01:38] <mobidevelop> As for having your viewport affect all of your drawing, use the same camera/combined matrix for all renderers and they should all draw to the same viewpprt
[15:01:46] <mobidevelop> *viewport
[15:06:15] <Betalord> ah, true, I've just set the projection matrix for my batch and ShapeRenderer, so now it works :)
[15:11:02] <Betalord> btw, I call setProjectionMatrix() on every render() now, but could I call it just on resize() or something? I think it doesn't needs to get called each frame, right?
[15:12:16] <mk1> it doesn't really matter
[15:12:32] <mk1> you won't gain any speed by omitting the call
[15:23:58] <Betalord> hm, ok
[15:34:25] *** Isogash <Isogash!~Isogash@87.127.112.116> has joined #libgdx
[15:39:28] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has joined #libgdx
[15:41:07] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[15:42:29] *** CaptainLex <CaptainLex!~CaptainLe@12.104.244.5> has joined #libgdx
[16:00:15] *** Freiza <Freiza!~Freiza@117.205.150.69> has quit IRC (Quit: Leaving)
[16:01:37] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D311F00719E4ABCF870DA6A.dip0.t-ipconnect.de> has joined #libgdx
[16:03:43] *** ficolas <ficolas!5d7295f1@gateway/web/freenode/ip.93.114.149.241> has joined #libgdx
[16:04:05] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has joined #libgdx
[16:04:29] <ficolas> what do I need to do to serialize object maps using the Json serialization in libgdx? Example code: http://pastebin.com/7J7XRgra it says ava.lang.String cannot be cast to whatever-key-is-used
[16:05:31] *** karab44 <karab44!~karab44@unaffiliated/karab44> has joined #libgdx
[16:06:04] *** nexsoftware <nexsoftware!~nexsoftwa@2607:fb90:2288:7cff:c0b6:d821:3802:650> has joined #libgdx
[16:06:04] *** ChanServ sets mode: +o nexsoftware
[16:07:33] *** mobidevelop <mobidevelop!~nexsoftwa@2607:fb90:2201:e05d:a690:2b3:6020:63e3> has quit IRC (Ping timeout: 245 seconds)
[16:13:06] *** davebaol_ <davebaol_!~davebaol@93.92.79.200> has quit IRC (Ping timeout: 244 seconds)
[16:18:14] <Betalord> quick question: how do I figure out the bottom-right coordinates of a line that I want to draw using some BitmapFont?
[16:19:12] <Betalord> when I call draw(), I put in the top-left coordinates. However, I need to figure out what the bottom-right coordinates would be, so I can align others things bellow/right of the line that I am drawing
[16:19:13] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 245 seconds)
[16:22:48] <Xoppa> Betalord, the draw() method returns its dimensions
[16:23:25] <Betalord> Xoppa: ok, actually, I need it before drawing... because I am drawing some text on top-left of another image
[16:24:03] <Xoppa> sounds like you just can use the hAlign argument
[16:26:30] <Betalord> no, it's not that simple. OK, this is the thing: I am drawing planets, using circle() method in the ShapeRenderer. In the top left corner, I want to draw the number of ships on them. And I want to align it to radius + font size, so that it doesn't overlap with the planet surface
[16:27:06] <Betalord> if I could align font to be drawn from top-bottom corner, then yes, I could use that. But can that be done?
[16:27:34] <Xoppa> sure
[16:28:01] <Xoppa> well, ofcourse, there is no top-bottom corner ;)
[16:29:12] <Betalord> eh, top-right of course :)
[16:29:26] <Betalord> so, how?
[16:30:01] <Betalord> actually, bottom right. That is (x,y) is the bottom-right corner. I need the text to be drawn from this point toward left/up
[16:30:13] <Xoppa> set the hAlign argument to right
[16:31:25] <Betalord> what should I use as targetWidth? It says nothing in the code (it's not that well documented)
[16:31:53] <Xoppa> set it to: 4242
[16:32:28] <Xoppa> well it is the width of the target
[16:32:41] <Xoppa> so practically right=x+targetWidth
[16:34:10] *** davimore <davimore!~davimore@253-148-045-062.dynamic.caiway.nl> has quit IRC (Ping timeout: 250 seconds)
[16:35:46] *** monsieur_h1 <monsieur_h1!~Thunderbi@194.125-14-84.ripe.coltfrance.com> has joined #libgdx
[16:36:28] *** monsieur_h1 <monsieur_h1!~Thunderbi@194.125-14-84.ripe.coltfrance.com> has quit IRC (Client Quit)
[16:55:14] *** Shockah|Work <Shockah|Work!~Shockah@185.28.17.74> has quit IRC (Quit: Leaving)
[16:57:00] *** LyronDev <LyronDev!86933fb8@gateway/web/freenode/ip.134.147.63.184> has joined #libgdx
[16:59:10] <Betalord> Xoppa: ok, that takes care of horizontal, what about vertical? How can I draw text above point (x,y)?
[16:59:35] <Betalord> (btw, I've set targetWidth to 0, that should be fine, right?)
[17:02:58] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D311F00719E4ABCF870DA6A.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 245 seconds)
[17:03:30] <isdera> can someone help me with a general programming question? I'm trying to create a UI window. The constructor takes an argument called "sharedStage", which is a Stage that I share with all my game's windows. In the constructor, I say myStage = sharedStage, which should store a reference. But when I try to manipulate myStage variable in other methods, I get a NPE even thoug the constructor was
[17:03:30] <isdera> called first and the reference should exist.
[17:05:49] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D311F00719E4ABCF870DA6A.dip0.t-ipconnect.de> has joined #libgdx
[17:08:12] *** jeffol <jeffol!~jeffol@65.158.118.6> has joined #libgdx
[17:10:31] <Betalord> isdera: either constructor gets called too soon (try to debug it with some System.out.println messages to see the sequence of constructor calls), or other methods get invoked before the constructor. I think.
[17:12:17] <isdera> there seems to be a lot of conflicting information online about whether Java passes objects as a value or reference. which is it
[17:15:46] *** mk1 <mk1!c291ebf8@gateway/web/cgi-irc/kiwiirc.com/ip.194.145.235.248> has quit IRC (Quit: Leaving)
[17:17:56] <isdera> i have a TextButton with a ChangeListener so it can detect when it's clicked. The problem with the ChangeListener class is it's encapsulated and can't "see" anything in other classes so I can perform a function when it's clicked.
[17:20:25] *** FrottyZad <FrottyZad!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has joined #libgdx
[17:22:09] *** Freiza <Freiza!~Freiza@117.205.150.69> has joined #libgdx
[17:22:51] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has quit IRC (Ping timeout: 244 seconds)
[17:23:05] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has joined #libgdx
[17:23:16] <Betalord> isdera: it's pass by value. See this: http://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value
[17:23:36] <Xoppa> Betalord, you mean how to increase your y argument? .draw(..., y+whateveryouwant, ...)
[17:24:02] <Betalord> Xoppa: whateveryouwant needs to be exact height of the line. How can I get that?
[17:24:29] <Xoppa> take a wild guess Betalord ;)
[17:24:31] <Betalord> that is, the maximum height of the line (of the tallest character)
[17:24:38] <Xoppa> font.getLineHeight()
[17:25:14] <Betalord> that's not possible. Height depends on the text.
[17:25:26] *** FrottyZad <FrottyZad!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has quit IRC (Ping timeout: 244 seconds)
[17:25:32] <Xoppa> no it doesnt, at least not if you dont have wrapping enabled
[17:25:55] *** intrigus <intrigus!uid114902@gateway/web/irccloud.com/x-ryjxpnpadhjyejcw> has joined #libgdx
[17:25:56] <Xoppa> if you havent if you set the max width to zero
[17:26:08] <Xoppa> *if=which
[17:26:29] <Betalord> hm, ok, I'll use getLineHeight then :)
[17:27:33] <Betalord> naah, it's off. Besides, the docs says that getLineHeight returns " the line height, which is the distance from one line of text to the next. "
[17:28:06] *** solarlune <solarlune!~solarlune@2606:6000:6507:3900:4ecc:6aff:fe03:da25> has joined #libgdx
[17:28:45] <Xoppa> if you dont want to get the height of the line, then what do you want to get?
[17:29:23] <Betalord> the height of the tallest letter of the given text in pixels
[17:29:51] <Betalord> or, in other words, I just want to align the text to the bottom
[17:30:12] <Betalord> and need to know what to add to the y coordinate in order to be aligned to the bottom
[17:31:26] <Xoppa> i guess you want getCapHeight then
[17:32:52] *** xylef <xylef!~xylef@28.125.134.37.dynamic.jazztel.es> has joined #libgdx
[17:33:00] *** remonvv <remonvv!~remon@ip-213-127-248-102.ip.prioritytelecom.net> has quit IRC (Quit: remonvv)
[17:34:21] <Betalord> yep, getCapHeight works better, it aligns well now
[17:36:09] <Xoppa> note that that is not aligning to the bottom
[17:37:07] <Xoppa> afaik the x, y coordinates you hand over to the draw method are of the lower left corner of the first line
[17:38:14] <Xoppa> ow, no it isn´t: The y position for the top of most capital letters in the font (the {@link BitmapFontData#capHeight cap height})
[17:38:28] <Betalord> well I have 1 line only. I am trying to do aligning to the bottom myself, via y+height thing
[17:41:40] *** Quallenmann <Quallenmann!~quallenma@p200300DE73CBF18762E16515BF5E28A2.dip0.t-ipconnect.de> has joined #libgdx
[17:44:24] *** davimore <davimore!~davimore@253-148-045-062.dynamic.caiway.nl> has joined #libgdx
[17:51:15] *** Neomex <Neomex!~Neomex@dua237.neoplus.adsl.tpnet.pl> has joined #libgdx
[18:01:13] *** xylef <xylef!~xylef@28.125.134.37.dynamic.jazztel.es> has quit IRC (Quit: Konversation terminated!)
[18:01:57] *** mxttie <mxttie!~mattie@d51a46969.access.telenet.be> has joined #libgdx
[18:02:54] *** davimore <davimore!~davimore@253-148-045-062.dynamic.caiway.nl> has quit IRC (Read error: Connection reset by peer)
[18:03:03] *** guardianA <guardianA!~guardianA@58-7-194-122.dyn.iinet.net.au> has quit IRC (Ping timeout: 265 seconds)
[18:05:52] *** davimore <davimore!~davimore@253-148-045-062.dynamic.caiway.nl> has joined #libgdx
[18:06:39] *** Shockah <Shockah!~Shockah@acmb105.neoplus.adsl.tpnet.pl> has joined #libgdx
[18:07:09] *** CaptainLex <CaptainLex!~CaptainLe@12.104.244.5> has quit IRC (Ping timeout: 260 seconds)
[18:07:28] *** Quallenmann <Quallenmann!~quallenma@p200300DE73CBF18762E16515BF5E28A2.dip0.t-ipconnect.de> has left #libgdx
[18:07:41] *** [AD]Turbo <[AD]Turbo!~ADTurbo@host242-241-dynamic.56-79-r.retail.telecomitalia.it> has quit IRC ()
[18:08:38] *** guardianA <guardianA!~guardianA@pa49-197-187-49.pa.qld.optusnet.com.au> has joined #libgdx
[18:09:39] *** Serpent7776 <Serpent7776!~Serpent77@90-156-68-175.internetia.net.pl> has quit IRC (Quit: Leaving)
[18:13:21] *** guardianA <guardianA!~guardianA@pa49-197-187-49.pa.qld.optusnet.com.au> has quit IRC (Ping timeout: 260 seconds)
[18:14:10] <Betalord> another question: I'm trying to do panning and zooming (via GestureListener). Now, the problem is, that I use viewport to stretch screen. When I pan, panning happens to quick (it doesn't take in consideration viewport). How to solve it?
[18:14:27] <Betalord> In the pan method, I simply do "game.cam.translate(-deltaX, deltaY);"
[18:14:49] <Betalord> this works in case I use no viewport... in case of a stretched viewport, thing doesn't work well anymore
[18:16:43] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[18:24:12] <Betalord> nevermind, I found my answer: http://stackoverflow.com/questions/36157942/libgdx-gesturedetector-pan-method-slower-faster-in-devices
[18:24:22] *** Freiza <Freiza!~Freiza@117.205.150.69> has quit IRC (Quit: Leaving)
[18:38:35] *** CaptainLex <CaptainLex!~CaptainLe@12.104.244.5> has joined #libgdx
[18:41:33] *** realitix <realitix!~Thunderbi@92.103.166.6> has quit IRC (Quit: realitix)
[18:50:03] *** CaptainLex_ <CaptainLex_!~CaptainLe@12.104.244.5> has joined #libgdx
[18:51:36] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Ping timeout: 260 seconds)
[18:52:25] *** CaptainLex <CaptainLex!~CaptainLe@12.104.244.5> has quit IRC (Ping timeout: 260 seconds)
[18:52:33] *** karab44 <karab44!~karab44@unaffiliated/karab44> has quit IRC ()
[18:58:07] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[19:18:14] *** Oebele <Oebele!~quassel@143.177.58.202> has joined #libgdx
[19:27:05] *** TEttinger <TEttinger!~notostrac@76-217-24-171.lightspeed.irvnca.sbcglobal.net> has joined #libgdx
[19:53:53] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Remote host closed the connection)
[19:54:57] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[20:05:49] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Remote host closed the connection)
[20:12:35] *** smelC <smelC!~churlin@4be54-1-81-56-4-73.fbx.proxad.net> has quit IRC (Quit: www.schplaf.org/hgames/)
[20:19:26] *** mxttie <mxttie!~mattie@d51a46969.access.telenet.be> has quit IRC (Quit: Doodiedoodiedoodiedoooo)
[20:23:11] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has joined #libgdx
[20:37:53] *** Sadale <Sadale!~Sadale@unaffiliated/sadale> has quit IRC (Quit: Ĝis revido)
[20:40:06] *** xylef <xylef!~xylef@28.125.134.37.dynamic.jazztel.es> has joined #libgdx
[20:41:48] *** Freiza <Freiza!~Freiza@117.205.148.190> has joined #libgdx
[20:42:59] *** Fastinyoh <Fastinyoh!~Fastinyoh@204.28.124.221> has quit IRC (Remote host closed the connection)
[20:47:18] *** Freiza <Freiza!~Freiza@117.205.148.190> has quit IRC (Read error: Connection reset by peer)
[20:47:35] *** gerds0n <gerds0n!~gerds0n@p57991755.dip0.t-ipconnect.de> has quit IRC (Quit: Leaving)
[20:47:41] *** Freiza <Freiza!~Freiza@117.205.148.190> has joined #libgdx
[20:53:19] <dnyy> there a way to initialize Array in static field? so `public static Array<String> things = new Array<>("foo", "bar")` or something?
[20:55:41] *** icomputo <icomputo!~saku@148.227.223.248> has joined #libgdx
[20:56:51] <solarlune> dnyy, Doesn't seem like it. You could do a normal array rather than an instance of an array.
[20:57:07] <solarlune> E.g. "static public int[] test = new int{1, 2, 3, 4};"
[20:57:11] <dnyy> yea guess i'll go w/ that
[20:58:01] <solarlune> dnyy, I suppose you could also use the Arrays class's asList() function.
[21:24:54] <diphtherial> for classic platformer physics (e.g. mario, castlevania, metroid), do you think it's better to manipulate the character by applying forces, adjusting their velocity, or adjusting their position directly?
[21:25:12] <diphtherial> perhaps i should put physics in quotes, as it's not intended to be an actual physical simulation
[21:26:07] <Tomski> If you are using box2d, always use forces
[21:26:09] <diphtherial> right now i'm using euler integration, e.g. F is the sum of impulses for the frame including gravity, a = F/m, v = v + a*t, x = x + v*t
[21:26:33] <Tomski> If youre not using box2d, up to you, but I would still use forces
[21:26:35] <diphtherial> (i'm actually using verlet integration to make it a little more stable, but i thought the eqns above would be easier to parse)
[21:26:38] <diphtherial> i'm not using box2d
[21:27:04] <diphtherial> my main goal is for the control to feel 'tight'
[21:29:37] <diphtherial> i'll give it a shot with doing it all via forces, thanks
[21:30:08] <diphtherial> one of the nice things about the ECS is that it's quite easy to experiment with drop-in replacements for the entire physics system
[21:31:08] <diphtherial> there does have to be some agreement between the player control system and the physics system about how the player's actions are applied, though; in that case using the force as the 'interface' to the physics for the player is appealing
[21:32:24] *** xylef <xylef!~xylef@28.125.134.37.dynamic.jazztel.es> has quit IRC (Quit: Konversation terminated!)
[21:33:41] <solarlune> diphtherial, Well, the old-school method is to just check collision using the tile data directly, I think. Not sure if Mario and stuff had "proper" physics formula and variables (like mass) - I'd imagine the physics were just made for the game.
[21:39:02] <diphtherial> solarlune: that's a fair point. i'm also checking the tile data directly fwiw (well, a 3x3 tile area around the player, at least)
[21:39:22] *** NooBxGockeL <NooBxGockeL!~NooBxGock@p200300802D311F00719E4ABCF870DA6A.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[21:45:00] *** mac_ified <mac_ified!~mac_ified@66.192.139.82> has joined #libgdx
[21:45:32] <diphtherial> by 'made for the game', what do you mean exactly? i get that they're a simplication of physics, but surely somewhere in the code they're doing something like pos = pos + velocity
[21:46:04] <diphtherial> i threw mass in because it was easy, but if classic platformers capture the feel by just modifying velocity directly i could drop that and acceleration
[21:46:23] <diphtherial> my grammar super sucks today -- i'm a native english speaker, believe it or not
[21:47:21] *** Oebele <Oebele!~quassel@143.177.58.202> has quit IRC (Remote host closed the connection)
[21:50:15] *** Oebele <Oebele!~quassel@143.177.58.202> has joined #libgdx
[21:50:31] *** mac_ified <mac_ified!~mac_ified@66.192.139.82> has left #libgdx
[21:52:18] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has quit IRC (Ping timeout: 268 seconds)
[21:57:12] *** Keniyal <Keniyal!~Keniyal@unaffiliated/keniyal> has joined #libgdx
[22:06:22] <solarlune> diphtherial, Ah, whoops. I meant that it's a simplification of physics, yeah.
[22:06:40] *** kjempff <kjempff!~kvirc@0133501203.0.fullrate.ninja> has joined #libgdx
[22:06:47] <solarlune> I always check this too late. :(
[22:10:52] <diphtherial> solarlune: np, it's irc -- response latency on the order of days isn't unusual
[22:13:41] *** ficolas <ficolas!5d7295f1@gateway/web/freenode/ip.93.114.149.241> has quit IRC (Ping timeout: 260 seconds)
[22:14:09] <Scellow> Anyone know how to read a string from an ACSII encoded file
[22:14:14] <Scellow> ?
[22:15:03] <solarlune> diphtherial, Haha, I guess so. Oh, so about your question, I'd take forces or velocity over position setting (in a normal physics engine like Box or Bullet).
[22:15:27] <solarlune> Manually moving objects is equivalent to teleportation, and doesn't allow the physics engine to properly resolve collisions between objects.
[22:16:11] <solarlune> If you're doing things yourself, then it wouldn't really matter as much, though you can use the velocity to influence collision checking (i.e. check where the player is going to be next frame or should a velocity "go through", not where it is now).
[22:17:30] <diphtherial> Scellow: this may help: https://github.com/libgdx/libgdx/wiki/File-handling#reading-from-a-file
[22:17:45] <diphtherial> Scellow: the fact that it's ascii-encoded should not be an obstacle
[22:18:20] <diphtherial> solarlune: yeah, swept collisions would be interesting. i'm writing it all myself, for reference, although i find myself wishing i'd just used box2d and hacked in platformer physics
[22:18:25] <diphtherial> (i may still resort to that)
[22:19:43] <solarlune> diphtherial, I'd understand that; the engine I'm using is using J-Bullet, I think, for physics. It's definitely nice to be able to tweak to get things to your liking over manually handling all physics and collisions.
[22:20:06] *** laubed <laubed!~Thunderbi@p200300566D71070014F28029703B104E.dip0.t-ipconnect.de> has joined #libgdx
[22:20:53] <Scellow> diphtherial: the problem is it's an zlib compressed file format that i need to read and deserialize bits by bits
[22:22:35] <diphtherial> Scellow: that sounds like a binary file, then, not an ascii file
[22:32:30] *** Isogash2 <Isogash2!~Isogash@87.127.112.116> has joined #libgdx
[22:33:43] *** Kuvis <Kuvis!~owner@line-5467.dyn.kponet.fi> has quit IRC (Remote host closed the connection)
[22:35:57] *** Isogash <Isogash!~Isogash@87.127.112.116> has quit IRC (Ping timeout: 260 seconds)
[22:41:30] *** Isogash3 <Isogash3!~Isogash@87.127.112.116> has joined #libgdx
[22:43:53] <diphtherial> so, for collision restitution, i face the same question of whether to force them apart or simply to adjust the position of the overlapping entity until it's no longer overlapping
[22:44:47] <diphtherial> (i believe super mario world uses the 'adjust position until non-colliding' approach, as evidenced by being shifted left and up when fully immersed in colliding tiles)
[22:44:50] *** Isogash2 <Isogash2!~Isogash@87.127.112.116> has quit IRC (Ping timeout: 250 seconds)
[23:01:20] *** isdera <isdera!~isdera@cpe-74-78-187-102.maine.res.rr.com> has joined #libgdx
[23:01:59] *** Oebele <Oebele!~quassel@143.177.58.202> has quit IRC (Read error: Connection reset by peer)
[23:19:35] *** nexsoftware <nexsoftware!~nexsoftwa@2607:fb90:2288:7cff:c0b6:d821:3802:650> has quit IRC (Ping timeout: 256 seconds)
[23:21:51] *** mobidevelop <mobidevelop!~nexsoftwa@2607:fb90:2288:7cff:c0b6:d821:3802:650> has joined #libgdx
[23:21:51] *** ChanServ sets mode: +o mobidevelop
[23:22:54] <Scellow> diphtherial: i believe it's an encoding issue, since things gets fucked when i tried to read a string with readUTF()
[23:26:29] *** Shockah <Shockah!~Shockah@acmb105.neoplus.adsl.tpnet.pl> has quit IRC (Quit: Leaving)
[23:28:44] *** FrottyZad <FrottyZad!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has joined #libgdx
[23:31:14] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has quit IRC (Ping timeout: 244 seconds)
[23:31:24] *** FrottyZ <FrottyZ!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has joined #libgdx
[23:33:49] *** FrottyZad <FrottyZad!~FrottyZao@ip-178-200-234-13.hsi07.unitymediagroup.de> has quit IRC (Ping timeout: 244 seconds)
[23:40:25] *** Freiza <Freiza!~Freiza@117.205.148.190> has quit IRC (Quit: Leaving)
[23:41:45] *** CaptainLex_ <CaptainLex_!~CaptainLe@12.104.244.5> has quit IRC (Ping timeout: 260 seconds)
[23:55:46] *** Betalord <Betalord!bce68946@gateway/web/freenode/ip.188.230.137.70> has quit IRC (Ping timeout: 260 seconds)
[23:57:45] *** Xoppa <Xoppa!~Xoppa@54689556.cm-12-1c.dynamic.ziggo.nl> has quit IRC (Quit: Leaving)
top

   October 19, 2016  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >