• What are you working on? V2
    2,001 replies, posted
[QUOTE=Spoco;16601732]Still you can't get for example different radix conversions or different precisions, with stringstream or lexical_cast so please keep 'em coming. [code] std::string mystring ("FPS: %i Timer: %.3f", iFps, fTimer); [/code] That would be ideal and I'm sure there's something exactly like this out there. Or do I have to write a class derived from std::string to add this constructor?[/QUOTE] stringstream can use the same stream modifiers you'd use with ostream or istream, such as fixed decimal precision.
I think I found what I wanted: [URL]http://www.codeproject.com/KB/string/string_format.aspx[/URL] That is so cool! The only downside is that it uses Windows API and is not portable, but I don't give a shit.
I recently released stable release 1.0.0 of my Lua IRC bot :D I'll write the documentation and then I'll make a thread about it. Stay tuned.
I'm currently working on a 2d particle system. Here are some screenshots: [img]https://photos-1.getdropbox.com/i/o/eLCrSMt2IfwMaUGfQ4QIxBjJE92iKXYWLbr1XrVuDF8[/img] [img]https://photos-1.getdropbox.com/i/o/VG_X1FEx9qda-uE7QeG02c2thBz3NoKHsixywRCS5e0[/img] The particle system is written in c++, ontop of DirectX. For the xml haters: The effects are saved in xml files :v: Now I start working at a new jump&run...
I'm currently re-learning how to use SDL in C++ (lazyfoo tutorials, any other suggestions?) I want to make some sort of gardening tycoon game (don't ask where I got that idea from, no clue at all) [QUOTE=Turd92;16597672]I've been working my way through Deitel's C++ How To Program Sixth Edition. I'm getting close to the end now, just finished their brief introduction to game programming with OGRE: [/QUOTE] Yeah I have that book too. It's my C++ bible until something better shows up, early intro to OOP is perfect and easy to digest. I should continue working through it sometime...
[QUOTE=Fox32;16603496]I'm currently working on a 2d particle system. Here are some screenshots: [img]https://photos-1.getdropbox.com/i/o/eLCrSMt2IfwMaUGfQ4QIxBjJE92iKXYWLbr1XrVuDF8[/img] [img]https://photos-1.getdropbox.com/i/o/VG_X1FEx9qda-uE7QeG02c2thBz3NoKHsixywRCS5e0[/img] The particle system is written in c++, ontop of DirectX. For the xml haters: The effects are saved in xml files :v: Now I start working at a new jump&run...[/QUOTE] Thats really cool.
Just learned how to hotload DLLs like Garry's botch, though there's one thing I still don't get. Why can't it find the function if I remove the the extern "C"? [cpp]#include <iostream> #ifdef __cplusplus extern "C" { #endif __declspec( dllexport ) int __cdecl add( int a, int b ) { return a + b; } __declspec ( dllexport ) void __cdecl printTxt( const char* txt ) { std::cout << txt << std::endl; } #ifdef __cplusplus } #endif[/cpp] [cpp]#include <iostream> #include "Windows.h" typedef int ( __cdecl *procAdd ) ( int, int ); typedef void ( __cdecl *procPrint ) ( const char* ); // Comfortable print function void print( const char* txt ) { std::cout << txt << std::endl; } int main( ) { // Variables HMODULE dll; procAdd func; procPrint func2; int a = 9; int b = 3; int c; print( "Loading DLL..." ); dll = LoadLibrary( L"SimpleDLL.dll" ); if ( dll ) { print( "Succesfully loaded the DLL!" ); func = (procAdd)GetProcAddress( dll, "add" ); func2 = (procPrint)GetProcAddress( dll, "printTxt" ); if ( func && func2 ) { print( "Succesfully retrieved the functions!" ); c = (func) ( a, b ); std::cout << a << " + " << b << " = " << c << std::endl; (func2) ("Also printed a message using the printTxt function, retrieved from the DLL!"); } else { print( "Failed to retrieve one or both of the functions!" ); std::cout << "Error code: " << GetLastError( ) << std::endl; } FreeLibrary( dll ); } else { print( "Failed to load the DLL!" ); std::cout << "Error code: " << GetLastError( ) << std::endl; } std::cin.get( ); return 0; }[/cpp]
Because C++ linking mangles the names, while C linking does not (thus the extern "C")
I'm finally learning GUIs. :P Using awt/swing with Java. At least XCode rocks as an IDE.
[QUOTE=Kat of Night;16604957]I'm finally learning GUIs. :P Using awt/swing with Java. At least XCode rocks as an IDE.[/QUOTE] Swing is awesome. Once you understand everything, it's so easy to make really nice GUIs.
Made pretty much this whole site today. [url]http://jallenbah.co.uk/index.html[/url] Started on the aquarium section: [url]http://jallenbah.co.uk/fish.html[/url] You will notice Game / Software Development, Game Content Development and Other Stuff don't exist yet. Everything else does. Have a look! :D I'm a noob at web dev - comments much appreciated.
I like the design, except the greenish background. It doesn't fit in the orange-gray theme.
[QUOTE=Jallen;16606514]Made pretty much this whole site today. [url]http://jallenbah.co.uk/index.html[/url] Started on the aquarium section: [url]http://jallenbah.co.uk/fish.html[/url] You will notice Game / Software Development, Game Content Development and Other Stuff don't exist yet. Everything else does. Have a look! :D I'm a noob at web dev - comments much appreciated.[/QUOTE] It's nice, although the green is a little odd. Your host sucks though - They put adverts instead of your 404 pages.
[QUOTE=Catdaemon;16606760]It's nice, although the green is a little odd. Your host sucks though - They put adverts instead of your 404 pages.[/QUOTE] Yeah, I don't like that, but I like what they offer for free. It's just a free host right now, I might get a paid one some time in the future.
[QUOTE=Overv;16604755]Just learned how to hotload DLLs like Garry's botch, though there's one thing I still don't get. Why can't it find the function if I remove the the extern "C"? [/QUOTE] That's not hotloading. That is dynamic linking without an import library. Or well more precisely you're missing the "hot" part there, where you watch the DLL file and when it gets recompiled, you reload it and all the function pointers.
[QUOTE=Jallen;16606514]Made pretty much this whole site today. [url]http://jallenbah.co.uk/index.html[/url] Started on the aquarium section: [url]http://jallenbah.co.uk/fish.html[/url] You will notice Game / Software Development, Game Content Development and Other Stuff don't exist yet. Everything else does. Have a look! :D I'm a noob at web dev - comments much appreciated.[/QUOTE] It really is good man. Can't complain on anything except for the about page. I dunno seems weird about rambling on about your atheism. Don't get me wrong I am a fellow atheist too but it seems weird to me.
Translating a wordpress theme. I found a good theme but the fag decided not to stick with Wordpress standards so it gets automatically translated ughhh
[QUOTE=Teh Rar File;16607627]It really is good man. Can't complain on anything except for the about page. I dunno seems weird about rambling on about your atheism. Don't get me wrong I am a fellow atheist too but it seems weird to me.[/QUOTE] Yeah, got kind of carried away trying to explain my position on that, I'll edit it a bit and cut it down. Thanks :)
[QUOTE=Jallen;16608072]Yeah, got kind of carried away trying to explain my position on that, I'll edit it a bit and cut it down. Thanks :)[/QUOTE] Also another suggestion, maybe add a minimum height to each page so pages with less content aren't so short.
[img]http://davidjokinen.com/GameAlpha5.png[/img] now you can zoom in and out. Also added fog(its in the options menu to turn it on and off). Fixed a lot of random bugs. Link to play/try: [url]http://davidjokinen.com/play.php[/url]
Cool man, reminds me of those good old isometric RTS's Maybe add a slight delay or something to the scrolling so I don't shoot to one direction when my mouse comes close to the edge like (if mouse is on edge longer than 0.5 sec then move)
[QUOTE=Guru-guru;16611945][img]http://davidjokinen.com/GameAlpha5.png[/img] now you can zoom in and out. Also added fog(its in the options menu to turn it on and off). Fixed a lot of random bugs. Link to play/try: [url]http://davidjokinen.com/play.php[/url][/QUOTE] That is looking nice bro! Keep up the good work.
[QUOTE=Jallen;16606514]Made pretty much this whole site today. [url]http://jallenbah.co.uk/index.html[/url] Started on the aquarium section: [url]http://jallenbah.co.uk/fish.html[/url] You will notice Game / Software Development, Game Content Development and Other Stuff don't exist yet. Everything else does. Have a look! :D I'm a noob at web dev - comments much appreciated.[/QUOTE] Looks pretty good, although it doesn't quite show correctly on Opera: [img]http://filesmelt.com/downloader/Jweb.jpg[/img] Not a big thing, but if it's something easy to fix I thought I should mention it. One thing I would recommend to you though is that if you're considering using this website to showcase your portfolio to employers, remove the atheism bit. Although I share your viewpoint 100%, I think it puts you in a negative light by dedicating a large portion of space to describing how you don't get along with a set of people. In your degree I'd imagine you'd have been told how teamwork and personal skills are almost as important as your computer based skills, especially in games development, and you should put something down that reflects that. For example, if you code stuff with friends in group projects (I do, and it makes things a lot more fun if you all know what you're doing) that would be a fantastic thing to put down.
[QUOTE=MADmarine;16619752]Looks pretty good, although it doesn't quite show correctly on Opera: [img]http://filesmelt.com/downloader/Jweb.jpg[/img] Not a big thing, but if it's something easy to fix I thought I should mention it. One thing I would recommend to you though is that if you're considering using this website to showcase your portfolio to employers, remove the atheism bit. Although I share your viewpoint 100%, I think it puts you in a negative light by dedicating a large portion of space to describing how you don't get along with a set of people. In your degree I'd imagine you'd have been told how teamwork and personal skills are almost as important as your computer based skills, especially in games development, and you should put something down that reflects that. For example, if you code stuff with friends in group projects (I do, and it makes things a lot more fun if you all know what you're doing) that would be a fantastic thing to put down.[/QUOTE] It seems opera leaves bigger gaps before and after <hr /> :confused: I'm gona work on that about page now. I'm gona tweak the background colour from green since you guys said it looked wierd (I like it :( it might stay depending on how other colours look). Unfortunately I don't really have any friends who I could code with, well, I have one. I don't know why we never did a joint project. - Edited about page, will add some other relevant stuff to it, pictures and stuff - Added comical picture of one of my fish sucking on the glass to main page :3 Internet explorer isn't displaying my expand / hide boxes properly because it doesn't auto scale the parent div :flame: So I'm just going to put a Get Firefox thing on the home page. Done. If you are going to look at it you need to do a full refresh to get the updated style sheet. In firefox it's ctrl+f5
[QUOTE=Jallen;16620139]It seems opera leaves bigger gaps before and after <hr /> :confused: I'm gona work on that about page now. I'm gona tweak the background colour from green since you guys said it looked wierd (I like it :( it might stay depending on how other colours look). Unfortunately I don't really have any friends who I could code with, well, I have one. I don't know why we never did a joint project. - Edited about page, will add some other relevant stuff to it, pictures and stuff - Added comical picture of one of my fish sucking on the glass to main page :3 Internet explorer isn't displaying my expand / hide boxes properly because it doesn't auto scale the parent div :flame: So I'm just going to put a Get Firefox thing on the home page. Done. If you are going to look at it you need to do a full refresh to get the updated style sheet. In firefox it's ctrl+f5[/QUOTE] Don't use a "This site viewed best in <browser>" image on your site. It makes it seem like you're too lazy to make it cross-browser.
[img]http://www.cubeupload.com/files/536a00untitled.png[/img] I gave up and gave the host-bound functions global scope. Incredibly messy, and I can't get away with shoving things into a header file without putting the singletons-or-whatever-they-are in there, too. And then enscapulation decides to finish itself off in the middle of the night :argh:
Didn't we already have a discussion on how GameMonkey sucks?
[QUOTE=nullsquared;16624594]Didn't we already have a discussion on how GameMonkey sucks?[/QUOTE] We also probably had one on how Lua, C++, C, C#, Java and VB suck and I don't see people stop using those.
[QUOTE=Kat of Night;16623976]Don't use a "This site viewed best in <browser>" image on your site. It makes it seem like you're too lazy to make it cross-browser.[/QUOTE] I am too lazy to make it cross browser.
[QUOTE=gparent;16624623]We also probably had one on how Lua, C++, C, C#, Java and VB suck and I don't see people stop using those.[/QUOTE] But Lua, C++, C, and C# don't suck. Java, VB, and GameMonkey do.
Sorry, you need to Log In to post a reply to this thread.