• What Are You Working On Jan 2013
    1,974 replies, posted
[QUOTE=Jawalt;39072785]Anyone here use Ruby? I've been messing around with it for the last day or so and it's pretty nice. The grammar is.... quirky though. I've yet to see a good guide that will tell me about the grammar, and I don't feel like reading the BNF. It's weird because I am totally not sure where newlines have to go and where parenthesis are allowed to be dropped, and none of the guides address this.[/QUOTE] turb [editline]3rd January 2013[/editline] most informative page king ever [editline]3rd January 2013[/editline] rate me useful
In the Steam Chat we've hit a new level of procrastination... Tic-Tac-Toe Motherfuckers. [img]http://img577.imageshack.us/img577/3072/tempd.png[/img]
Well, I'm just about done with this program (just for personal use). Just gotta center shit and cleanup and optimize code. Listened to you guys and swapped JList with JTable, and I think it looks slightly better than before. If anybody wants source code or the program for some reason drop me a PM and I'll send it to you when done: [img]http://i.imgur.com/MI8WE.png[/img]
Working on some sort of tf2 parody/demake text adventure [t]http://i.imgur.com/WnzS7.png[/t] The item generator separately [t]http://i.imgur.com/E8g5P.png[/t] [editline]Idunnoifthisworks[/editline] [URL="https://dl.dropbox.com/u/17678824/Misc/True%20Tf2%20Simulator.7z"]Download[/URL]
[QUOTE=benjojo;39053532][h2]Z_Guys game from start to store![/h2][/QUOTE] Thank you for the highlight! The iOS version is actually still not released. Still waiting for Apple to do their part.. Anyway, today I got a bit bored, so I decided to make a small application to grab information from [url=http://www.gravatar.com]Gravatar[/url] [img]https://dl.dropbox.com/u/19560951/GravatarInfo.png[/img]
Working on my FPS game engine in OpenGL. I implemented a timer system and a seperate Input manager. Here is the game progress so far if you want to check it out: [url]https://dl.dropbox.com/u/43867531/SubZero.rar[/url] It only works on PC currently. I've also decided that it is going to have doom style controls, so you can only rotate on the X axis. Not sure I will keep this behavior though...
[img]http://puu.sh/1INg9[/img] And it is done!
I took a C++ course in high school but I forgot everything, so I'm trying out VB. This is my first program. It has a button and then plays a sound, then you can click the button again and it stops the sound. It's also an experiment with custom icons. [url]http://filesmelt.com/dl/Deans_First_Program.7z[/url] I'd like to know if it works with the audio and everything for you guys.
Added support for playlist creation to my API, also added support for starring/unstarring tracks and adding/removing tracks from playlists to the "friendly" API: [code] spotify = Spotify("un", "pw") src_playlist = spotify.objectFromURI("spotify:user:topsify:playlist:1QM1qz09ZzsAPiXphF1l4S") dest_playlist = spotify.newPlaylist(src_playlist.getName() + " - Copy") dest_playlist.addTracks(src_playlist.getTracks()) [/code] Clones one playlist to another (whilst transparently replacing no-longer-available tracks and removing unavailable tracks).
[QUOTE=Jawalt;39072785]Anyone here use Ruby? I've been messing around with it for the last day or so and it's pretty nice. The grammar is.... quirky though. I've yet to see a good guide that will tell me about the grammar, and I don't feel like reading the BNF. It's weird because I am totally not sure where newlines have to go and where parenthesis are allowed to be dropped, and none of the guides address this.[/QUOTE] there isn't a lot of good documentation everyone learns by trying things and seeing what works and what doesn't lol [editline]3rd January 2013[/editline] (it's totally worth it in the end though!) [editline]3rd January 2013[/editline] also the syntax is lovely once you learn it
[QUOTE=swift and shift;39076131]there isn't a lot of good documentation everyone learns by trying things and seeing what works and what doesn't lol [editline]3rd January 2013[/editline] (it's totally worth it in the end though!) [editline]3rd January 2013[/editline] also the syntax is lovely once you learn it[/QUOTE] So, Ruby is the OpenGL of programming languages.
Maybe someone else can also use this. I wrote this real quick to get the server info of my teamspeak server. [php] <?php function tsServerInfo($host='localhost',$port='10011',$serverId=1) { $fs =fsockopen($host, $port); fputs($fs,"use $serverId\n"); fputs($fs,"serverinfo\n"); for($i = 0; $i < 3; $i++) fgets($fs); //connect $parsable = explode(' ',str_replace('\n','',fgets($fs))); $parsedData = []; foreach($parsable as $parseme) { $parseme=str_replace('\\s',' ',$parseme); $parseme=str_replace('\\/','/',$parseme); $parseme=str_replace('\\\\','\\',$parseme); $expl = explode('=',$parseme,2); if(!isSet($expl[1])) $expl[1] = ''; $parsedData[$expl[0]] = $expl[1]; } fclose($fs); return $parsedData; } print_r(tsServerInfo('server01.liberumgamers.net')); [/php]
[QUOTE=Darwin226;39077237]So, Ruby is the OpenGL of programming languages.[/QUOTE] Someone needs to buy ru.by and (not) write tutorials on it.
[QUOTE=Darwin226;39077237]So, Ruby is the OpenGL of programming languages.[/QUOTE] Except there's lots of OpenGL documentation, it's just all out of date.
Framebuffer: [t]https://dl.dropbox.com/u/41041550/Coding/C%23/OGLFV/framebuffer.png[/t] Code to set it up: [code] renderbuffer = new Renderbuffer(RenderbufferTarget.RenderbufferExt); renderbuffer.Storage(RenderbufferStorage.Rgba8, 640, 480); frametex = new Texture2D(); frametex.TexImage(data.Scan0, 640, 480, PixelInternalFormat.Rgba8, OpenTK.Graphics.OpenGL.PixelFormat.Rgba, PixelType.UnsignedByte); frametex.TextureMagFilter(TextureMagFilter.Linear); frametex.TextureMinFilter(TextureMinFilter.Linear); framebuffer = new Framebuffer(FramebufferTarget.FramebufferExt); framebuffer.AttachRenderbuffer(renderbuffer, FramebufferAttachment.ColorAttachment0Ext); framebuffer.AttachTexture2D(frametex, FramebufferAttachment.ColorAttachment0Ext); framebuffer.BindDefault(); [/code] Code to render: [code] framebuffer.Bind(); GL.Clear (ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); program.Bind(); program.UniformMatrix4("model", ref model); program.UniformMatrix4("view", ref view); program.UniformMatrix4("projection", ref projection); DrawQuad(texture, vertexbuffer); framebuffer.BindDefault(); GL.Clear (ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); program.Bind(); program.UniformMatrix4("model", ref Matrix4.Identity); program.UniformMatrix4("view", ref Matrix4.Identity); program.UniformMatrix4("projection", ref Matrix4.Identity); DrawQuad(frametex, screenvertexbuffer); [/code]
[QUOTE=danharibo;39077399]Except there's lots of OpenGL documentation, it's just all out of date.[/QUOTE] sounds like rails tutorials
[QUOTE=danharibo;39077399]Except there's lots of OpenGL documentation, it's just all out of date.[/QUOTE]I use the reference for all things OpenGL, this one for example is for 3.2: [url]http://www.khronos.org/files/opengl-quick-reference-card.pdf[/url]
[QUOTE=dije;39077790]I use the reference for all things OpenGL, this one for example is for 3.2: [url]http://www.khronos.org/files/opengl-quick-reference-card.pdf[/url][/QUOTE] I like using the [url=http://www.opengl.org/sdk/docs/man/]man pages[/url] myself. Handily there's also a package for Arch called "opengl-man-pages" and I assume there's a package for debian somewhere.
Can someone explain to me what purpose and the general idea of tick rates in computer games are? I've always been interested in their purpose but never knew what to google for.
[QUOTE=false prophet;39077821]Can someone explain to me what purpose and the general idea of tick rates in computer games are? I've always been interested in their purpose but never knew what to google for.[/QUOTE]If I'm right it translates to ticks per second, more ticks means more precise simulation and physics and stuff but also lower time "budget" to do stuff every tick. 60 ticks per second means 16.66 ms per tick to do stuff and 30 ticks per second is like 33.33 ms.
[QUOTE=false prophet;39077821]Can someone explain to me what purpose and the general idea of tick rates in computer games are? I've always been interested in their purpose but never knew what to google for.[/QUOTE] I think in most games it's the rate at which everything except the rendering parts of a game runs at. The purpose of having it fixed is that things like physics would get inconsistent at variable timesteps because of rounding errors (and some other stuff).
Currently reading [url=http://www.amazon.co.uk/Metaprogramming-Ruby-Program-Like-ebook/dp/B00A376YAK/ref=sr_1_1?ie=UTF8&qid=1357218032&sr=8-1]Metaprogramming Ruby[/url]. Ruby is so damn amazing; the fact you can add methods to a class and have libraries change their behaviour without changing a single line within them really takes DRY to its limits. An example given is this: [code]class Movie < ActiveRecord::Base end[/code] Just that code creates methods for retrieving fields depending on the columns in a table called movies, along with CRUD methods for easily adding/removing records. Ruby metaprogramming is awesome.
[QUOTE=Chris220;39071643]Sorry for a really off topic post, but since he's not online I just wanted to publicly say how awesome Blk is and a huge [b]THANK YOU[/b] for this birthday gift. [t]http://i.imgur.com/jMpRZ.png[/t] I just came back to my computer to find this on my screen and, as sad as it sounds, I was truly overwhelmed for a bit. It's not often that generosity finds its way to me from people who aren't my family, and I really, really appreciate it. You have made a good birthday a great one, Blk, so thank you again! <3 P.S. I love all you guys too, don't worry. P.P.S Apologies again for being really off topic but I just know I'd forget to say thanks next time Blk's online, so I came here instead. I promise I'll post content soon![/QUOTE] "happy birthday or whatever" is about as sincere as I get. :v:
I try rendering a single quad covering all of visible clipspace in OpenGL (yes, I know it's deprecated, but I couldn't trust my triangle vertices anymore), and what do I get? [img]http://i.cubeupload.com/SdeGVx.png[/img] Oy vey. I don't even know how you can mangle a quad like that.
Finally tried libspotify again and after a lot of work I finally got it to log in.[img]http://i.solidfiles.net/c0724b8614.png[/img]
[QUOTE=HubmaN;39081039]Oy vey. I don't even know how you can mangle a quad like that.[/QUOTE] [img]http://img132.imageshack.us/img132/2452/yourbrainonopengl.jpg[/img]
[QUOTE=Jawalt;39072785]Anyone here use Ruby? I've been messing around with it for the last day or so and it's pretty nice. The grammar is.... quirky though. I've yet to see a good guide that will tell me about the grammar, and I don't feel like reading the BNF. It's weird because I am totally not sure where newlines have to go and where parenthesis are allowed to be dropped, and none of the guides address this.[/QUOTE] I use Ruby. Not sure what your problem is with newlines, though. I've never gotten an error for an including a newline. It's generally safer to add the newline if you're unsure (that will probably also be more readable). Parentheses are used just like they are used in math: to clear up ambiguity. If there are ever alternative interpretations due to missing parentheses, add them. The interpreter does have rules where it will yell at you for not including them, but I don't think any Ruby programmer bases their parenthesis use off of them. Remember, however, that Ruby is a really flexible language. If you aren't very familiar with the parser you can easily miss alternative interpretations of a statement without parentheses. When it doubt, add them.
badly drawn games for uni assignments #2 [media]http://www.youtube.com/watch?v=WFwF75HLt3w[/media]
[QUOTE=ThePuska;39066569]I'm convinced the world actually runs on Delphi. That [img]http://i.imgur.com/YVkdG.gif[/img] is behind every system. If a device runs on some kind of electricity, it's probably plugged to a Windows Server 2003 via COM, running a permanently full-screen Delphi application. The about-page probably includes a name, a landline number and a hotmail address. They're probably not even programmed by real people. It's some Delphi gnome or something that churns out horribly designed programs, littered with annoying little bugs but surprisingly stable and good enough to do the job. No-one even begins to wonder where they got the program, as far as they're concerned it was always there.[/QUOTE] There's this program, called Subtitle Workshop, which seems to be what everyone uses to edit their subtitles after subtitle editor. A dude from work wrote it in Delphi when he was 14, and this is what he wrote about it years later: [QUOTE]Expect no MVC pattern: that is for pussies (?). User interface and code are only one, and they love each other so much they are completely glued together.[/QUOTE] :v:
What do you like more for a music player? [img]http://i.imgur.com/k6a5T.png[/img]
Sorry, you need to Log In to post a reply to this thread.