• What Are You Working On? - December 2014
    1,204 replies, posted
[QUOTE=paul simon;46648741]Holy fuck, visiting this website just blew my headset with incredibly loud crackling noises. What the actual fuck man[/QUOTE] Looks like it's a problem on your end. Is anyone else getting this?
[QUOTE=Ott;46649024]Looks like it's a problem on your end. Is anyone else getting this?[/QUOTE] I have absolutely no idea why it might have happened, but it did just as I loaded up that link. Probably just a coincidence, but it set my volume to a bazillion and i could not change it before my computer was restarted. (By this i mean that every sound would be ear shatteringly loud noise instead of actual sound)
[QUOTE=Foxtrot200;46626609]So, a while ago, I wrote a [url="https://github.com/VerbalExpressions/"]Verbal Expressions[/url] implementation in Lua. I hadn't really used it for anything and thought I'd fix it up and [url="https://github.com/Apprehentice/vex"]put it on GitHub[/url] for others to use.Again, I haven't really used it, so it's probably buggy, but it's documented, so there's that. If you find a way to improve it, please do. I would love you long time.[/QUOTE] You wrecked it by using thisNotation (Lua should use thisnotation or this_notation). [editline]6th December 2014[/editline] [img]http://i.imgur.com/ykoA5hn.png[/img] wat
Just finished making my bot for: [url]https://play.google.com/store/apps/details?id=jp.co.ponos.tokerukana&hl=en[/url] Works good, finished the first puzzle I gave it in 14 steps, however, it does some stupid things sometimes, like worthless moves that dont do anything, only add more moves, so I am improving it now. Todays puzzle answer in 18 steps, (I lost the 14 step solution) left, down, left, left, right, down, left, up, left, up, right, down, down, left, left, down, down, down, left
[QUOTE=AnonTakesOver;46651299]Just finished making my bot for: [url]https://play.google.com/store/apps/details?id=jp.co.ponos.tokerukana&hl=en[/url] Works good, finished the first puzzle I gave it in 14 steps, however, it does some stupid things sometimes, like worthless moves that dont do anything, only add more moves, so I am improving it now. Todays puzzle answer in 18 steps, (I lost the 14 step solution) left, down, left, left, right, down, left, up, left, up, right, down, down, left, left, down, down, down, left[/QUOTE] Cool. What language?
Got the menu done for our Android game. [vid]http://a.pomf.se/yocgvx.webm[/vid] I enjoy just sitting here and watching it. :v:
[QUOTE=Rayboy1995;46651722]Got the menu done for our Android game. [vid]http://a.pomf.se/yocgvx.webm[/vid] I enjoy just sitting here and watching it. :v:[/QUOTE] Looks good!, not really a fan of the font though.
[QUOTE=Ott;46651579]Cool. What language?[/QUOTE] I wanted results fast so I just did javascript.
[QUOTE=COBRAa;46651195]You wrecked it by using thisNotation (Lua should use thisnotation or this_notation). [editline]6th December 2014[/editline] [IMG]http://i.imgur.com/ykoA5hn.png[/IMG] wat[/QUOTE] I could match the language, maybe take some pointers from Penlight. and yeah, that assert is, I guess, awkward :v:... [editline]6th December 2014[/editline] There, I fixed my shit.
Much nicer :P [editline]6th December 2014[/editline] [QUOTE=Foxtrot200;46651886]I could match the language, maybe take some pointers from Penlight.and yeah, that assert is, I guess, awkward :v:...[editline]6th December 2014[/editline]There, I fixed my shit.[/QUOTE] Why is it you do:[code]return add(self, "(?:" .. tostring(v) .. ")?")[/code]and not[code]return self:add("(?:" .. tostring(v) .. ")?")[/code]?Also,[code]return self:add(string.format("(?:%s)?", escape_regex(v))[/code]Is quicker, and cleaner (string concatenation is slow). [editline]6th December 2014[/editline] )
[QUOTE=Handsome Matt;46652151]I'm curious as to what the number of votes you need is. Has it decreased in the past few months as I'm seeing lots of games being greenlit recently.[/QUOTE] it definitely has infra had 46k positive votes when it got greenlit like a year ago now when i look at the stats page the top ranking games have anywhere between 3k and 10k votes
[URL="https://medium.com/message/tilde-club-i-had-a-couple-drinks-and-woke-up-with-1-000-nerds-a8904f0a2ebf"]So this whole tilde.club thing that is going on is pretty neat, tbh.[/URL] I can recommend it for having a place to have fun at. Content: [URL="https://tilde.red/~janw/"][IMG]http://i.imgur.com/Thk0gEV.png[/IMG][/URL]
I got bored and made a Snake clone in C#. Not the prettiest code, I know, but it works! [url]https://github.com/benbristow/snake.net[/url] [IMG]http://a.pomf.se/uguaje.png[/IMG]
I wish C++ fstreams were a bit less ugly. I prefer the syntax of the more type-safe C# BinaryReader. [code] //Ugly C++ fstream int Integer; file.read ((char*)&Integer, 4); //Much prettier C# BinaryReader int Integer = reader.ReadInt32 (); [/code]
I made a short preview of my map editor. It only shows basic stuff, nothing fancy (even though it all requires a shitton of code and GUI elements): - multiple layers - adding sprites - changing textures - scaling and resizing (vertex and line based) - rotating - delete, copy, cut, paste single or multiple sprites using a selection box - paste preview - moving sprites in front or behind each other - moving sprites to a different layer - parallax scrolling - basic Box2D bodies [media]http://www.youtube.com/watch?v=Ploy4yeB5aA[/media] If you want to try it out you can find the link on my blog. I am slowly updating the manual as I release new builds. Do note this has nothing to do with the Quake 2D source I released few weeks ago. [url]http://antonior-software.blogspot.com[/url]
[QUOTE=COBRAa;46651195]You wrecked it by using thisNotation (Lua should use thisnotation or this_notation). [editline]6th December 2014[/editline] [img]http://i.imgur.com/ykoA5hn.png[/img] wat[/QUOTE] Why no camel case in Lua? [editline]6th December 2014[/editline] [QUOTE=AntonioR;46653080]I made a short preview of my map editor. It only shows basic stuff, nothing fancy (even though it all requires a shitton of code and GUI elements): - multiple layers - adding sprites - changing textures - scaling and resizing (vertex and line based) - rotating - delete, copy, cut, paste single or multiple sprites using a selection box - paste preview - moving sprites in front or behind each other - moving sprites to a different layer - parallax scrolling - basic Box2D bodies [media]http://www.youtube.com/watch?v=Ploy4yeB5aA[/media] If you want to try it out you can find the link on my blog. I am slowly updating the manual as I release new builds. [url]http://antonior-software.blogspot.com[/url][/QUOTE] reminds me of facewound
[QUOTE=proboardslol;46653234]Why no camel case in Lua? [/QUOTE] Why yes?
[QUOTE=Darwin226;46653350]Why yes?[/QUOTE] Because capital letters make things easier to read when there's multiple words in an identifier. thisisanobjectthatdoesathing is harder to read than thisIsAnObjectThatDoesAThing
likeThis for methods LikeThis for module/class names like_this for variables If you do it any other way then you're a pleb
[QUOTE=adnzzzzZ;46653741]likeThis for methods LikeThis for module/class names like_this for variables If you do it any other way then you're a pleb[/QUOTE] variables with underscores in the middle? fuck that.
If you have a function that long, then you're doing something wrong. If you're really *that* desperate: this_is_an_object_that_does_a_thing. It's just, camelcase is so 'off-balance' to my eyes, I literally can't use any API that uses it. Seriously, if you're going to capitalize any of them, capitalize them all. [editline]6th December 2014[/editline] ThisIsAnObjectThatDoesAThing > thisIsAnObjectThatDoesAThing
stop
[QUOTE=COBRAa;46653828]If you have a function that long, then you're doing something wrong. If you're really *that* desperate: this_is_an_object_that_does_a_thing. It's just, camelcase is so 'off-balance' to my eyes, [B]I literally can't use any API that uses it[/B]. Seriously, if you're going to capitalize any of them, capitalize them all. [editline]6th December 2014[/editline] ThisIsAnObjectThatDoesAThing > thisIsAnObjectThatDoesAThing[/QUOTE] Don't you think thats a bit too much? Just because the creator felt different with this particular design shouldn't avoid you from using it :v: And by capitalizing all, you couldn't differentiate between Methods and Variables (At least in c#)
But you shouldn't need to. Do you still name your vars along the lines of flName/dblName/strName?
iiiiiiiiiiliiiiiijiii master race
Guys guys Systems Hungarian :v:
Speaking of, C#'s obsession with Pascal Case is a bit weird for me, coming from Java.
[QUOTE=alien_guy;46653790]variables with underscores in the middle? fuck that.[/QUOTE] Convince me why that's a bad thing using logic and reason.
[QUOTE=adnzzzzZ;46654138]Convince me why that's a bad thing using logic and reason.[/QUOTE] it's subjective (opinion) there you go
For variables in Erlang, PascalCase is objectively better than snake_case or camelCase because the latter two give you syntax errors :v:
Sorry, you need to Log In to post a reply to this thread.