Ok, fixed that. Couldn't see it on my screen, colours look too close. Though I checked the code and found a slight difference in the colour of dark green :)
When I maximise the the window (16:10 1440x900) the game cursor doesn't align with my real cursor properly. When I move to the top left of the screen it'll match up, but the further towards the bottom right I move, the more the two become further apart.
[QUOTE=MADmarine;16813753]When I maximise the the window (16:10 1440x900) the game cursor doesn't align with my real cursor properly. When I move to the top left of the screen it'll match up, but the further towards the bottom right I move, the more the two become further apart.[/QUOTE]
That's SFML breaking, I didn't code it with intention to allow it to be maximised, and when you do; the scene is stretched but the coordinates are still relative to the origin of the screen. I'll see what I can do about finding the scale of the scene and translating coordinates properly.
[img]http://imgkk.com/i/pNqzTO.png[/img]
Where's the light coming from? :psyduck:
Now that I have started school I found out that there are programming classes that I can take, C++ and other things. Gonna be great! Finally I'll be able to do things. :v:
I just fixed a nasty bug that caused everything in windowed mode to flicker in my simple Java 2D graphics 'engine' and now I didn't only get rid of flickering graphics, it's running at 1000FPS instead of 43 now. :D
[QUOTE=Sippeangelo;16814066][img]http://imgkk.com/i/pNqzTO.png[/img]
Where's the light coming from? :psyduck:[/QUOTE]
I don't know why but I found this post absolutely hilarious.
[IMG]http://i17.photobucket.com/albums/b93/tezzanator/200809-1451.png[/IMG]
Getting somewhere...
My grid can zoom, and be transformed and all the game objects adhere to the grid, albeit with a bit of rounding error, but that's fixable, It's not too noticable anyway. :D
[QUOTE=Tezza1234;16814765]Getting somewhere...
My grid can zoom, and be transformed and all the game objects adhere to the grid, albeit with a bit of rounding error, but that's fixable, It's not too noticable anyway. :D[/QUOTE]
Can you please move those colours to the right a bit before i go freaking crazy
[QUOTE=r4nk_;16814871]Can you please move those colours to the right a bit before i go freaking crazy[/QUOTE]
i second this
[QUOTE=r4nk_;16814871]Can you please move those colours to the right a bit before i go freaking crazy[/QUOTE]
There's a Groupbox-esque thing to go in first, plus extra tools :p
That actually looks cooler than Guitar Hero
Personal News:
Re wrote the whole of my 2d Engine, its now more engine like with all sorts of shiz. Working on map loading at the moment. Previously every entity it added from the map was the same instance of the Tile class, fixed that by adding a name feature to the ent with a function that adds ents with a name+number. For some reason that fixed it. Overall the engine is faster and more elegant.
working on a parser
but I have a problem :(
i don't know how to fix it
Post the problem boy, no point just telling us fine gentlemen. Don't be shy tell Uncle Programming Forum.
Here you go
[quote=Me]
sorry I ask dumb questions...
I tried debugging, it sends me to the bracket under int main() and crtexe.h
I get this.. er.. thing when I run it:
[quote]Unhandled exception at 0x76e9b727 in stuff.exe: Microsoft C++ exception: std::out_of_range at memory location 0x003ef690..[/quote]
here's the code:
[cpp] void ParseFile(char* pFil)
{
std::fstream fil(pFil, std::fstream::in | std::fstream::out | std::fstream::trunc);
while(!fil.eof())
{
std::string sParse;
std::string line;
std::getline(fil, line);
sParse = line.substr(12, 64);
std::cout << sParse;
}
}
[/cpp]
[/quote]
[QUOTE=raccoon12;16818542]Here you go[/QUOTE]
Your problem was already answered, std::string::substr will fuck up if your string doesn't have at least 12 characters in it.
but I do have at least 12 characters
the file contains:
playername=tim
[QUOTE=raccoon12;16819241]but I do have at least 12 characters
the file contains:
playername=tim[/QUOTE]
Oh, sorry, I didn't notice you were using some messed up version of opening a stream.
"std::ifstream fil(pFil);" // Will work.
[url=http://www.cplusplus.com/reference/iostream/ios_base/openmode/]std::ios_base::trunc - ([b]trunc[/b]ate) Any current content is discarded, assuming a length of zero on opening.[/url]
Same thing gets thrown out. I hit f10 so I can debug but it brings me here:
[IMG]http://i31.tinypic.com/2052s5x.png[/IMG]
It works fine here. Either your file is empty, misplaced, or VS didn't take into account your changes to the code files. Try a full rebuild, make sure your file is properly loaded "assert(fil.is_open());".
Whoa! Thanks GParent
you are awesome
thanks for everyone else who tried
nothing that great but i've been messing around with php's gd extension, results:
[img]http://dl.getdropbox.com/u/790162/phpgd.png[/img]
a messed up calculation while trying to get the above to work:
[img]http://dl.getdropbox.com/u/790162/cool_result.png[/img]
[QUOTE=User.;16822257]nothing that great but i've been messing around with php's gd extension, results:
*img*
a messed up calculation while trying to get the above to work:
*img*[/QUOTE]
That looks great.
Cool User. How long did it take those to generate?
not very long at all, maybe 1/4 of a second, it's not as clever as it looks, here's the script:
[php]
<?php
$size = 800;
$img = imagecreatetruecolor($size, $size);
$white = imagecolorallocate($img, 255, 255, 255);
$blue = imagecolorallocate($img, 40, 180, 255);
$alpha = 0;
for ($i = 0; $i <= $size/2; $i+=8)
{
$shade = imagecolorallocatealpha($img, 40, 180, 255, round($alpha));
imageellipse($img, $size/2, $size/2, $i*1.5, $size*.75, $shade);
imageellipse($img, $size/2, $size/2, $size*.75, $i*1.5, $shade);
$alpha+=2.3;
}
header('content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
[/php]
still needs some tweaking, but it doesn't matter really
i'm terrible at maths
Very cool, how did you do that with GD. I've played around with it before but only a bit. I made some dynamic percentage bars with it: [IMG]http://img259.imageshack.us/img259/5976/percentage4.png[/IMG]
Other than that I only did what was in the book I use which was nothing fancy like that.
you can really do some crazy shit
[img]http://dl.getdropbox.com/u/790162/lol.png[/img]
[editline]12:24AM[/editline]
looks like etcher sketch lol
I think you mean Spirograph.
Sorry, you need to Log In to post a reply to this thread.