Switch to DuckDuckGo Search
   September 4, 2015  
< | 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 | >

Toggle Join/Part | bottom
[00:00:38] *** sreich has quit IRC
[00:00:58] *** cuellarjmcg2 has joined #libgdx
[00:01:04] *** cuellarjmcg has quit IRC
[00:01:42] *** nivrig has quit IRC
[00:02:13] *** ksclarke has quit IRC
[00:04:12] *** domokato has quit IRC
[00:04:58] *** sreich has joined #libgdx
[00:09:54] <jeffol> How are non-consumable IAP handled by Google Play? Do you just not consume them once purchased?
[00:09:55] <jeffol> perma-own
[00:09:55] *** De5car7es has joined #libgdx
[00:09:56] <jeffol> Seems like from their instructions, it's just "up to you". Thanks, that's clear.
[00:09:56] <jeffol> [Whereas Apple, you disclose consume-type or non-consume-type
[00:10:00] <jeffol> I would just consume the item before and add it to their user data in my database but I'm not doing that this time.
[00:10:12] *** Andiows has joined #libgdx
[00:12:03] *** sreich has quit IRC
[00:12:13] *** Keniyal has quit IRC
[00:12:59] *** sreich has joined #libgdx
[00:17:07] *** sreich has quit IRC
[00:18:04] *** sreich has joined #libgdx
[00:19:43] *** ShivanHunter_ has joined #libgdx
[00:22:19] *** sreich has quit IRC
[00:22:46] *** ShivanHunter has quit IRC
[00:23:43] *** ShivanHunter_ is now known as ShivanHunter
[00:25:03] *** Faylite has joined #libgdx
[00:25:33] *** pleitsi has quit IRC
[00:26:42] *** bazola has quit IRC
[00:45:58] *** joelt has joined #libgdx
[00:46:50] *** Mous has quit IRC
[00:49:35] *** Xoppa has quit IRC
[00:50:04] *** joelt has quit IRC
[00:50:54] *** bazola has joined #libgdx
[00:50:56] *** Whiskee has quit IRC
[00:54:48] *** bazola has quit IRC
[00:55:18] *** Oebele has joined #libgdx
[00:58:01] *** Oebele_ has quit IRC
[01:01:06] *** jeffol has quit IRC
[01:03:12] *** midomido has quit IRC
[01:03:28] *** midomido has joined #libgdx
[01:06:03] *** De5car7es has quit IRC
[01:07:49] *** midomido has quit IRC
[01:10:08] *** midomido has joined #libgdx
[01:10:41] *** midomido has joined #libgdx
[01:13:12] *** midomido has quit IRC
[01:13:29] *** midomido has joined #libgdx
[01:15:02] *** harha_ has quit IRC
[01:24:25] *** midomido has quit IRC
[01:24:36] *** guardianL has joined #libgdx
[01:24:37] *** midomido has joined #libgdx
[01:25:07] *** Oebele_ has joined #libgdx
[01:25:55] *** EvilEntity has quit IRC
[01:26:05] *** guardianL has left #libgdx
[01:27:36] *** domokato has joined #libgdx
[01:28:07] *** Oebele has quit IRC
[01:30:34] *** joelt has joined #libgdx
[01:34:42] *** JexSys has joined #libgdx
[01:35:11] *** Faylite has quit IRC
[01:35:20] *** JexSys is now known as Faylite
[01:37:34] *** millerti has quit IRC
[01:39:16] *** joelt has quit IRC
[01:40:28] *** MrH4mst3r has quit IRC
[01:42:54] *** Faylite has quit IRC
[01:45:51] *** Kotcrab has quit IRC
[01:46:58] *** IoriX2k2_ has joined #libgdx
[01:47:14] *** IoriX2k2 has quit IRC
[01:51:02] *** bnvap4 has joined #libgdx
[01:53:50] *** guardianL has joined #libgdx
[01:57:32] *** midomido has quit IRC
[01:57:43] *** aeclean has quit IRC
[02:03:53] *** FrottyZad has joined #libgdx
[02:04:12] *** ajhager has joined #libgdx
[02:05:42] *** FrottyZad has quit IRC
[02:06:34] *** FrottyZ has quit IRC
[02:07:44] *** midomido has joined #libgdx
[02:10:35] *** midomido has quit IRC
[02:10:47] *** midomido has joined #libgdx
[02:12:28] *** maximtwo has joined #libgdx
[02:13:06] *** lukass has quit IRC
[02:13:43] *** midomido has quit IRC
[02:16:24] *** midomido has joined #libgdx
[02:17:18] *** n3o59hf_atlas has quit IRC
[02:17:46] *** Ach1 has left #libgdx
[02:20:37] *** CosmicMenace has joined #libgdx
[02:24:20] *** midomido1 has joined #libgdx
[02:24:20] *** midomido has quit IRC
[02:24:21] *** midomido1 is now known as midomido
[02:24:45] *** lukass has joined #libgdx
[02:28:27] *** midomido has quit IRC
[02:29:52] *** midomido has joined #libgdx
[02:33:25] *** Oebele_ has quit IRC
[02:33:51] *** FrottyZ has joined #libgdx
[02:37:59] *** guardianL has quit IRC
[02:38:13] *** guardianL has joined #libgdx
[02:41:05] *** guardianL has quit IRC
[02:41:56] *** guardianL has joined #libgdx
[02:42:53] *** FrottyZ has quit IRC
[02:44:48] *** lukass has quit IRC
[02:45:54] *** CosmicMenace has quit IRC
[02:50:15] *** hextileX has quit IRC
[02:51:21] *** nine_9 has quit IRC
[02:51:46] <Yomic> Is the hash int sufficient to differentiate between gamepads? Or is there another way to identify them that's better?
[02:53:36] *** Andiows has quit IRC
[02:53:41] *** deniska has quit IRC
[02:55:31] *** domokato has quit IRC
[02:55:46] <cobolfoo> what hash ?
[02:57:20] <Yomic> Controller.hashCode()
[02:58:24] <Yomic> I'm just going to save the first two controllers found in ---> for (Controller controller : Controllers.getControllers()) { } <--- to the two Player objects
[02:58:53] <Yomic> Implementing local co op. Bleh
[02:59:16] <Yomic> Two player only, but keyboard/mouse and two gamepads are the input options
[03:00:33] *** Ange_blond has joined #libgdx
[03:01:05] <cobolfoo> ok
[03:01:33] <cobolfoo> you need to store the hash somewhere? I mean why not detecting this stuff live?
[03:01:34] *** xrash_ has joined #libgdx
[03:01:42] *** xrash has quit IRC
[03:02:05] <Yomic> I've seen nothing in the documentation about connect() and disconnect() working
[03:02:22] <cobolfoo> yeah connect() and disconnect() don't work
[03:02:40] <Yomic> But I was going to use the hash to identify the controllers and map them to the players via a ControllerManager
[03:02:45] <cobolfoo> but when you get a callback function like when a button is pressed
[03:02:51] <cobolfoo> you get the Controller object emitting this event
[03:02:56] <cobolfoo> just store the object
[03:03:01] <Yomic> I am
[03:03:19] <cobolfoo> why you need to do Controller.hashCode() then ?
[03:03:31] <bhldev_2> evening
[03:03:43] <cobolfoo> hi
[03:04:04] <Yomic> I didn't know of another way to identify the controllers. Didn't think to just store the controllers themselves
[03:04:21] <cobolfoo> I guess it's the best approach
[03:04:26] <cobolfoo> because an object is always unique :)
[03:05:05] <Yomic> I was hoping to get input from the controllers and then assign them to each player from a button press in order rather in whatever order libgdx or the computer puts them in
[03:05:51] <Yomic> This will hopefully do for the arcade version at least
[03:06:02] <Yomic> It'll need a better solution for desktop
[03:06:34] <cobolfoo> In one of my game I work like that, the first time I receive a effect (button for example) from a new controller, I associate the controller object to a player.
[03:06:53] <cobolfoo> not effect a event sorry
[03:07:15] *** Bernzel has joined #libgdx
[03:07:19] <Yomic> Open source? Or can you show/explain what you did exactly?
[03:07:20] <cobolfoo> If I don't get new events for a while like 30 secondes I release the player
[03:07:41] <cobolfoo> not opensource, but this is not very hard to do
[03:08:37] <Yomic> Do you loop through the Controllers each render() looking for any button press?
[03:08:44] <cobolfoo> nope
[03:08:56] <cobolfoo> my ApplicationListener/screen implements ControllerListener
[03:09:20] <cobolfoo> my ApplicationListener/screen also contains a HashMap or Array that keep player<->gamepad association
[03:09:37] <cobolfoo> in the render() function I only check for input expiration
[03:11:56] <Yomic> Does this look like normal code for multiplayer stuff? http://pastebin.com/VXCqe7G9
[03:12:33] <Yomic> I'mm 100% self taught on everything so I'd like to avoid bad practices if possible
[03:13:58] <Yomic> That and --> for (Player player : Player.getPlayers()) { player.doThing(); }
[03:15:09] *** bazola has joined #libgdx
[03:17:34] <cobolfoo> why you are using singletons ?
[03:18:43] <Yomic> To use them between Screens
[03:18:47] <Yomic> TitleScreen and GameScreen
[03:19:46] <Yomic> Especially arcade version needs this so when a person puts in credits, the player becomes active regardless of what screen it's on
[03:20:30] <cobolfoo> ok then I guess it's ok
[03:21:03] <Yomic> Yeah, if there was a better solution I'd do it. Before I started adding co-op Player was local only to GameScreen
[03:21:37] <Yomic> As it was irrelevant to TitleScreen whether a player was active or not
[03:22:06] *** bazola has quit IRC
[03:22:27] <Yomic> http://yomic.itch.io/when-it-hits-the-fan -- single player alpha if you care to see the state it was in before I started adding co-op
[03:33:16] *** guardianL has left #libgdx
[03:33:47] *** midomido has quit IRC
[03:34:01] *** midomido has joined #libgdx
[03:34:06] *** rgr has quit IRC
[03:37:29] *** midomido1 has joined #libgdx
[03:38:12] *** midomido has quit IRC
[03:38:12] *** midomido1 is now known as midomido
[03:41:43] *** joelt has joined #libgdx
[03:43:29] *** joelt has joined #libgdx
[03:47:46] *** joelt has quit IRC
[03:52:58] *** CosmicMenace has joined #libgdx
[04:00:30] *** gilch has quit IRC
[04:02:37] <bhldev_2> hi guys
[04:03:52] *** midomido has quit IRC
[04:03:53] *** Qowface has joined #libgdx
[04:03:59] *** CosmicMenace has quit IRC
[04:06:33] *** midomido has joined #libgdx
[04:13:30] *** Bernzel has quit IRC
[04:34:50] *** bazola has joined #libgdx
[04:36:42] *** bazola has quit IRC
[04:44:13] *** domokato has joined #libgdx
[04:48:48] *** domokato has quit IRC
[04:53:50] *** hydra__ has quit IRC
[04:53:57] *** hydra__ has joined #libgdx
[04:54:08] *** EvilEntity has joined #libgdx
[05:03:46] *** aspire has joined #libgdx
[05:15:15] <cobolfoo> this is normal that html:compileGwt take a while to compile ?
[05:15:21] *** guardianL has joined #libgdx
[05:17:53] <mobidevelop> Yes
[05:18:03] <cobolfoo> look like gwt don't like Pool serialization hack
[05:20:16] *** aspire has quit IRC
[05:20:18] <cobolfoo> private final Pool<OrderedObject> poolOrder = Pools.get(OrderedObject.class);
[05:20:19] *** aspire has joined #libgdx
[05:20:19] *** Qowface has quit IRC
[05:20:21] *** aspire has quit IRC
[05:20:21] *** aspire has joined #libgdx
[05:20:25] <cobolfoo> like this
[05:24:14] <cobolfoo> I had to use implements Poolable manually to get around using ReflectionPool class
[05:24:53] <mobidevelop> That uses reflection
[05:25:14] <mobidevelop> You'd need to add the OrderedObject class to the reflection cache
[05:25:58] <cobolfoo> how I could do that?
[05:27:31] *** mtsr has quit IRC
[05:28:36] <mobidevelop> https://github.com/libgdx/libgdx/wiki/Reflection
[05:28:51] <cobolfoo> ok
[05:28:52] <cobolfoo> it worked
[05:37:17] *** mtsr has joined #libgdx
[05:44:59] *** domokato has joined #libgdx
[05:45:18] *** glordag has joined #libgdx
[05:49:10] *** domokato has quit IRC
[05:52:15] *** d4rkforc1 has joined #libgdx
[05:55:31] *** d4rkforce has quit IRC
[06:00:08] *** Andiows has joined #libgdx
[06:02:07] *** gilch has joined #libgdx
[06:03:51] <cobolfoo> thre is a way to hide the debug console in gwt app ?
[06:24:00] *** Sadale has joined #libgdx
[06:25:27] *** jwinterm has quit IRC
[06:30:09] <mobidevelop> cobolfoo: set the log level to none
[06:31:23] *** gilch has quit IRC
[06:32:35] *** gilch has joined #libgdx
[06:35:20] *** guardianL has quit IRC
[06:35:56] <cobolfoo> rebuilding :)
[06:41:55] <cobolfoo> Uncaught TypeError: Cannot set property 'n' of undefined
[06:42:03] <cobolfoo> I know get this when I try to load the game in chrome
[06:45:11] *** glordag has quit IRC
[07:03:51] *** IoriX2k2_ has quit IRC
[07:06:02] *** Fastinyoh has joined #libgdx
[07:26:14] *** Fastinyoh has quit IRC
[07:26:55] *** Fastinyoh has joined #libgdx
[07:29:20] *** Symatix has joined #libgdx
[07:33:45] *** domokato has joined #libgdx
[07:35:33] *** Fastinyoh has quit IRC
[07:38:30] *** domokato has quit IRC
[07:38:46] *** domokato has joined #libgdx
[07:41:57] *** midomido has quit IRC
[07:42:13] *** midomido has joined #libgdx
[07:43:07] *** Fastinyoh has joined #libgdx
[07:43:16] *** Fastinyoh has quit IRC
[07:44:59] *** Fastinyoh has joined #libgdx
[07:49:00] *** domokato has quit IRC
[07:49:04] *** hydra__ has quit IRC
[07:49:12] *** hydra__ has joined #libgdx
[08:06:43] *** Fastinyoh has quit IRC
[08:12:52] *** aspire has quit IRC
[08:14:15] *** darkamikaze has joined #libgdx
[08:21:09] *** ravenlord has joined #libgdx
[08:21:15] <ravenlord> mobidevelop: here?
[08:24:26] <TEttinger> hey lord of the rave
[08:24:44] <ravenlord> hey TEttinger
[08:25:15] <TEttinger> did you get your game working on now-very-old phones? :)
[08:25:19] <TEttinger> just curious
[08:25:42] <ravenlord> mostly yes
[08:25:50] <TEttinger> I can't remember if we found a solution for my phone, though obviously I'm using a different one now heh
[08:25:58] <ravenlord> yea i did
[08:26:09] <ravenlord> it was because of texture memory
[08:26:14] <ravenlord> I was caching too many of them
[08:26:30] <TEttinger> I think that object in my hand specifically is having battery issues still and won't hold a charge for a day
[08:26:41] <ravenlord> :D
[08:26:47] <TEttinger> the S5 is great though.
[08:26:55] <ravenlord> i can imagine
[08:27:01] <ravenlord> I have a note 4
[08:27:10] <ravenlord> the fingerprint scanner is a bit wonky
[08:27:20] <TEttinger> I love the port at the bottom, the "haha you suck Apple chargers" port
[08:27:20] <ravenlord> but overall it's the last good device released by samsung
[08:28:02] <ravenlord> s6, note 5 suck: no removable battery, no microsd, not IR blaster.
[08:28:12] <TEttinger> aww wow
[08:28:28] <ravenlord> glass back??
[08:28:42] <ravenlord> it's not enough that your screen shatters now the back can too
[08:28:48] <TEttinger> "oh you need to buy a new charger for every port every 2 iPhone versions? this one you can use either standard charger or both!"
[08:28:49] <ravenlord> yay for korean engineering
[08:29:01] <TEttinger> that was imitating apple to be fair
[08:29:27] <ravenlord> i'd rather they'd do their on thing
[08:30:48] <ravenlord> now I paused dev on the game, while running automated tests for some AI enhancements and want to add some features to libgdx
[08:30:55] <ravenlord> Tomski: here?
[08:33:06] <TEttinger> man, speaking of engineering of foreign countries, can you even buy a phone with these specs in the US? http://www.aliexpress.com/item/Prosale-DOOGEE-F3-Pro-4G-5-0Inch-FHD-Android-5-1-3GB-16GB-Smartphone-MTK6753-64bit/32424153156.html?spm=2114.01010108.3.11.olt2Qi&ws_ab_test=201407_1,201444_6,201409_1
[08:33:19] <TEttinger> DOOGEE
[08:34:05] <ravenlord> I have no idea how us import laws are
[08:34:26] <ravenlord> but I've ordered stuff from alibaba and aliexpress in Romania
[08:34:58] <ravenlord> it takes about 2 months for stuff to arrive though
[08:35:54] <TEttinger> yeah I live close to one of the largest ports in the world, so for me it's just boat time + chinese customs officials bribery time
[08:36:32] <TEttinger> at least I assume there's heavy bribery at any Chinese port going to Singapore to go to US
[08:37:37] <ravenlord> :))
[08:39:43] *** Fastinyoh has joined #libgdx
[08:42:16] *** Kotcrab has joined #libgdx
[08:42:38] *** phy_game_lover has joined #libgdx
[08:44:38] *** De5car7es has joined #libgdx
[08:48:05] *** CosmicMenace has joined #libgdx
[08:49:45] *** domokato has joined #libgdx
[08:54:44] *** Keniyal has joined #libgdx
[08:55:06] *** domokato has quit IRC
[08:55:48] *** Chilley has joined #libgdx
[08:56:30] *** domokato has joined #libgdx
[09:01:23] *** domokato has quit IRC
[09:02:12] *** Ashiren has quit IRC
[09:02:19] *** badlogic has joined #libgdx
[09:02:35] *** sacrelege has joined #libgdx
[09:03:07] *** Chilley has quit IRC
[09:03:50] *** EvilEnti_ has joined #libgdx
[09:03:52] *** Chilley has joined #libgdx
[09:04:19] *** CosmicMenace has quit IRC
[09:06:42] *** CosmicMenace has joined #libgdx
[09:09:25] <phy_game_lover> hey guys. I am trying to create a rotatable object like in the game Circle Pong. I want to use Box2D for the physics.
[09:10:10] <phy_game_lover> how could I implement it as a Box2D object
[09:10:41] <phy_game_lover> I can think of making it a polygon body that is attached to a central static body by a distance joint
[09:10:57] <phy_game_lover> but I don't really want the central static body to come in the way of the ball
[09:11:36] *** CosmicMenace has quit IRC
[09:12:02] <phy_game_lover> here is a video: https://www.youtube.com/watch?v=9sitwBolywY
[09:12:36] <phy_game_lover> how do I get the pong bat to move in a circular constrained fashion?
[09:13:08] <phy_game_lover> I might even want two of them at opposite sides as part of the same circular orbit.
[09:15:44] *** darkamikaze has quit IRC
[09:17:30] *** midomido has quit IRC
[09:20:50] *** midomido has joined #libgdx
[09:30:18] *** tny_ has joined #libgdx
[09:31:38] *** Biliogadafr has joined #libgdx
[09:37:05] *** EvilEnti_ has quit IRC
[09:38:04] *** domokato has joined #libgdx
[09:39:47] *** EvilEnti_ has joined #libgdx
[09:41:17] *** davebaol has joined #libgdx
[09:45:43] *** xrash_ has quit IRC
[09:46:43] *** Gliese has joined #libgdx
[09:47:27] *** guardianL has joined #libgdx
[09:48:07] <TEttinger> phy_game_lover: you don't really need box2d for this
[09:48:34] <TEttinger> you could do it with some extremely basic trig, even.
[09:51:03] *** nooone has joined #libgdx
[09:51:13] *** davebaol has quit IRC
[09:52:18] *** EvilEnti_ has quit IRC
[09:52:34] *** EvilEnti_ has joined #libgdx
[09:54:17] *** EvilEnti_ has quit IRC
[09:54:42] *** EvilEnti_ has joined #libgdx
[10:03:07] *** tny_ has quit IRC
[10:03:53] *** davebaol has joined #libgdx
[10:04:50] *** midomido has quit IRC
[10:05:07] *** midomido has joined #libgdx
[10:05:48] *** tny_ has joined #libgdx
[10:08:01] *** Gibson has joined #libgdx
[10:10:41] *** cackling_maidens has quit IRC
[10:12:17] *** EvilEnti_ has quit IRC
[10:13:29] *** midomido has quit IRC
[10:13:45] *** midomido has joined #libgdx
[10:15:02] *** domokato has quit IRC
[10:16:01] *** cackling_ladies has joined #libgdx
[10:16:56] *** cackling_grandma has joined #libgdx
[10:20:28] *** cackling_ladies has quit IRC
[10:25:21] *** tny_ has quit IRC
[10:28:02] *** n3o59hf_atlas has joined #libgdx
[10:31:24] *** midomido has quit IRC
[10:31:30] *** midomido has joined #libgdx
[10:32:50] *** FrottyZ has joined #libgdx
[10:34:50] *** Andiows has quit IRC
[10:39:37] *** midomido has quit IRC
[10:39:46] *** midomido has joined #libgdx
[10:40:03] *** Fastinyoh has quit IRC
[10:51:15] *** Oebele has joined #libgdx
[10:52:42] *** Sadale has quit IRC
[10:53:51] *** tny_ has joined #libgdx
[10:53:51] *** guardianL has quit IRC
[10:54:02] *** EvilEntity has quit IRC
[10:56:08] *** De5car7es has quit IRC
[10:57:58] *** EvilEntity has joined #libgdx
[10:58:31] *** d4rkforc1 is now known as d4rkforce
[11:00:35] <phy_game_lover> TEttinger: I doubt it will be extremely basic.
[11:00:46] <phy_game_lover> it's pretty realisitic
[11:01:19] <phy_game_lover> If I could create such a system and apply an torque that would perfectly and realistically
[11:03:15] *** EvilEntity has quit IRC
[11:04:27] <TEttinger> there's nothing real to simulate there...
[11:04:59] *** cuellarjmcg2 has quit IRC
[11:08:43] *** FrottyZ has quit IRC
[11:09:12] *** Biliogadafr1 has joined #libgdx
[11:09:13] *** midomido has quit IRC
[11:09:16] *** midomido1 has joined #libgdx
[11:10:03] *** EvilEntity has joined #libgdx
[11:10:07] *** Biliogadafr has quit IRC
[11:12:08] <phy_game_lover> TEttinger: the ball colliding with the bat?
[11:12:23] <phy_game_lover> that is realistic right?
[11:12:45] <TEttinger> ok there's a lot of stuff wrong here but
[11:12:54] <TEttinger> perpetual motion machines don't exist
[11:13:02] <TEttinger> the ball keeps bouncing infinitely
[11:13:34] <TEttinger> it doesn't come back with less speed as a realistic bounce against an immobile object would
[11:13:36] *** midomido1 has quit IRC
[11:13:48] *** midomido has joined #libgdx
[11:14:33] <TEttinger> games are not real life, code does not obey real life physics
[11:15:45] *** domokato has joined #libgdx
[11:18:11] *** Biliogadafr1 has quit IRC
[11:18:17] *** rgr has joined #libgdx
[11:18:41] *** EvilEntity has quit IRC
[11:19:37] *** Biliogadafr has joined #libgdx
[11:20:24] *** domokato has quit IRC
[11:22:47] *** ex00 has joined #libgdx
[11:23:50] *** cuellarjmcg has joined #libgdx
[11:25:31] *** midomido1 has joined #libgdx
[11:25:53] *** midomido has quit IRC
[11:25:54] *** midomido1 is now known as midomido
[11:29:47] *** deniska has joined #libgdx
[11:40:24] *** SonikBoom has joined #libgdx
[11:40:55] *** Larry1123 has quit IRC
[11:46:32] *** tny_ has quit IRC
[11:46:44] *** tny_ has joined #libgdx
[11:49:49] *** Larry1123 has joined #libgdx
[11:54:32] *** bnvap4 has quit IRC
[11:57:30] *** dajos7 has joined #libgdx
[11:57:40] *** dajos7 has left #libgdx
[11:58:03] *** midomido has quit IRC
[11:58:21] *** midomido has joined #libgdx
[12:03:09] *** midomido has quit IRC
[12:03:24] *** midomido has joined #libgdx
[12:03:44] *** Gliese has quit IRC
[12:05:23] *** midomido has quit IRC
[12:05:26] *** midomido1 has joined #libgdx
[12:07:50] *** midomido1 is now known as midomido
[12:07:54] *** Biliogadafr has quit IRC
[12:08:53] *** Biliogadafr has joined #libgdx
[12:13:23] *** ex00 has left #libgdx
[12:13:39] *** Biliogadafr has quit IRC
[12:14:16] *** Biliogadafr has joined #libgdx
[12:18:52] *** EvilEntity has joined #libgdx
[12:20:45] <rgr> the positions in a shader used by a libgdx sprite batch are normalised to 0-1 or -1 to 1? Stupid Q I'm sure but I'm reading different tutorials and they seem to clash. or even -0.5 to 0.4 ...
[12:20:49] <rgr> 0.5
[12:26:28] *** domokato has joined #libgdx
[12:28:07] <Tomski> rgr, what position?
[12:28:17] <Tomski> x,y?
[12:29:12] *** guardiandroid has quit IRC
[12:31:26] *** domokato has quit IRC
[12:34:11] <ravenlord> mobidevelop: I've listened to your advice and made APK expansion handling completely transparent for the user
[12:34:41] <Tomski> ravenlord, why you no use formatter again!
[12:35:03] <nooone> ravenlord: so a user won't be able to see it anymore?
[12:35:03] <ravenlord> huh :)
[12:35:07] <ravenlord> nope
[12:35:22] <nooone> but, it's completely transparent
[12:35:24] <ravenlord> Tomski: i forgot
[12:38:59] <ravenlord> basically a setAPKExpansion(mainVersion, patchVersion) has to be called
[12:39:17] <ravenlord> afterwards Gdx.files.internal() picks it up automatically if it's the case
[12:39:29] <ravenlord> it's pretty cool actually (I think)
[12:40:18] <nooone> I'd have expected to use "external" in that case
[12:40:35] <Tomski> It makes sense for it to be internal/classpath
[12:40:40] <ravenlord> well, thought about it, but it was actually mobidevelop's idea
[12:40:44] <nooone> but well, I guess it works more like internal, probably not writable
[12:40:45] <ravenlord> to make it internal
[12:40:53] <ravenlord> it's not writable
[12:41:09] <ravenlord> and it can be used without rewriting anything
[12:41:10] <ravenlord> in the app
[12:41:12] <Tomski> ravenlord, could you use more sensible variable names in AndroidFiles ?
[12:41:47] <ravenlord> Tomski: you mean the stack variables? fh and zfh?
[12:42:03] <Tomski> We should probably rewrite the AndroidAudio stuff as well, its not very nice
[12:42:29] <Tomski> yes
[12:43:18] <Tomski> And try to avoid commenting inline rather than writing javadocs
[12:43:31] *** petrucci has joined #libgdx
[12:43:49] <ravenlord> well, the AndroidAudio is tricky to rewrite, because of the original AssetFileDescriptor descriptor = aHandle.assets.openFd(aHandle.path());
[12:43:54] <Tomski> Right
[12:44:01] <Tomski> But we can probably just redo it completely
[12:44:06] <Tomski> Rather than try to hack this in
[12:45:05] <ravenlord> I could rewrite androidFileHandle I guess
[12:45:23] *** Ask45t has joined #libgdx
[12:45:43] <ravenlord> I'd make assets private
[12:45:46] <ravenlord> if nobody minds
[12:45:48] <ravenlord> :P
[12:45:51] *** Kotcrab has quit IRC
[12:46:42] *** ZenSword has joined #libgdx
[12:47:33] <Tomski> ravenlord, probably just a method for returning the correct AssetFileDescripter
[12:47:39] <ravenlord> yes
[12:47:43] <Tomski> Then AndroidAudio can be left as it is
[12:47:54] <ravenlord> but then I see no reason why asset shouldn't be private
[12:48:16] <Tomski> Would have to check its usages before breaking it for people
[12:48:34] *** petrucci has left #libgdx
[12:49:12] <Tomski> ravenlord, well its being accessed outside of the package directly
[12:49:48] <ravenlord> how? it's not public
[12:50:13] <ravenlord> default means it can be accessed only inside the package
[12:50:50] <Tomski> Yes, not outside package sorry
[12:51:15] <Tomski> Just looks like its AndroidAudio yeah
[12:51:19] <Tomski> private away
[12:52:19] <Ask45t> Hi, Tomski. I'm wondering why does BufferUtils JNI wrapper performs .limit() call in one of copy methods? What is the purpose?
[12:52:27] *** petrucci has joined #libgdx
[12:53:06] <ravenlord> ok, done
[12:53:08] <ravenlord> let's test
[12:54:02] *** nivrig has joined #libgdx
[12:54:17] <ravenlord> ok looks like I haven't fucked up anything
[12:54:24] *** Bernzel has joined #libgdx
[12:55:00] *** midomido1 has joined #libgdx
[12:55:18] *** midomido has quit IRC
[12:55:18] *** midomido1 is now known as midomido
[12:55:46] *** Andiows has joined #libgdx
[12:58:11] *** sreich has joined #libgdx
[12:59:01] <ravenlord> Tomski: better? :D
[13:02:28] <rgr> all coordinates. yes, x,y I guess. Im all over the place at the moment with conflicting tutorials :) but the application of u_projTrans projects back to real screen coordinates.
[13:03:02] <Tomski> rgr, well it depends what part of the pipeline you are talking about
[13:03:14] <rgr> Particularly the "note on optimization" here : https://github.com/mattdesl/lwjgl-basics/wiki/ShaderLesson3
[13:03:19] <Tomski> As they get converted into different 'spaces' at different points
[13:03:22] <Tomski> ravenlord, woo
[13:03:43] <Tomski> ravenlord, probably should do something with that exception in AndroidZipFileHandle?
[13:03:46] <rgr> here it talks abuot texture coords. So in the fragment shader the texture is how big?
[13:04:17] <ravenlord> Tomski: which one :D
[13:04:19] <rgr> Im unsure whether I need to be setting a uniform for resolution.
[13:04:48] *** Ask45t has quit IRC
[13:05:10] <Tomski> Ask45t, to set the limit safetly so you dont run into memory that isnt yours at a guess
[13:05:43] <ravenlord> Tomski: the read exception? Yea I probably should throw a runtimeException for that
[13:07:08] <Tomski> rgr, no you dont. TextureCoordinates are normalized from 0-1
[13:07:55] <Tomski> I think you can do texel coordinates with some configuration too
[13:09:30] *** lukass has joined #libgdx
[13:19:27] *** makoLine has quit IRC
[13:20:22] *** Oebele has quit IRC
[13:24:07] * ravenlord can't wait for the APK stuff to land, then I can throw out all of my ugly hacks from my code
[13:28:17] *** guardiandroid has joined #libgdx
[13:30:10] *** aeclean has joined #libgdx
[13:38:22] *** petrucci has quit IRC
[13:39:47] *** aeclean has quit IRC
[13:42:50] <rgr> texture is one thing what about the "destination" coords? a_position? The standard vertex shader applies u_projTrans. is that position 0-1 too? And should the transform really be applied there or can one also do it in the fragment shader or can only the vertex shader alter a coordinate?
[13:43:15] <rgr> too many Qs probably. sorry.
[13:45:04] *** ksclarke has joined #libgdx
[13:48:46] <Tomski> rgr, you are setting u_projTrans (usually) with batch.setProjectionMatrix()
[13:49:27] <rgr> k.
[13:49:39] <rgr> just looking at Batch now.
[13:49:59] <Tomski> u_projTrans * a_position will result in the vertex being transformed into the correct space for gl_Position
[13:50:11] <rgr> but is a_position "normalised" (is that even the right word) in the vertex shader?
[13:50:34] <Tomski> Which is -1 to 1
[13:50:39] <Tomski> with 0,0 being in the middle
[13:50:44] <Tomski> a_position is not
[13:50:48] <rgr> ok. thanks.
[13:50:49] <Tomski> That is the raw vertex position in your world
[13:50:51] <rgr> oh
[13:51:01] <Tomski> Its a vertex attribute
[13:51:05] <Tomski> So its what you set in the float[]
[13:51:58] <rgr> so gl_position is -1 to 1? Just to be sure I'm following. but a_position is in my "world coords" ie how the vertex is set.
[13:53:08] <Tomski> Yes
[13:53:27] <rgr> and if so where is the transformation done to convert gl_position back to screen coords?
[13:55:40] <Tomski> rgr, gl_Position is in screen coords
[13:56:01] <Tomski> Its just that the screen coords are normalized from -1 to 1
[13:56:29] <Tomski> Or better, window coords
[13:58:53] <rgr> ugh. ok...
[13:58:57] <rgr> ;)
[14:01:08] <rgr> so in the first fragment shader here https://github.com/mattdesl/lwjgl-basics/wiki/ShaderLesson3 I should be able to dispose of the resolution stuff with some jiggling? since gl_fragcoord should be normalised?
[14:03:18] <Tomski> rgr, well you don't have access to gl_Position in the fragment shader
[14:04:18] *** phy_game_lover has quit IRC
[14:04:39] <rgr> but gl_fragcoord is in what? (sorry! I am getting there!)
[14:05:00] <Tomski> gl_FragCoord is a built in variable that is available at fragment shader
[14:05:14] <rgr> and its in what coord range?
[14:05:22] <Tomski> Winddow coordinates, not normalized
[14:05:38] *** nivrig has quit IRC
[14:05:54] <rgr> so one does need resolution to move it to % positions of the screen?
[14:06:11] *** EvilEnti_ has joined #libgdx
[14:06:52] <rgr> or is there a normalised variable somewhere too? (that sepia shader on the link above shows its being used)
[14:07:22] <Tomski> rgr, usually yes. What does the sepia shader do?
[14:09:22] <rgr> make the colour sepia but the position part is for a vignette. but back to gl_fragcoord thats in "pixel" position? Why not also nomralised?
[14:12:14] <Tomski> Not sure, probably because its more useful with sampling shit as you can chek the location of the pixels
[14:12:34] <Tomski> Its not in pixel position, but location of the fragment
[14:12:39] <Tomski> Which can be anywhere within a pixel
[14:13:08] <Tomski> The pixel center is 0.5, 0.5 by default iirc
[14:13:32] *** Andiows has quit IRC
[14:15:13] *** domokato has joined #libgdx
[14:15:14] *** EvilEnti_ has quit IRC
[14:17:42] *** EvilEnti_ has joined #libgdx
[14:19:54] *** domokato has quit IRC
[14:21:02] *** NooBxGockeL|OFF is now known as NooBxGockeL
[14:22:21] <rgr> location of the fragment can be anywhere within a pixel? in that example the fragcoord is in screen units (pixels). vec2 position = (gl_FragCoord.xy / resolution.xy) - vec2(0.5);
[14:23:52] *** ex00 has joined #libgdx
[14:26:35] *** tny_ has quit IRC
[14:26:46] <rgr> yeah gl_fragcoord is in screen coords.
[14:27:05] <rgr> ok got it. thanks.
[14:27:37] *** tny_ has joined #libgdx
[14:28:59] *** ariejan has joined #libgdx
[14:30:30] *** FrottyZ has joined #libgdx
[14:31:21] <ariejan> I have a texture (player) rendered at 0,0. I want to face the location of the mouse cursor. How can I do that? I grab the mouse X/Y coordinates correctly, I render with 'rotation', but I have no clue how to calculate the angle correctly. Vector.scale always gives 0 or -180. :-(
[14:33:13] <rgr> so coming back to my original Q about current screen w/h : do I need to pass that in to the shader (as is done in the example above) via a uniform or does libgdx already make that accessible somehow as part of the API resize() type processing?
[14:33:51] <rgr> ariejan: not sure but did you look at project/unproject - might be applicable here.
[14:35:06] <ariejan> rgr: yes, I unproject the raw mouse input.
[14:36:13] <ariejan> rgp: there's a difference between Vector2.angle() and Vector2.angle(Vector2 ref) apparently.
[14:36:31] <Tomski> rgr, yes you do
[14:37:21] <rgr> thanks.
[14:46:49] <Bernzel> How do you skip to a new row when drawing text using Bitmapfont? /n or something?
[14:51:57] <rgr> oh thats good. I dont need to define a uniform in the fragment shader in order to be able to call setUniform meaning I can generically set the resolution despite the "current shader" not declaring it or using it.
[14:58:03] <rgr> Tomski: can I chain fragment shaders with SpriteBatch? eg apply sepia then a vignette?
[14:58:28] <Tomski> Just make your own shader that does both
[14:59:01] <rgr> well, yes, with 4 or 5 configurable fx that would soon get messy.
[15:00:20] <Tomski> Then you'll have to deal with the shader swaps and other gl calls
[15:02:09] *** tny__ has joined #libgdx
[15:04:50] *** tny_ has quit IRC
[15:05:57] *** phy_game_lover has joined #libgdx
[15:07:28] *** tny__ has quit IRC
[15:08:48] *** phy_game_lover has quit IRC
[15:18:09] *** ex00 has quit IRC
[15:21:49] *** ravenlord has quit IRC
[15:27:39] *** EvilEnti_ has quit IRC
[15:34:01] *** deniska has quit IRC
[15:36:00] *** ravenlord has joined #libgdx
[15:38:54] *** guardianL has joined #libgdx
[15:40:53] *** realitix has joined #libgdx
[15:40:54] *** EvilEntity has quit IRC
[15:41:06] *** Oebele has joined #libgdx
[15:41:14] *** realitix has quit IRC
[15:43:13] *** Swiftwork has joined #libgdx
[15:45:32] <ariejan> bah. still stuck with this angle thing. Does anyone have some snippets on the interwebs for me to look at?
[15:46:21] *** EvilEntity has joined #libgdx
[15:46:32] *** Anteka has quit IRC
[15:47:01] <Tomski> ariejan, you want your player to face your mouse?
[15:47:09] <Tomski> What steps are you trying atm
[15:48:02] *** Anteka has joined #libgdx
[15:48:06] <ariejan> @Tomski: yes. Grab gdx.input.getX/Y, unproject, creates Vector2 target. Then: target.angle() works find when player is at 0,0. target.angle(new Vector2(0,0)) does _not_ work.
[15:48:39] <ariejan> @Tomski: so, while target.angle() works when at 0,0, it starts drifting when moving on the Y axis.
[15:50:36] <Tomski> ariejan, you need to find the vector between the touch coordinate and the player
[15:50:43] <Tomski> and run angle on that resulting vector
[15:51:06] <ariejan> @Tomski: *sigh* I'm stoopid.. should have thought of that.
[15:51:14] <ariejan> I was confused by what Vector2.angle does.
[15:51:34] *** EvilEntity has quit IRC
[15:53:06] <ariejan> @Tomski: cool, now it works beautifully!
[16:00:55] *** Swiftwork has quit IRC
[16:02:11] *** Swiftwork has joined #libgdx
[16:04:00] *** domokato has joined #libgdx
[16:05:07] *** EvilEntity has joined #libgdx
[16:08:45] *** domokato has quit IRC
[16:09:13] *** phy_game_lover has joined #libgdx
[16:10:36] <phy_game_lover> TEttinger: hey. you can set create a zero gravity world in Box2d
[16:10:55] *** badlogic1 has joined #libgdx
[16:10:58] <phy_game_lover> something like Line Zen
[16:11:26] <phy_game_lover> by realistic I meant obeying Newtonian laws
[16:11:39] *** darkamikaze has joined #libgdx
[16:11:43] *** joelt has joined #libgdx
[16:11:49] <phy_game_lover> I bet if you set 0 damping in Box2d it will be perpetual motion machine
[16:12:18] <phy_game_lover> are you saying Circle Pong is not doable in Box2d or it is not worth it?
[16:12:21] <phy_game_lover> :)
[16:12:28] *** badlogic has quit IRC
[16:12:42] <joelt> I'm pretty darn sure I had checked the IOS box when generating my project, now that I've added code, I realize I don't have the ios/ folder. How do I add in IOS support "after the fact"?
[16:14:42] *** Sadale has joined #libgdx
[16:15:05] <d4rkforce> phy_game_lover: I think he meant it is not worth it. Somehting liek circle pong can be implemented easily without using box2d or something similar
[16:16:09] *** sacrelege has quit IRC
[16:20:18] *** nine_9 has joined #libgdx
[16:23:52] <Tomski> joelt, you can generate a new project and have a look at the differences
[16:24:05] <Tomski> joelt, if you are gradle savvy you can do it yourself fairly easily
[16:24:17] <Tomski> Or generate a new project with the same settings and copy over your source
[16:24:54] <joelt> Tomski: yeah, i was planning to do the diff if i had too, didn't know if it would be a lot, or i thought there might be some simple gradle incantation, but no, i'm not gradle savvy.
[16:25:34] <joelt> i think the GUI generator is broken though? not sure why it didn't generate it at the git go.
[16:25:47] <Tomski> joelt, dont think so
[16:26:14] <joelt> thx.
[16:26:23] <Tomski> Its just a case of adapating the script slightly and copying across the template files
[16:26:47] <Tomski> Easiest way would to be generate a new project with the same settings, and just copy over the ios folder, and adapt the settings.gradle and root build.gradle
[16:27:24] <joelt> Tomski: thanks, that's a big help, just didn't know what to look for outside the ios/ folder.
[16:29:36] *** jwinterm has joined #libgdx
[16:35:10] *** Swiftwork has quit IRC
[16:38:24] *** Kotcrab has joined #libgdx
[16:41:53] *** hextileX has joined #libgdx
[16:45:13] *** m3t4lukas_ has joined #libgdx
[16:45:40] *** m3t4lukas_ is now known as m3t4lukas
[16:47:07] *** Symatix_ has joined #libgdx
[16:48:14] *** lukass has quit IRC
[16:49:06] *** jeffol has joined #libgdx
[16:54:49] *** nooone has quit IRC
[17:00:24] *** Rywat has joined #libgdx
[17:01:04] <Rywat> Hello. Im lookin for the full command to generate an IPA file from my ios project. And I remember you must specify if you want 64 bit version or something? Not sure.
[17:02:25] *** Symatix_ has quit IRC
[17:03:53] <Rywat> @Tomski many thanks! cheers
[17:04:18] *** Oebele_ has joined #libgdx
[17:04:43] *** Oebele has quit IRC
[17:06:16] <jeffol> my application is completely unresponsive today! \o/
[17:06:28] *** Gibson has quit IRC
[17:06:31] *** ariejan has quit IRC
[17:06:33] * jeffol comments out the apparently broken android business code
[17:08:52] *** Ashiren has joined #libgdx
[17:14:33] *** cuellarjmcg has quit IRC
[17:15:10] *** walrus_ has joined #libgdx
[17:20:01] <walrus_> hi,
[17:20:24] <jeffol> greets
[17:23:06] *** Ange_blond has quit IRC
[17:23:10] *** tnelsond has joined #libgdx
[17:24:04] <walrus_> i have this for loop, that will generate this for me. http://www.pasteall.org/pic/92702
[17:24:21] <walrus_> now I want to add noise to this. And I can't think of a proper way.
[17:25:10] *** lukass has joined #libgdx
[17:25:45] <tnelsond> You mean like random colors?
[17:25:53] *** cuellarjmcg has joined #libgdx
[17:27:02] <walrus_> no. the greens are one type, the blue are one type, i want to make it a bit uneven preferably on the borders of the green, make it more round
[17:27:21] <walrus_> it is supposed to be round. i am making something wrong. terribly
[17:27:32] <rgr> whats supposed to be round?
[17:27:45] <walrus_> the green part
[17:27:56] <rgr> thats one way of putting it.
[17:28:26] <rgr> but since you dont show any code on how you created it I guess no one will be able to help since that is quite clearly not in any way circular... :)
[17:30:24] <walrus_> i split too much classes. there are like 5 of them. but this is the for loop
[17:30:24] <walrus_> http://pastebin.com/h1b7HuWw
[17:31:21] <walrus_> i thought i was following this https://en.wikipedia.org/wiki/Midpoint_circle_algorithm
[17:31:22] <tnelsond> walrus_: shouldn't you be using math.sin for the y value?
[17:31:47] <walrus_> ah, yes
[17:32:20] <walrus_> it's still rectangular.
[17:32:27] *** davebaol has quit IRC
[17:32:34] <ravenlord> have a nice weekend...
[17:32:52] *** ravenlord has quit IRC
[17:37:36] *** midomido has quit IRC
[17:39:47] <tnelsond> It looks like your y-value hardly every changes, only your x-value does. So to get a circle you'd have to have your math.sin and math.cos be both dependent on values that both move.
[17:40:09] *** lukass has quit IRC
[17:40:31] <tnelsond> Actually I'm not even sure what the temp value is...
[17:41:09] *** midomido has joined #libgdx
[17:41:53] *** m3t4lukas has quit IRC
[17:43:59] <rgr> best way to to check a vec3 for non zero values in a shader? shortcut like "u_v3 > 0.0" should work?
[17:45:56] <rgr> walrus : just use sin and cos.
[17:46:19] <rgr> or maybe not!
[17:48:26] <walrus_> i think it's the getHeight
[17:48:38] <walrus_> dividing the Math.PI value.
[17:49:08] <walrus_> usually math.PI would be divided with 1-360? now it's just one value.
[17:49:24] *** Bernzel has quit IRC
[17:50:05] *** Xoppa has joined #libgdx
[17:50:05] *** ChanServ sets mode: +o Xoppa
[17:50:20] *** guardianL has quit IRC
[17:50:35] *** guardianL has joined #libgdx
[17:52:45] *** domokato has joined #libgdx
[17:52:49] *** lukass has joined #libgdx
[17:57:47] *** domokato has quit IRC
[17:58:45] *** EvilEntity has quit IRC
[18:02:16] *** joelt has quit IRC
[18:09:21] *** joelt has joined #libgdx
[18:10:19] *** ex00 has joined #libgdx
[18:11:26] *** davebaol has joined #libgdx
[18:14:13] *** yrk has joined #libgdx
[18:14:16] *** yrk has joined #libgdx
[18:15:16] *** joelt has quit IRC
[18:16:14] *** joelt has joined #libgdx
[18:19:30] *** Oebele has joined #libgdx
[18:19:58] *** Oebele_ has quit IRC
[18:24:21] *** joelt has quit IRC
[18:24:42] *** ib has joined #libgdx
[18:25:20] *** joelt has joined #libgdx
[18:26:25] <ib> Greetings. Can I get a suggestion for a good tutorial on collision detection with libGDX? It's an interesting topic and doing a good job on it is quite a challenge.
[18:28:44] <Xoppa> ib, https://xoppa.github.io/blog/using-the-libgdx-3d-physics-bullet-wrapper-part1/
[18:29:32] <Xoppa> for 2d have a look at https://www.youtube.com/user/dermetfan
[18:31:34] *** Madmenyo has joined #libgdx
[18:32:12] *** Rywat has quit IRC
[18:38:23] <isdera> ib is your game 2D or 3D?
[18:38:27] <ib> @Xoppa, thanks!
[18:38:44] <ib> isdera, It's a 2d game.
[18:39:13] *** NooBxGockeL is now known as NooBxGockeL|OFF
[18:43:14] <isdera> cool look at dermetfan's box2d tutorials thats how I figured it out
[18:43:54] *** midomido has quit IRC
[18:44:16] <ib> isdera, Thanks!
[18:44:39] *** ib has quit IRC
[18:45:51] <Madmenyo> How should I work with KryoNet? I now have a login using MySQL and once logged in it starts a KryoNet client and once it connects it switches gamescreen to the lobby. Now I want the player list to be updated there so I guess I pass the KryoNet client to the GameScreen and add a listener there to update that player list. Is this correct? Very new to
[18:45:51] <Madmenyo> networking, it makes my brain melt sometimes :D.
[18:51:03] *** Oebele_ has joined #libgdx
[18:53:11] *** walrus_ has quit IRC
[18:53:30] *** domokato has joined #libgdx
[18:53:34] *** Oebele has quit IRC
[18:57:41] *** domokato has quit IRC
[18:59:20] *** EvilEntity has joined #libgdx
[19:03:29] *** EvilEntity has quit IRC
[19:07:45] *** Sadale has quit IRC
[19:19:53] <isdera> polymorphisms make my brain melt. i know im writing more lines of code than i need, but most of it is copy and pasting and just changing a few variables
[19:21:25] *** gilch has quit IRC
[19:21:43] <tnelsond> How dare you attack the sacred cow of OOP. Objects! Inheritance! Magic!
[19:23:25] <isdera> i WANT to use it but it hurts my brain too much
[19:23:50] <tnelsond> I would prefer just having function pointers myself.
[19:24:05] <tnelsond> I like writing my Java code like C.
[19:24:28] <isdera> you mean if(bike) rideBike(); else if(motorcycle) rideMotorCycle();
[19:24:51] <tnelsond> Yeah typically.
[19:24:52] <Madmenyo> Lol, yes the basics are quite easy to understand. Abstract class animal -> abstract class mammal -> abstract class primate -> abstract class human -> abstract class HumanThatCanDoPolymorphism
[19:25:33] <isdera> too many abstraction layers! *headache
[19:26:14] <Madmenyo> Keep it to a minimum to what you need. OOP can overcomplicate things too...
[19:38:05] *** BlueProtoman has joined #libgdx
[19:38:29] *** BlueProtoman has left #libgdx
[19:38:37] *** Biliogadafr has quit IRC
[19:43:04] *** joelt has quit IRC
[19:49:32] *** SouL__ has joined #libgdx
[19:51:24] *** abs25 has joined #libgdx
[19:52:43] *** hextileX has quit IRC
[19:53:02] *** cobolfoo_ has joined #libgdx
[19:54:17] *** domokato has joined #libgdx
[19:54:54] <cobolfoo_> hi everyone, finally got my gdx build ok
[19:54:57] <cobolfoo_> erm gwt
[19:55:18] <cobolfoo_> I was unable to hide the log textarea, I just modified the css to display:hidden :)
[19:55:51] <cobolfoo_> www.infinitrap.com/demo, if you wonder the result
[19:56:59] *** ex00 has quit IRC
[19:57:37] *** Bernzel has joined #libgdx
[19:58:02] *** Oebele has joined #libgdx
[19:58:28] <Bernzel> When creating an IPA file, is it common to be stuck on 93% for over 15 minutes?
[19:58:59] <SouL__> I like the sounds when you die haha cobolfoo_
[19:59:14] *** domokato has quit IRC
[19:59:21] *** makoLine has joined #libgdx
[19:59:33] <cobolfoo_> I wanted to stay away from easy violence and blood but when I started doing the animation it was too much fun :)
[19:59:57] *** deniska has joined #libgdx
[20:00:15] *** kjempff has joined #libgdx
[20:00:46] *** Oebele_ has quit IRC
[20:01:20] <SouL__> Are you working on it alone, cobolfoo_?
[20:01:52] <cobolfoo_> yep
[20:02:50] *** vestu has joined #libgdx
[20:03:20] <cobolfoo_> let say libgdx was doing most of the work :)
[20:04:40] <cobolfoo_> I wrote a blog post on gamasutra explaining how made the game: http://www.gamasutra.com/blogs/YanickBourbeau/20150902/252624/Linux_game_development_in_2015.php
[20:06:30] <SouL__> Oh nice cobolfoo_, I will read it for sure.
[20:06:44] <SouL__> I would like to ask you some questions, but I have to leave them for another moment :P
[20:06:51] <cobolfoo_> no pb
[20:07:24] <cobolfoo_> I am working on a system to reach youtubers in a proper manner (not spamming them with the same thing)
[20:09:11] *** makoLine has quit IRC
[20:09:31] *** yrk has quit IRC
[20:10:39] <SouL__> cobolfoo_: Can you relate a bit more, please?
[20:10:44] *** sreich has quit IRC
[20:11:13] <cobolfoo_> I want to make my game known by the public, I know for sure that I have to reach youtubers and speedrunners : )
[20:11:37] <cobolfoo_> but sending a bulk email to them with do nothing at all. I actually have to check the video produced and write back to each of them
[20:11:42] <cobolfoo_> videos
[20:11:46] *** joelt has joined #libgdx
[20:12:06] <rgr> being able to die on the menu screen is bit ....
[20:12:19] <cobolfoo_> but instead of typing the emails myself in Thunderbird, I would prefer to have some sort of web interface that keep me informed about my communication attempts
[20:12:27] <cobolfoo_> rgr I found this amusing :)
[20:14:36] *** joelt_ has joined #libgdx
[20:15:16] <SouL__> Aha.. Interesting cobolfoo_. Do you think this will be easy? To get them to play your game and upload a video. Without paying them, of course.
[20:15:42] *** joelt has quit IRC
[20:15:49] <cobolfoo_> not really, so far my kickstarter have 3 persons, my greenlight page have 222 yes votes, everything need to be done
[20:16:09] <cobolfoo_> but anyway I don't really care about the difficulty, I learn so much stuff about marketing and PR right now :)
[20:18:37] *** kdarknight has joined #libgdx
[20:19:00] *** superradish1 has quit IRC
[20:20:36] <kdarknight> Is there a way to copy and paste my project to another computer to import in eclipse, and this computer does not have access to Internet.
[20:23:11] *** ex00 has joined #libgdx
[20:23:12] <SouL__> cobolfoo_: Good luck :D
[20:23:20] <cobolfoo_> tx
[20:23:33] <rgr> Yeah but in fairness the game is rather retro. Im not sure it has the pulling power for the "kidZ".
[20:23:38] <rgr> brb
[20:24:21] <rgr> oh good. emacs didnt crash.
[20:25:18] *** makoLine has joined #libgdx
[20:25:27] <cobolfoo_> rgr in any way I will wrote something about it , might help some here :)
[20:25:29] *** hextileX has joined #libgdx
[20:25:47] <kdarknight> I need to distribute my project code to offline users. So they can run and build over it. But how can I manage gradle here
[20:27:37] <kdarknight> cobolfoo_, am I missing something interesting? you wrote something?
[20:27:53] <cobolfoo_> made a game, wrote an article about it: http://www.gamasutra.com/blogs/YanickBourbeau/20150902/252624/Linux_game_development_in_2015.php
[20:28:08] <cobolfoo_> now trying to get exposure for both greenlight and kickstarter at infinitrap.com
[20:28:12] *** Oebele_ has joined #libgdx
[20:29:26] <rgr> why did you design your own level editor? For that Tiled would have been more than sufficient wouldnt it?
[20:29:45] <cobolfoo_> because I like to do editors, this is a problem with me :)
[20:30:06] <cobolfoo_> with the editor you can script some events too, added features not found in tiled
[20:30:52] *** Oebele has quit IRC
[20:31:20] <rgr> not sure reinventng the wheel is a good tutorial in the world of FOSS ;) I used to use Tiled for my characters etc but moved to RUBE. Still will use Tiled for the "platforms" though. You could add user properties t everything n Tiled that would provide your scripting interface.
[20:31:54] <cobolfoo_> I Spend a very short amount of time on the editor itself
[20:32:10] <cobolfoo_> but yeah, Tiled might have been enough
[20:32:50] <Madmenyo> How to register a custom HashMap to KryoNet?
[20:33:17] <cobolfoo_> Madmenyo, you register the object types used in your hashmap first then the hashmap itself
[20:34:30] <kdarknight> cobolfoo_, looks cool
[20:35:21] <Madmenyo> Thanks
[20:37:30] <kdarknight> Please help, future of 1st year students of my college depends on that :P
[20:38:43] *** De5car7es has joined #libgdx
[20:39:44] <cobolfoo_> gradlew have a --offline parameter
[20:39:46] <cobolfoo_> this is all I know :)
[20:42:21] <kdarknight> I can generate a libgdx project offline, that's I know and it will work only if I already have the required libs in gradle folder. But the target computer will not going to have those gradle files. How can I export the libs to specific folder
[20:50:27] *** De5car7es has quit IRC
[20:53:24] <maximtwo> kdarknight, you can download a nightly build and extract the jars manually: https://libgdx.badlogicgames.com/nightlies/
[20:53:40] <rgr> so this works fine on my desktop app but not on android : error is after the fragment shader code. Pointers welcome! https://gist.github.com/rileyrg/311a8c0a475257be932f
[20:55:36] <cobolfoo_> line 21
[20:55:39] <cobolfoo_> 1 should be 1.0 ?
[20:57:16] <kdarknight> maximtwo, thanks. I will give this a try.
[20:57:16] <rgr> alas not.
[20:57:31] <rgr> oh wait.
[20:57:37] <rgr> two versions. well spotted that man.
[20:58:42] *** harha_ has joined #libgdx
[20:58:54] *** Oebele has joined #libgdx
[21:00:46] *** yrk has joined #libgdx
[21:00:49] *** yrk has joined #libgdx
[21:01:19] *** Oebele_ has quit IRC
[21:01:55] *** nine_9 has quit IRC
[21:03:04] *** yrk has quit IRC
[21:10:21] *** ajhager has quit IRC
[21:14:12] *** ajhager has joined #libgdx
[21:17:01] *** superradish has joined #libgdx
[21:21:31] *** domokato has joined #libgdx
[21:21:54] *** CloneTGM50 has joined #libgdx
[21:21:55] *** AbdoTGM50 has joined #libgdx
[21:22:03] *** CloneTGM50 has quit IRC
[21:25:13] *** hextileX1 has joined #libgdx
[21:25:49] *** hextileX has quit IRC
[21:26:40] <joelt_> I didn't realize, one has to pay for RoboVM?
[21:26:53] <cobolfoo_> nope
[21:27:28] <joelt_> i get this when building: The RoboVM debugger has not been licensed for this machine. Please see http://www.robovm.com/buy for licensing options.
[21:27:47] <joelt_> that's just for debugging.. i see.
[21:27:48] <jeffol> joelt_: effectively a warning. there are more features, but you are free to publish using robovm without a license.
[21:28:00] <joelt_> thx
[21:28:36] *** SonikBoom has quit IRC
[21:30:16] *** Oebele_ has joined #libgdx
[21:31:05] *** noone__ has joined #libgdx
[21:31:46] *** Oebele has quit IRC
[21:35:42] *** phy_game_lover has quit IRC
[21:36:17] <mobidevelop> cobolfoo_, rgr: building your own editor is always the way to go
[21:41:37] *** absof25 has joined #libgdx
[21:43:02] *** cuellarjmcg has quit IRC
[21:45:04] *** abs25 has quit IRC
[21:49:09] *** FrottyZad has joined #libgdx
[21:49:22] *** nine_9 has joined #libgdx
[21:50:31] *** yrk has joined #libgdx
[21:50:31] *** yrk has joined #libgdx
[21:51:43] *** FrottyZ has quit IRC
[21:55:43] *** cuellarjmcg has joined #libgdx
[21:57:11] *** Keniyal has quit IRC
[22:00:55] *** Oebele has joined #libgdx
[22:02:55] *** Oebele_ has quit IRC
[22:12:25] *** domokato_ has joined #libgdx
[22:12:27] *** Symatiks has joined #libgdx
[22:13:11] *** FrottyZ has joined #libgdx
[22:15:49] *** plastix| has joined #libgdx
[22:15:51] *** domokato_ has quit IRC
[22:15:52] *** aftersomemath_ has joined #libgdx
[22:16:03] *** hextileX1 has quit IRC
[22:16:11] *** plastix- has quit IRC
[22:16:12] *** [[derek]] has quit IRC
[22:16:16] *** domokato has quit IRC
[22:16:17] *** cackling_grandma has quit IRC
[22:16:17] *** Symatix has quit IRC
[22:16:19] *** aftersomemath has quit IRC
[22:16:20] *** Thinkofdeath has quit IRC
[22:16:23] *** cackling_maidens has joined #libgdx
[22:16:24] *** hextileX has joined #libgdx
[22:16:26] *** FrottyZad has quit IRC
[22:16:34] *** aftersomemath_ is now known as aftersomemath
[22:16:34] *** Symatiks is now known as Symatix
[22:16:34] *** [[derek]] has joined #libgdx
[22:16:50] *** Thinkofdeath_ has joined #libgdx
[22:16:59] *** Thinkofdeath_ is now known as Thinkofdeath
[22:19:48] *** hextileX has quit IRC
[22:23:05] <Madmenyo> I'm trying to alter the stage calling a method from a KryoNet Listener but this does not work. If I call the method from somewhere else with dummy parameter the stage gets altered. Am I not allowed to do that in a Listener? How should I proceed?
[22:25:09] <Madmenyo> Does not work:
[22:25:11] <Madmenyo> client.addListener(new Listener() {
[22:25:11] <Madmenyo> @Override
[22:25:11] <Madmenyo> public void received(Connection connection, Object object) {
[22:25:12] <Madmenyo> if (object instanceof Packet)
[22:25:12] <Madmenyo> {
[22:25:12] <Madmenyo> if (object instanceof PlayerListPacket)
[22:25:12] <Madmenyo> {
[22:25:13] <Madmenyo> PlayerListPacket p = (PlayerListPacket) object;
[22:25:13] <Madmenyo> updatePlayerList();//p.players);
[22:25:14] <Madmenyo> }
[22:25:14] <Madmenyo> }
[22:25:15] <Madmenyo> }
[22:25:15] <Madmenyo> });
[22:25:32] <Madmenyo> From show method works...
[22:25:42] <Xoppa> Madmenyo, please never ever dont do that ever again!
[22:25:50] <Corosus> pastebin sites are your friend
[22:25:51] <Xoppa> you will be banned
[22:26:06] <Madmenyo> kk, sorry
[22:26:54] <Madmenyo> Not sure why all the whitespace is there though...
[22:28:36] <Madmenyo> Anyway, calling updatePlayerList(); from the show() method works fine...
[22:30:55] *** Oebele_ has joined #libgdx
[22:32:44] <rgr> and changing your nick every time ;)
[22:33:39] *** rgr has quit IRC
[22:33:43] *** Oebele has quit IRC
[22:33:53] *** Faylite has joined #libgdx
[22:34:53] <Xoppa> use Gdx.app.postRunnable
[22:37:50] <Madmenyo> Where exactly? I tried that and running that updatePlayerList(); method in it without success...
[22:39:13] <Xoppa> then blame the guy that made that updatePlayerList() method
[22:39:27] <Madmenyo> lol
[22:40:02] <Madmenyo> It simple calls clear on a table and then populate it with X "new Table()" tables from another method...
[22:40:10] *** domokato has joined #libgdx
[22:40:49] <Madmenyo> I should be able to get info from the server and alter the stage with that right...?
[22:43:29] <Xoppa> never ever do anything that is libgdx related outside of the render thread. if you need to call Gdx.app.postrunnable to ensure that, then do that. If you still have an issue with it then ensure that it is indeed a problem with your kryonet code (probably not)
[22:43:39] *** domokato has quit IRC
[22:44:39] <Madmenyo> Thanks, good info! So any Listener would be outside the LibGDX thread?
[22:45:35] <Madmenyo> Fixed it... was creating a ScrollPane and assiged it a table in that Method too.
[22:45:52] <Xoppa> yay!
[22:45:57] <Xoppa> pics or it didnt happen!
[22:47:14] <Madmenyo> lol
[22:49:52] <Madmenyo> Could you point me to some more documentation about those threads? I am not sure what can cause me to switch threads unless I am switching myself. But I reckon a Listener that is waiting for something will run on it's own.
[22:55:49] *** vestu has quit IRC
[22:58:03] *** LostWarrior has joined #libgdx
[22:58:53] <Xoppa> what do you mean
[22:58:56] <Xoppa> ?
[23:04:38] *** bnvap4 has joined #libgdx
[23:06:39] *** LostWarrior has quit IRC
[23:07:18] <Madmenyo> Nevermind already found some good reading about threads. Anyway, here is prove: http://i.imgsafe.org/dae6de1.jpg
[23:07:35] <Madmenyo> lol, I must love that blue screen for being logged in so many times :D
[23:07:56] *** LostWarrior has joined #libgdx
[23:08:55] *** Shinkamui has quit IRC
[23:09:12] *** cobolfoo_ has quit IRC
[23:09:38] *** cobolfoo_ has joined #libgdx
[23:11:39] *** tnelsond has quit IRC
[23:12:29] *** mutilator has quit IRC
[23:13:29] *** mutilator has joined #libgdx
[23:13:59] *** plastix| has quit IRC
[23:14:14] *** gfd has joined #libgdx
[23:14:25] <gfd> hello?
[23:14:34] <jeffol> watdup
[23:15:24] *** ksclarke has quit IRC
[23:15:24] *** plastix- has joined #libgdx
[23:15:42] <gfd> i have a proble,
[23:15:43] <gfd> m
[23:16:27] *** kamui has joined #libgdx
[23:16:38] *** absof25 has quit IRC
[23:17:28] <FrottyZ> gfd: cool
[23:19:13] <Madmenyo> gfd: I have several :)
[23:20:20] *** joelt_ has quit IRC
[23:20:24] <SouL__> gfd: Only one? I envy you
[23:20:26] <SouL__> xDD
[23:21:27] <Madmenyo> Does kryonet support "connection" groups or should I implement those myself? Like when a player enters the lobby I add him to the lobby list and when a player connects to that lobby I sent the whole list to the new player and that player to the whole list.
[23:22:13] <mobidevelop> You implement that
[23:23:11] <Madmenyo> Ok, should be easy enough ;)
[23:25:01] *** ex00 has quit IRC
[23:25:03] *** ex00_ has joined #libgdx
[23:25:09] *** joelt has joined #libgdx
[23:26:44] *** darkamikaze has quit IRC
[23:27:45] *** darkamikaze has joined #libgdx
[23:32:27] *** ksclarke has joined #libgdx
[23:35:14] *** Xoppa has quit IRC
[23:35:45] *** De5car7es has joined #libgdx
[23:39:14] *** vincent_c has quit IRC
[23:39:15] *** joelt has quit IRC
[23:42:43] *** vincent_c has joined #libgdx
[23:44:02] *** domokato has joined #libgdx
[23:48:35] *** domokato has quit IRC
[23:52:43] *** intrigus has joined #libgdx
[23:54:11] <intrigus> #JOIN LWJGL
[23:55:42] *** Oebele_ has quit IRC
[23:58:14] *** ex00_ has quit IRC
[23:58:21] *** LostWarrior has quit IRC
[23:59:23] *** Faylite has quit IRC
[23:59:32] <FrottyZ> intrigus: ?
top

   September 4, 2015  
< | 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 | >