• What are you working on? v16
    5,004 replies, posted
Looks great, Ducky. How is the procedural generation done, assuming it is? A fractal or something a bit more specific?
[QUOTE=Activeellis;28261374]What are you making this in?[/QUOTE] Ii think he said it was LOVE
I thought he was making it in C++ with SFML.
[QUOTE=knighty;28261474]Looks great, Ducky. How is the procedural generation done, assuming it is? A fractal or something a bit more specific?[/QUOTE] Perlin noise. Couldn't get my head around fractals. :v: It's probably not as good as would be with fractal generation but it's good enough. [QUOTE=Richy19;28261508]Ii think he said it was LOVE[/QUOTE] Nope. C++ and SDL. :v: [editline]24th February 2011[/editline] [QUOTE=ZenX2;28261821]I thought he was making it in C++ with SFML.[/QUOTE] Close. Heh.
Intro for my game. it's so ~artistic~~~~! [media]http://www.youtube.com/watch?v=I1dj5rwjHeY[/media]
[URL=http://www.sontrak.com/index.html]Logic Friday[/URL] Found this nifty freeware tool via a page in Wikipedia, while reading about Espresso (not coffee). It takes a truth table, an equation or even a gate diagram and does awesome magic with it.
But today is thursday :ohdear:
[QUOTE=BlkDucky;28261859]Perlin noise. Couldn't get my head around fractals. :v: It's probably not as good as would be with fractal generation but it's good enough. Nope. C++ and SDL. :v: [editline]24th February 2011[/editline] Close. Heh.[/QUOTE] Thank you! :buddy:
[QUOTE=Spoco;28262216][URL=http://www.sontrak.com/index.html]Logic Friday[/URL] Found this nifty freeware tool via a page in Wikipedia, while reading about Espresso (not coffee). It takes a truth table, an equation or even a gate diagram and does awesome magic with it.[/QUOTE] Odd, as I was reading this post while drinking espresso. This would have been useful last semester, when I was trying to get my head around boolean logic.
[QUOTE=Spoco;28262216][URL=http://www.sontrak.com/index.html]Logic Friday[/URL] Found this nifty freeware tool via a page in Wikipedia, while reading about Espresso (not coffee). It takes a truth table, an equation or even a gate diagram and does awesome magic with it.[/QUOTE] [url]http://ozark.hendrix.edu/~burch/logisim/[/url] Logisim can also turn truth tables into circuits.
A question, Is there many big game engines out there for java? Seems like all of them is written in c/cpp
[QUOTE=Spoco;28258310][url=http://www.allaboutcircuits.com/vol_4/chpt_7/9.html]Sum-Of-Products / Product-Of-Sums[/url] You're going to have to simplify the resulting expression though.[/QUOTE] Thanks. The Wikipedia page on [url=http://en.wikipedia.org/wiki/Canonical_form_(Boolean_algebra)]canonical form[/url] is also useful to check if anyone else is interested. [img]http://img190.imageshack.us/img190/4006/truths.png[/img] (The rest of the truth table is expected to follow a specific pattern, therefore the "truths" only contains the results)
[QUOTE=likesoursugar;28263811]A question, Is there many big game engines out there for java? Seems like all of them is written in c/cpp[/QUOTE] I haven't used any of those yet: [url]http://jogre.sourceforge.net/main.htm[/url] [url]http://bytonic.de/html/jake2.html[/url] [url]http://ardor3d.com/[/url] [url]http://jmonkeyengine.com/[/url] But if you don't want a complete game engine, but something more like SFML then get [url=http://slick.cokeandcode.com/]Slick[/url]. It's awesome.
I have a question, and some content. First, the question. How easy/hard would it be to have some sort of scripting language with java (Lua? *hopeful)? I would like to do something like what garry does with hooks. Register a function to be called when a specific thing happens (player moves, chats, breaks block, spawns etc) and then call that function when that thing happens. This is more of a java question than a minecraft question, but here's my content. [img_thumb]http://dl.dropbox.com/u/5270951/Pics/Screenshot-111.png[/img_thumb] Oops, how do I do spoilers?
[QUOTE=Overv;28260638]I don't know how you do it, but for some reason that looks quite sexy.[/QUOTE] My best wild guess is a simple perlin noise, and then kinda use the value as some sort of heightmap, then, depending on the height make it water, shore, grass or mountain. I like how something so simple (if I'm right) looks so awesome!
[QUOTE=DrLuke;28266128]My best wild guess is a simple perlin noise, and then kinda use the value as some sort of heightmap, then, depending on the height make it water, shore, grass or mountain. I like how something so simple (if I'm right) looks so awesome![/QUOTE] Exactly right, yeah.
[QUOTE=DrLuke;28266128]My best wild guess is a simple perlin noise, and then kinda use the value as some sort of heightmap, then, depending on the height make it water, shore, grass or mountain. I like how something so simple (if I'm right) looks so awesome![/QUOTE] -snip- Slowpunch. :saddowns:
[QUOTE=bobthe2lol;28265993]I have a question, and some content. First, the question. How easy/hard would it be to have some sort of scripting language with java (Lua? *hopeful)? I would like to do something like what garry does with hooks. Register a function to be called when a specific thing happens (player moves, chats, breaks block, spawns etc) and then call that function when that thing happens. This is more of a java question than a minecraft question, but here's my content. [img_thumb]http://dl.dropbox.com/u/5270951/Pics/Screenshot-111.png[/img_thumb] Oops, how do I do spoilers?[/QUOTE] I've done it with C++ but not with java. Just register a hook function you have in c++ to lua (I use luabind) that registers your lua function to a std::map No idea how std maps or something similar works in java
[QUOTE=AtomiC0l;28266317]I've done it with C++ but not with java. Just register a hook function you have in c++ to lua (I use luabind) that registers your lua function to a std::map[/QUOTE] No, java has nothing like it. It seems that there are things that allow lua, or python, or some other language to do what i'm trying to do with java, but not the other way around :saddowns:
Use something like LuaJava and implement the hooks yourself.
[QUOTE=ThePuska;28256831]Is there a simple algorithm for creating Boolean functions from truth tables? I mean, given [code]a1 a0 result 1 1 1 1 0 0 0 1 0 0 0 1[/code] It'd return !(a1 xor a0) or the equivalent in some notation (Polish, infix, doesn't matter)[/QUOTE] Isn't simple but Karnaugh maps work very well but are hard to implement. [img]http://dl.dropbox.com/u/3715122/BooleanProject.PNG[/img] Basically a karnaugh map is a two dimensional grid version of the truth table which makes it easy to spot patterns in the 1s. [url]http://www.allaboutcircuits.com/vol_4/chpt_8/5.html[/url] [url]http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karrules.html[/url] Read those for more info :) Oh I saw you found Espresso. Never mind then!
[QUOTE=q3k;28210651][url=https://github.com/SergeB/Cucumber]Interrupts![/url] Next up, testing whether IRQ works and writing a simple 8042 PS/2 driver. [url=http://i.imgur.com/AUxQg.png][img_thumb]http://i.imgur.com/AUxQgl.png[/img_thumb][/url][/QUOTE] Is that xmonad? If so, can I have your configuration files?
[QUOTE=spear;28255697][img_thumb]http://i.imgur.com/mD2eC.png[/img_thumb] Voila! No dead ends! :buddy:[/QUOTE] How did you do this? I've been pulling my hairs out trying to figure out how to generate something legible.
I just figured out that using a List<SubElement> for xsd.exe serialization wouldn't work properly, despite it working just fine for deserialization. Instead I cut out the TileRow tag and went straight to a 1d array of tiles with x and y attributes in the Tileset tag. Then I convert from a 1d array to a 2d array using the index: [i * x + j] where i and j are local variables used in a for loop and x is the width of the tileset in number of tiles. Now I just need to tell my friend whose doing the parsing in-game with a pull parser to make a few minor changes. [editline]24th February 2011[/editline] oh nice, filesize dropped from 17.6kb to 10.3kb for a 17x17 tileset and 15 entities, and it seems to be deserializing much quicker.
Taught myself STL containers to keep track of the entities on the map and it makes me wonder why I haven't used them before hand.
I think C# has derped; it thinks that (Pi * 2) / (.1) == Infinity. :what:
[QUOTE=ZenX2;28272718]I think C# has derped; it thinks that (Pi * 2) / (.1) == Infinity. :what:[/QUOTE] Regardless, simplify: (PI * 2) * 10
Yeah, late night programming and throwing together math from wikipedia is never a simple matter.
[QUOTE=DevBug;28272810]Regardless, simplify: (PI * 2) * 10[/QUOTE] but ... PI * 20
[QUOTE=polkm;28272901]but ... PI * 20[/QUOTE] The compiler would most likely optimize that out but it might not catch the division. Though any respectable compiler should optimize constant divisions.
Sorry, you need to Log In to post a reply to this thread.