• What Are You Working On? July 2015
    1,392 replies, posted
[QUOTE=Map in a box;48109928]I should have a projects folder.[/QUOTE] That IS the projects folder.
I modified my Gatling Gun some more. Made it shorter on the left side and added a couple of frames to the player's arm. [vid]https://dl.dropboxusercontent.com/u/7113767/Videos/Zombie%20Game%20-%20Gatling%20Gun%20Changes.webm[/vid]
[QUOTE=Rocket;48110283]Uh, that's [b]your[/b] projects folder. Not his project folder.[/QUOTE] One day...
[QUOTE=Winner;48108029]yes it actually has to[/QUOTE] Why? As far as I know even JS can easily do binary file manipulation now.
Where do youse get inspiration? I want to create something, not a game, that has a practical use in my everyday life, or is fun. I am lacking inspiration, is there a reddit forum where people post their ideas? I'm hoping I can see someones idea and get inspired and create something, it probably won't end up being the persons original idea, I just need to find some stuff for inspiration.
[QUOTE=PigeonPatrol;48110486]Where do youse get inspiration? I want to create something, not a game, that has a practical use in my everyday life, or is fun. I am lacking inspiration, is there a reddit forum where people post their ideas? I'm hoping I can see someones idea and get inspired and create something, it probably won't end up being the persons original idea, I just need to find some stuff for inspiration.[/QUOTE] First off, "reddit forum" lol.. Anyway, create something that you would fine useful. I'm creating a level editor for example, It's something that I will probably use a lot so I decided to make it. IMO you don't really get "inspired" to make something useful. You just find something that you need and you make it.
Working on the first free content update for Unlimited Golf with some space themed levels. Off too a good start I think with a less gravity intro moon level! [img]http://i.imgur.com/tFmfxRL.png[/img]
[QUOTE=polkm;48107996]Ugh, I always get too excited by progress and drink too much[/QUOTE] That is why you bring only one beer into the room so your AI hands don't open second beer.
Recreating a game that was on a phone ages ago. Perhaps someone remembers it? [vid]http://webm.host/a83db/vid.webm[/vid] Still need to add enemies and stuff.
So MS published a list of compiler bugs they fixed with VS 2015. I made the list and I kind of feel like this is the biggest impact I'll have with my programming ability. If you're interested it's here: [url]http://blogs.msdn.com/b/vcblog/archive/2015/07/01/c-compiler-front-end-fixes-in-vs2015.aspx[/url]
[QUOTE=Rocket;48110283]Uh, that's [b]your[/b] projects folder. Not his project folder.[/QUOTE] Oh. Welp. [editline]3rd July 2015[/editline] I thought it said mine.
Found this gem I wrote years ago. [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SFML.Graphics; using SFML.Window; namespace Client.GUI.ParticleEffects { class ParticleSwitch { public static void SortParticleString(string particleString, Vector2f position) { switch (particleString) { case "t": Color[,] c = new Color[1,1]; c[0, 0] = Color.Yellow; Image i = new Image(c); ParticleSystem par = new ParticleSystem(position, new Vector2f(0, 0), 200, 10, 35.4f, new Texture(i)); Program.ClientDelegate del = null; int count = 0; del = () => { Program.Shake = true; count++; if (count > 6) { Program.Shake = false; Program.OnUpdate -= del; } }; Program.OnUpdate += del; break; } } } } [/code]
[QUOTE=ruarai;48112243]When does Adobe hire me? [IMG]http://i.imgur.com/FcmeAZu.png[/IMG] Also, another visualization. [IMG]http://i.imgur.com/qjKWEcM.png[/IMG][/QUOTE] When you send them this.
[QUOTE=ruarai;48112243]When does Adobe hire me? -snip- Also, another visualization. -snap-[/QUOTE] You should write this as a Photoshop plugin.
Just finished a little Flash game called "Alex Jones vs. The New World Order". For those who don't know, Alex Jones is a conspiracy wackjob who says all sorts of crazy shit all the time. So I made a game about that. [url]http://www.newgrounds.com/portal/view/660192[/url]
[QUOTE=CLTbot;48112822]Just finished a little Flash game called "Alex Jones vs. The New World Order". For those who don't know, Alex Jones is a conspiracy wackjob who says all sorts of crazy shit all the time. So I made a game about that. [url]http://www.newgrounds.com/portal/view/660192[/url][/QUOTE] Great but (slightly) annoying with a QWERTZ keyboard. Since this only uses one letter key, I suggest making it react to any of them.
[QUOTE=Saccn;48111875]Recreating a game that was on a phone ages ago. Perhaps someone remembers it? [vid]http://webm.host/a83db/vid.webm[/vid] Still need to add enemies and stuff.[/QUOTE] I remember a very similar, yet very old game. It's called Mamba. [IMG]http://www.kamco.szm.com/mamba.gif[/IMG]
[QUOTE=Winner;48113444]because it's a set of selectable filters so humans need to read it i didn't make this system but i need to make it not suck and we'll see how that goes[/QUOTE] JSON as file itself is meant to be readable in case somebody wants to edit it, not the contents inside. And as far as i can see the JSON files in your case are not really editable. It's pointless to use JSON in that case. Really.
[QUOTE=Winner;48113536]the issue is really the amount of data that's being sent at a single time rather than the format it's being sent in. json is a non-issue.[/QUOTE] JSON can be an issue in this case because of ridiculously large size. Some binary format would be better because it doesn't require parsing and is more compact by itself.
[QUOTE=mijyuoon;48113563]JSON can be an issue in this case because of ridiculously large size. Some binary format would be better because it doesn't require parsing and is more compact by itself.[/QUOTE] I think what you should say is a binary format could be better, there's many ways you can actually end up in a worse state because of a badly designed binary format, it's not a silver bullet. :v: Doesn't require parsing is also sort of an oxymoron, as you'd still need to parse the format. Not to mention the fact that the likelyhood of your format breaking hopelessly when it changes is much lower if it's in something like JSON, whereas with a binary format you'd have to include this into your considerations if you ever want to change it.
[QUOTE=Winner;48113692]aaaaaa the format is not the problem even if i send it as a binary object it would be massively un-scaleable because a couple thousand filters get added every day i feel like there's definitely a dumb programming joke to be made here[/QUOTE] Hey, programmers love their bikeshedding :v:
[QUOTE=PigeonPatrol;48110486]Where do youse get inspiration? I want to create something, not a game, that has a practical use in my everyday life, or is fun. I am lacking inspiration, is there a reddit forum where people post their ideas? I'm hoping I can see someones idea and get inspired and create something, it probably won't end up being the persons original idea, I just need to find some stuff for inspiration.[/QUOTE] Copy what you like, then original ideas will come.
[QUOTE=ruarai;48112243]When does Adobe hire me? [IMG]http://i.imgur.com/FcmeAZu.png[/IMG][/QUOTE] I can has as background?
[QUOTE=chimitos;48113753]Copy what you like, then original ideas will come.[/QUOTE] 1x agree, this applies to basically all creative work.
A mutable linked list in Haskell. [code]{-# LANGUAGE RecordWildCards #-} module LinkedList where import Prelude hiding (length) import Control.Monad.ST import Data.STRef type LLN s a = LinkedListNode s a type LL s a = LinkedList s a type SMN s a = STRef s (Maybe (LLN s a)) data LinkedListNode s a = LinkedListNode a (SMN s a) (SMN s a) data LinkedList s a = LinkedList { begin :: STRef s (LLN s a) , end :: STRef s (LLN s a) , length :: STRef s Int } newLinkedList :: ST s (LinkedList s a) newLinkedList = do l <- newSTRef $ error "List is empty" r <- newSTRef $ error "List is empty" len <- newSTRef 0 return $ LinkedList l r len newLinkedListNode :: a -> ST s (LinkedListNode s a) newLinkedListNode x = do n <- newSTRef Nothing p <- newSTRef Nothing return $ LinkedListNode x p n withPointer :: Bool -> LinkedListNode s a -> (Maybe (LLN s a) -> ST s (Maybe (LLN s a))) -> ST s () withPointer b (LinkedListNode _ p n) f = do old <- readSTRef (if b then n else p) new <- f old writeSTRef (if b then n else p) new withPrevious :: LinkedListNode s a -> (Maybe (LLN s a) -> ST s (Maybe (LLN s a))) -> ST s () withPrevious = withPointer False withNext :: LinkedListNode s a -> (Maybe (LLN s a) -> ST s (Maybe (LLN s a))) -> ST s () withNext = withPointer True attach :: Bool -> a -> LinkedList s a -> ST s () attach b x LinkedList{..} = do node <- newLinkedListNode x l <- readSTRef length case l of 0 -> do writeSTRef begin node writeSTRef end node writeSTRef length 1 n -> do e <- readSTRef (if b then end else begin) (if b then withNext else withPrevious) e (const $ return $ Just node) (if b then withPrevious else withNext) node (const $ return $ Just e) writeSTRef (if b then end else begin) node writeSTRef length (n + 1) append :: a -> LinkedList s a -> ST s () append = attach True prepend :: a -> LinkedList s a -> ST s () prepend = attach False mapSTForward :: (a -> ST s b) -> LinkedList s a -> ST s [b] mapSTForward f list = do l <- readSTRef $ length list case l of 0 -> return [] _ -> do b <- readSTRef $ begin list mapSTForward' b where mapSTForward' (LinkedListNode x _ n) = do y <- f x next <- readSTRef n case next of Nothing -> return [y] Just nx -> do ys <- mapSTForward' nx return $ y : ys test :: [Int] test = runST $ do list <- newLinkedList append 1 list append 2 list append 3 list append 4 list append 5 list mapSTForward return list [/code] It's nothing too clever but I wrote a radix sort implementation and I think having a mutable linked list might give it a performance boost because I can avoid one extra iteration in every step of the sort. In theory it should make it slightly faster than the default sorting algorithm implemented in Haskell (at the expense of extra memory).
I can now pass colors or numbers on the command line to queries: [code] input in output out[in.width, in.height] param num spacing param num size out: select color from in where x % spacing < size and y % spacing < size [/code] Spacing = 10, size = 8 [t]http://i.imgur.com/7yjTLHM.png[/t] Spacing = 5, size = 3 [t]http://i.imgur.com/YZa6PKq.png[/t]
[QUOTE=Winner;48097707]let's talk about scaleability [t]http://i.imgur.com/JTHLexG.png[/t] yes, that's a 9MB json object[/QUOTE] I bet that it's written by the same kind of dev who thinks javascript files should be smaller then 4K [editline]3rd July 2015[/editline] [QUOTE=Berkin;48100304]I'm currently translating my documentation to German. [img]http://i.imgur.com/ilqKWT5.png[/img] I'm scared[/QUOTE] Not sure why that would be a good idea or really needed. You wrote software aimed at software developers. A side effect of writing german docs could be that people will start asking questions in german etc.
[img]http://files.1337upload.net/dse-d45a40.png[/img]
[QUOTE=ruarai;48112243]When does Adobe hire me? [IMG]http://i.imgur.com/FcmeAZu.png[/IMG] Also, another visualization. [IMG]http://i.imgur.com/qjKWEcM.png[/IMG][/QUOTE] That is pretty cool, mind sharing more details about that? Stuff like the approach.
Okay guys I'm back, I went on an adventure and found Node js, I didn't know what it was, but after a few hours of intense coding and hacking shit together because facebook are assholes, I finally have my [url]https://twitter.com/pakalupapito[/url] facebook bot. It's not the only thing the bot can do, I threw together a crappy command system that I'll refine. So far, any person can play RPS against it by doing /rock, /paper or /scissors. And two of my friends automatically are subscribed in getting pakalu papito tweets. Might make a post and for everyone that likes it, I will send a morning tweet to them. [quote] [img]http://i.imgur.com/KvaIJUH.jpg[/img] [/quote] Just need to fix the doubling up, right now it web scrapes all the tweets and chooses one at random, I know there is a twitter API but i couldnt be fucked tbh. Oh, now I finally have a use for Rant!
Sorry, you need to Log In to post a reply to this thread.