• Programming - WAYWO - March 2013
    1,001 replies, posted
I'm starting to move my virtual machine to use floats instead of integer numbers because why not, and then I find out that C/C++ doesn't have fixed width floating point typedefs... Time to ignore any platform that uses different sized floats!
[QUOTE=redx475;39983963]I'm starting to move my virtual machine to use floats instead of integer numbers because why not, and then I find out that C/C++ doesn't have fixed width floating point typedefs... Time to ignore any platform that uses different sized floats![/QUOTE] It would make no sense to have fixed width floating point typedefs because there is no guarantee that enough hardware would support them to make it reasonable. [editline]21st March 2013[/editline] I mean, you can write fairly effective means of handling large integers even beyond the size the processor can handle with single opcodes, but floats pretty much need a FPU or separate float instruction set.
[QUOTE=esalaka;39983998]It would make no sense to have fixed width floating point typedefs because there is no guarantee that enough hardware would support them to make it reasonable. [editline]21st March 2013[/editline] I mean, you can write fairly effective means of handling large integers even beyond the size the processor can handle with single opcodes, but floats pretty much need a FPU or separate float instruction set.[/QUOTE] I understand why there aren't any fixed width floats, but it doesn't make my life any easier. Still, most computers seem to use 32 bit floats, and if I ever encounter otherwise (which I probably will at some point), I'll figure out a way around it. The main reason I need the fixed width is that I'm reading/writing files in binary.
Okay, so I'm in my JAVA class but right now its boring me alot with all the basic stuff, I think I learn better if I dive right in, whats a good starter project? Like making a picture in a window or something
[QUOTE=redx475;39984175]I understand why there aren't any fixed width floats, but it doesn't make my life any easier. Still, most computers seem to use 32 bit floats, and if I ever encounter otherwise (which I probably will at some point), I'll figure out a way around it. The main reason I need the fixed width is that I'm reading/writing files in binary.[/QUOTE] You could serialise the floats somehow, though. Like, store the mantissa and exponent as integers or sth and then load them in via m*exp(10, e) or however they're stored internally. [editline]21st March 2013[/editline] That exp was obviously supposed to be pow
[media]http://www.youtube.com/watch?v=_sHqaiCzHhA[/media] More fun with LOVE and 3d.
Working on a new GUI, might as well turn the game from cartoon-ish to modern-ish, imo it looks nice and clean. [IMG]http://puu.sh/2l9eL[/IMG] [IMG]http://puu.sh/2l9ey[/IMG]
Trying a new system for drawing my game objects, where each object has a draw method which calls a static DrawHelper class to do handle it. Wonder if that's shit design. This is to avoid having a lot of unrelated details about drawing in my game objects, but to allow you to call draw on an object without worrying about how to. Wait, so is that design called a component driven system?
Component system? Those things are confusing
[IMG]http://content.screencast.com/users/cartman300/folders/Jing/media/3905dbef-5b9d-40dd-8941-cd82813d49b3/2013-03-21_0207.png[/IMG] I've made a small swear word censoring tool and a few modes for it, it was a ten minute fun project. It censors out words similar to databased words.
[QUOTE=McDunkable;39985162][IMG]http://puu.sh/2l9ey[/IMG][/QUOTE] Change #6 to "a free man"
[QUOTE=esalaka;39985547]Change #6 to "a free man"[/QUOTE] And remove #3
And now a spoon: [media]http://www.youtube.com/watch?v=JNHFCzgjmls[/media]
[QUOTE=McDunkable;39985162][img]http://i.imgur.com/h9O7Bts.png[/img][/QUOTE] [t]http://i.imgur.com/As98QZL.jpg[/t]
[QUOTE=ShaunOfTheLive;39985919][t]http://i.imgur.com/As98QZL.jpg[/t][/QUOTE] [IMG]http://images3.wikia.nocookie.net/__cb20100214233660/knd/images/7/78/4shooter.jpg[/IMG]
My VM now deals exclusively in floating point numbers, except where it doesn't (which happens to be in a lot of places). [t]http://i.imgur.com/Q3tN0i6.png[/t] It takes a whole 10 lines to make this incredibly complex calculator (9 if you exclude the main label, though that may be required at some point, 8 if you combine the first two prints, 7 if you exclude the end, which should be inserted automatically by the assembler): [CODE] main: call print "A + B = ?" call print "A?" call readline call print "B?" call readline add concat "The answer is " ; Since I left out an argument, it pops one from the stack call print end [/CODE]
Decided to replace the eye bleed with low sat colours until I get some art assets. [IMG]http://i.imgur.com/WijAPX6.png[/IMG] [editline]21st March 2013[/editline] Also added a couple of editor features, selecting an object, deleting an object, undo, etc.
Hey, i made a demonstration video to go along with my resume as i have just finished my Bachelor of I.T. Unfortunately for me there isn't many development jobs where i live so i will have to make do with something else. Anyway i have made an updated video for my Chipboard program that uses my 2D java game library. I thought i would share it here. [video=youtube;g6THsqq2Rhw]http://www.youtube.com/watch?v=g6THsqq2Rhw&feature=youtu.be[/video]
[QUOTE=McDunkable;39985162] [IMG]http://puu.sh/2l9ey[/IMG][/QUOTE] Is the background moving or am I tripping balls? I swear I can see some animated noise in there.
[QUOTE=Dlaor-guy;39989126]Is the background moving or am I tripping balls? I swear I can see some animated noise in there.[/QUOTE] Fix your monitor settings and/or eyes.
I've been working on a magazine reload system for Ivan's Secrets [video=youtube;0ZJz1wqb-Iw]http://www.youtube.com/watch?v=0ZJz1wqb-Iw[/video] Each magazine is stored in your inventory as a seperate item, and contains its own bullet count and ammo type (damage, weight etc.). So after a firefight you can scavenge the empty magazines left over and refill them at a craftbench, or merge the magazines. Either way, it's interesting and adds a different mechanic to managing resources. Some examples of interesting stuff I can do with this: clear magazines (displaying your ammo count constantly), tracer magazines (tracer round loaded every 5 bullets?), more quanitity, subsonic ammunition, different ammo variants (penetration, splintering, weight).
Ragdoll demonstration/demolition! (Fixed the graphical glitches when recording too, and got a different program because fraps was sucky) [media]http://www.youtube.com/watch?v=QJdS2a3I2Ng&feature=youtu.be[/media] I didn't expect such an awesome response to my game, really, so I think I'm going to make a few more videos about different features and stuff. If you guys don't mind.
[QUOTE=JLea;39989408]I've been working on a magazine reload system for Ivan's Secrets [video=youtube;0ZJz1wqb-Iw]http://www.youtube.com/watch?v=0ZJz1wqb-Iw[/video] Each magazine is stored in your inventory as a seperate item, and contains its own bullet count and ammo type (damage, weight etc.). So after a firefight you can scavenge the empty magazines left over and refill them at a craftbench, or merge the magazines. Either way, it's interesting and adds a different mechanic to managing resources. Some examples of interesting stuff I can do with this: clear magazines (displaying your ammo count constantly), tracer magazines (tracer round loaded every 5 bullets?), more quanitity, subsonic ammunition, different ammo variants (penetration, splintering, weight).[/QUOTE] You should definitely add that it doesn't throw away your magazine unless it's empty, and rather add a way to throw it out in your inventory. You should also make it so that it picks the magazine with the most bullets in it when you reload.
Yeah a guy suggested holding R to toss your current magazine so I'll probably do that.
[QUOTE=JLea;39989713]Yeah a guy suggested holding R to toss your current magazine so I'll probably do that.[/QUOTE] Maybe you could do it so that just pressing R is slightly slower since it keep the old mag and holding R tosses it away? Iunno.
Maybe take a look at Receiver. I believe they (Wolfire) have good gun management
[QUOTE=chaz13;39989488]Ragdoll demonstration/demolition! (Fixed the graphical glitches when recording too, and got a different program because fraps was sucky) VIDEO I didn't expect such an awesome response to my game, really, so I think I'm going to make a few more videos about different features and stuff. If you guys don't mind.[/QUOTE] That's very impressive and polished! I wonder how have you implemented those nice explosion effects when a granade/bazooka explodes.
[QUOTE=bobiniki;39990772]That's very impressive and polished! I wonder how have you implemented those nice explosion effects when a granade/bazooka explodes.[/QUOTE] Thanks! There's the usual particles, smoke/explosion stuff and some sparks with additive blending. The shockwave is a a tiny bit more complicated, the screen is re-drawn twice, firstly to a buffer for all the effects to use/sample then a second time with the effects and stuff. The shockwaves are made of primitives like this: [IMG]http://i50.tinypic.com/2cihf9w.png[/IMG] Which have a texture sampled from the buffer at coordinates slightly different to the vertex positions. It's awesome because by changing the parameters such as the speed it grows, the size of the ring etc you get some really cool stuff. I have an effect ready for some sort of black hole gun soon. The forefields also use it to warp everything around the person using them, which I don't think has been shown in a video yet.
[QUOTE=Jawalt;39985704]And now a spoon: [media]http://www.youtube.com/watch?v=JNHFCzgjmls[/media][/QUOTE] This makes my penis very stiff, A++ By any chance are you able to apply simple textures?
[QUOTE=chaz13;39989488]Ragdoll demonstration/demolition! (Fixed the graphical glitches when recording too, and got a different program because fraps was sucky) I didn't expect such an awesome response to my game, really, so I think I'm going to make a few more videos about different features and stuff. If you guys don't mind.[/QUOTE] Box2D?
Sorry, you need to Log In to post a reply to this thread.