• What are you working on? v16
    5,004 replies, posted
[QUOTE=Dr Magnusson;28655635]You can get a really good match just doing this: [code]abs( x.r - y.r ) + abs( x.g - y.g ) + abs( x.b - y.b )[/code] In fact, you aren't gonna get any better unless you somehow want to prioritize some colors over others. [editline]17th March 2011[/editline] Ninja'd, but it's cool cause you have that cool delta triangle.[/QUOTE] The 'correct' way scales the difference depending on the hue of the image, as certain colours have more distinct shades (or something like that ), but for this a simple distance is good enough.
Just updated my pirate translator with a suggestion box and fixed some outstanding bugs (mainly overlapped messages): [url=http://thefreewarecentral.com/pysp/]Pirate Translator 2.0[/url] Working on rewriting a large portion of the translator itself to make it more flexible and context-sensitive, which should help add some replacements which I couldn't before.
[QUOTE=Metroid48;28668463]Just updated my pirate translator with a suggestion box and fixed some outstanding bugs (mainly overlapped messages): [url=http://thefreewarecentral.com/pysp/]Pirate Translator 2.0[/url] Working on rewriting a large portion of the translator itself to make it more flexible and context-sensitive, which should help add some replacements which I couldn't before.[/QUOTE] This be an addled translator, why would anyone reckon this be the most fabulous idea in the history o' mankind ever t' do somethin' like this, be unnecessary an' silly :v:
Shiver me timbers, I wonder if ye keep track o' the most translated phrases?
Well, my awful, awful interpreted language is actually going fairly well :v: [code]#Comment Fn void Hi Print ["Wooo Testtestets\n"] Print [30] End Fn int Main Print ["Test\n"] Print [300\n] Cf Hi [] End[/code] Gives you: Test 300 Wooo Testtestets 30 There are no return types that actually do anything, and i need to crack on with function arguments and variables
If the graphics on geel9's game be fine, maybe even 3d then with a whole bucket o' polish he could actually sell it as a music game. Gentlemen o' fortune love that stuff.
Working on a programming language using some concepts which I think are nice. So far I've got infix to RPN parsing done and a lot of other stuff that should make the rest easier to do. Nothing to show yet but a boring <random infix string> to <resulting RPN> so I won't bother with that. Also, the RPN converter doesn't use shunting yard but some other algorithm I thought up my self.
[QUOTE=Darwin226;28669257]Working on a programming language using some concepts which I think are nice. So far I've got infix to RPN parsing done and a lot of other stuff that should make the rest easier to do. Nothing to show yet but a boring <random infix string> to <resulting RPN> so I won't bother with that. Also, the RPN converter doesn't use shunting yard but some other algorithm I thought up my self.[/QUOTE] What kind of algorithm?
What perfect timing. I just got back from spring break (And a week without internet!), having worked on my own interpreted language on the plane, only to see that everyone else is making one too! [code] >>(if (eqv? (car '(5 3 2)) 5) "Yay" ":(") "Yay" >>(cons "Head of the list!" (if (eqv? "Pirates!" "Ninjas!") "Pirates are Ninjas!" (cdr '(5 1 2)))) ("Head of the list!" 1 2) [/code] [editline]18th March 2011[/editline] [QUOTE=Darwin226;28601951][img_thumb]http://i51.tinypic.com/2133uiu.png[/img_thumb] Freakin' tokenizer....[/QUOTE] Just noticed this post as I was skimming the past week. You might not be willing to erase all of your work, but if I were you I would take this opportunity to use higher-order functions! Instead of making a billion separate classes for every single operator, I would instead make some sort of binaryOperator method, which accepts a function and two arguments. In my own code, I have something that looks somewhat like this: binaryOp op a b = ... You could then pass the function any function which takes two arguments, and it would work. I'm not sure how C-Sharp handles things like this, since I despise non-esoteric programming languages with a fiery passion, though. On it's own, this isn't terribly useful, but with a little more work you can get it to do some cool things. In my own code this ends up simplifying things to the point that I can call nearly any operator with any arbitrary number of arguments, and it would fold over the list and apply them all in sequence. For example, if I did: (* 1 5 3 7 3) It would be the equivalent of: (1 * 5 * 3 * 7 * 3)
Tried making my own graphics for the platformer that I'm making, still programmer art, but its better then before : [img]http://i.cubeupload.com/EGIAYA.png[/img]
Hey it's tiling! that is good for a starter.
This is programming related. I've been working on a mod for minecraft called FishMod. I just released the first version here: [url]http://www.facepunch.com/threads/1066516-Fishmod-Concept-for-a-new-mod[/url]. I know a bunch of you like minecraft (and as I've also noted a lot don't). But maybe you could give it a go and tell me if it works and any feedback.
[QUOTE=quincy18;28671688]Tried making my own graphics for the platformer that I'm making, still programmer art, but its better then before : [img_thumb]http://i.cubeupload.com/EGIAYA.png[/img_thumb][/QUOTE] [img]http://localhostr.com/files/XRI0mw3/dirt_grass.png[/img] [img]http://localhostr.com/files/VhPWLqp/dirt.png[/img] [img]http://localhostr.com/files/t3XR5IU/stone.png[/img] I ended up not using these, you could use them non monochromatic placeholders :v:
[del]Got a neat suggestion to add Google TTS ...[/del] Got a neat suggestion t' add Google TTS, which I be doin' these days ('tis an easy api). Also goin' t' overhaul some o' the translation methods another time! [QUOTE=commander204;28668930]Shiver me timbers, I wonder if ye keep track o' the most translated phrases?[/QUOTE] Here be a smatterin' of the most seen words: [code]hello - 24 like - 11 fuck - 10 there - 8 go - 6 want - 5 anyone - 5 that - 5 translator - 5[/code] The top entries be not surprisin'. Neither be the top phrases: [code] hello - 9 hi - 5 boo - 2 hai - 2 hello mate - 2 how are you - 2 lol - 2[/code]
[media]http://www.youtube.com/watch?v=ZzMXMvNBryQ[/media] Fire now does fire things. (On an unrelated note, the youtube tag suggestions recommended "high speed hunting" for this video)
Kinda reminds me of SimCity 95
[QUOTE=iNova;28672486][img_thumb]http://localhostr.com/files/XRI0mw3/dirt_grass.png[/img_thumb] [img_thumb]http://localhostr.com/files/VhPWLqp/dirt.png[/img_thumb] [img_thumb]http://localhostr.com/files/t3XR5IU/stone.png[/img_thumb] I ended up not using these, you could use them non monochromatic placeholders :v:[/QUOTE] Nahh, going to keep this, going for the hand drawn look. thanks anyway
[QUOTE=CarlBooth;28674014]Kinda reminds me of SimCity 95[/QUOTE] Reminds me of Sim City for the SNES. Where you can choose one on the scenarios, and of course not do them because there's a perfectly big city to start a plane crash in.
Tried my hand at a falling sand thingie, mainly to see if I could do it, and to see how JavaScript and Canvas would perform. [url]http://alexturpin.net/sand/[/url] (Only works in Chrome and Safari) [url=http://alexturpin.net/sand/][img]http://dl.dropbox.com/u/3310651/sand.png[/img][/url]
Also works on Safari.
[QUOTE=Irtimid;28673792][media]http://www.youtube.com/watch?v=ZzMXMvNBryQ[/media] Fire now does fire things. (On an unrelated note, the youtube tag suggestions recommended "high speed hunting" for this video)[/QUOTE] You should have a wind direction or something, and make the fire to move mostly in that direction. I reckon that would look amazing.
ProgresssSSsSSSss [img]http://f.anyhub.net/2bWs[/img]
Someone should try to remake this, without the Call of Duty elements obviously. [media]http://www.youtube.com/watch?v=KBb9wFP7uZM[/media] It puzzles me how that took 60 hours to render.
[QUOTE=Overv;28669682]What kind of algorithm?[/QUOTE] I didn't read too much into shunting yard but it might work similarly. Every part of the infix string is turned into a Token, a token can either be an operator or an expression and an expression can be literal or an identifier. An expression holds a list of tokens (some of which may as well be expressions) So to parse it first do a sweep to box all the brackets into expressions (filled with the content inside of them) from the inner-most ones to the outer. Then I do ToRPN for each of those expressions as I make them which goes through the token list looking for operators from the ones with most precedence to the ones with the least. When it finds one, it takes the operator and 2 surrounding expressions and swaps them around into RPN form (with unary operators being a special case) It probably slower than shunting yard but I don't think it's by much. Besides, that only needs to be done once and having that expression form I described will make my life much easier when I get to implementing stuff I was thinking about.
[QUOTE=polkm;28675033]ProgresssSSsSSSss [img_thumb]http://f.anyhub.net/2bWs[/img_thumb][/QUOTE] Wheres the ProfresssssSSSSsssSSss on this? [img]http://f.anyhub.net/-JY[/img]
[QUOTE=Richy19;28675178]Wheres the ProfresssssSSSSsssSSss on this? [img_thumb]http://f.anyhub.net/-JY[/img_thumb][/QUOTE] That project actually looked very interesting.
[QUOTE=Darwin226;28675124]I didn't read too much into shunting yard but it might work similarly. Every part of the infix string is turned into a Token, a token can either be an operator or an expression and an expression can be literal or an identifier. An expression holds a list of tokens (some of which may as well be expressions) So to parse it first do a sweep to box all the brackets into expressions (filled with the content inside of them) from the inner-most ones to the outer. Then I do ToRPN for each of those expressions as I make them which goes through the token list looking for operators from the ones with most precedence to the ones with the least. When it finds one, it takes the operator and 2 surrounding expressions and swaps them around into RPN form (with unary operators being a special case) It probably slower than shunting yard but I don't think it's by much. Besides, that only needs to be done once and having that expression form I described will make my life much easier when I get to implementing stuff I was thinking about.[/QUOTE] It sounds like you are constructing an abstract syntax tree.
Oh am I? Cool :D I'm currently making expressions with no inner expressions or identifiers solve them selves immediately so if you have something like a *= 5 + 2 it will turn into a *= 7
[QUOTE=Richy19;28675178]Wheres the ProfresssssSSSSsssSSss on this? [img_thumb]http://f.anyhub.net/-JY[/img_thumb][/QUOTE] That project was made in xna, and there is nothing wrong with that except it looked like if I wanted to ever get a job programming I need to be strong in c++. The current state of the game is kinda a mess so I would like to reprogram the majority of it. I feel pretty bad for leaving one of my projects in the cold like that, but I just can't hold my self back by working in an environmental that I am no longer challenged by. I would like to do a port from xna to c++ and opengl soonish, but for now I'm under the spell of 3d stufff. I hope you guys can get as excited for my current project once I start posting more interesting stuff. I will be satisfying a particular obsession of mine in this game. (reinventing the rpg wheel)
[QUOTE=Darwin226;28675443]Oh am I? Cool :D I'm currently making expressions with no inner expressions or identifiers solve them selves immediately so if you have something like a *= 5 + 2 it will turn into a *= 7[/QUOTE] I'm not entirely sure, since I could be misinterpreting what you said you were doing, but it sounded like you were constructing some sort of recursive data structure, with operators as terminal nodes. It probably isn't explicitly an abstract syntax tree if you aren't consciously parsing it that way, but it sounds similar.
Sorry, you need to Log In to post a reply to this thread.