• What are you working on? v19
    6,590 replies, posted
[QUOTE=Map in a box;31907529]theres an IRC programmers chat afaik[/QUOTE] No one uses it :(
[media]http://www.youtube.com/watch?v=7W_lNS5882I[/media] Every entity now has a "timeline" object assigned to it. You can use it to create simple scripts with these commands: *Wait x frames *Execute x action *Goto x command *Goto x command if y condition is true, otherwise goto z command
Shiny! [editline]23rd August 2011[/editline] But what are you recording it with that saves it as a wmv?
[QUOTE=Map in a box;31907748]Shiny! [editline]23rd August 2011[/editline] But what are you recording it with that saves it as a wmv?[/QUOTE] Recorded with Camstudio, processed with Sony Vegas.
[QUOTE=SupahVee;31907839]Recorded with Camstudio[/QUOTE] What codec do you use?
[QUOTE=Richy19;31903330]What library do you use?[/QUOTE] JsonCpp works well.
[QUOTE=jalb;31907874]What codec do you use?[/QUOTE] Microsoft Video 1 :v: I convert it to .wmv with Sony Vegas
[QUOTE=Map in a box;31907474]Offset the text drawing position and clip the rest out? [editline]23rd August 2011[/editline] I have a textWidth int,(because when the font maker said monospaced, he lied), what could I do with that?[/QUOTE] Anyone?
Hey, guess what? I started on C++ today. This was the first thing,(past Hello World), that I made with it. It gets an input, then draws that many cycles of a sine wave. It can do decimals. [code] #include <iostream> #include "windows.h" //for "Sleep" #include "math.h" //for "sin" #define PI 3.14159 using namespace std; int main() { int i, ii; double sin_output,number_of_cycles; cout <<"How many cycles? (non-int's are ok): "; cin >> number_of_cycles; number_of_cycles *= 78; for(i=0;i<number_of_cycles+1;i++) { sin_output = (PI/39); sin_output *= i; sin_output = sin(sin_output); sin_output *= 39; sin_output += 39; for(ii=0;ii<(sin_output);ii++) { cout <<" "; } cout <<"0\n"; Sleep(10); } //return 0; } [/code] [img_thumb]http://img829.imageshack.us/img829/8007/csinwave.png[/img_thumb] (thumb'd) I feel all accomplished and stuff.
yay for marmalade, i like it so far
[QUOTE=chimitos;31908783]Hey, guess what? I started on C++ today. This was the first thing ,(past Hello World), that I made with it. It gets an input, then draws that many cycles of a sine wave. It can do decimals. [code] #include <iostream> #include "windows.h" //for "Sleep" #include "math.h" //for "sin" #define PI 3.14159 using namespace std; int main() { int i, ii; double sin_output,pi_i,number_of_cycles; cout <<"How many cycles? (non-int's are ok): "; cin >> number_of_cycles; number_of_cycles *= 78; for(i=0;i<number_of_cycles+1;i++) { pi_i = (PI/39); pi_i *= i; sin_output = pi_i; sin_output = sin(sin_output); sin_output *= 39; sin_output = sin_output + 39; for(ii=0;ii<(sin_output);ii++) { cout <<" "; } cout <<"0\n"; Sleep(10); } return 0; }[/code] [img_thumb]http://img829.imageshack.us/img829/8007/csinwave.png[/img_thumb] (thumb'd) I feel all accomplished and stuff.[/QUOTE] Rather than defining pi, it is defined in cmath as M_PI.
[QUOTE=COBRAa;31909184]Rather than defining pi, it is defined in cmath as M_PI.[/QUOTE] [URL="http://msdn.microsoft.com/en-us/library/4hwaceh6(v=vs.80).aspx"]"The "Math Constants" are not defined in Standard C/C++. Therefore, in order to use them, you have to first define _USE_MATH_DEFINES and then include cmath or math.h ... "[/URL]
What is the programmers irc on freenode? #fpcoders?
[IMG]http://i55.tinypic.com/2sakvtu.jpg[/IMG] What you can see here is my latest creation. It loads .CS files as scripts, compiles them at runtime and runs them. This is intended to be part of a game. Like LUA for Gmod or WoW this is intended to provide user customization, but with more speed. Feature list: - Namespace whitelisting - Very easy "ScriptAPI" extensibility and "binding" - Theoretical support for all .NET languages (not just C#) - Automatic script reloading at runtime [B]with member fields / values preserved after reloading![/B] [I](as far as possible)[/I] Any more ideas for features you'd like to see? (Or important namespaces?) I'd really like to hear you ideas guys. edit: Just in case it isn't obvious, the background part is the script.
mostly done porting to marmalade. here's an ARM build running in marmalade's emulator [img]http://i.imgur.com/jZQht.png[/img] it seems to have some sort of bug in box2d that doesn't occur in the x86 build which makes me think it's some sort of floating point issue [editline]24th August 2011[/editline] oh and blurry text for the win :eng99: [editline]24th August 2011[/editline] i got rid of the b2IsValid() calls and it magically works.......so much for checking for validity :v:
[QUOTE=icantread49;31911030]mostly done porting to marmalade. here's an ARM build running in marmalade's emulator [img]http://i.imgur.com/jZQht.png[/img] it seems to have some sort of bug in box2d that doesn't occur in the x86 build which makes me think it's some sort of floating point issue [editline]24th August 2011[/editline] oh and blurry text for the win :eng99: [editline]24th August 2011[/editline] i got rid of the b2IsValid() calls and it magically works.......so much for checking for validity :v:[/QUOTE] Marmalade master race, please. High five, mate.
oh hey it Just Works in the android emulator [img]http://i.imgur.com/YUaYJ.png[/img] until, of course, the textures decide to disappear :v: [img]http://i.imgur.com/Eb72j.png[/img] [editline]24th August 2011[/editline] alright i'm done for today, it's 1:16 :v:
[QUOTE=DevBug;31909588][URL="http://msdn.microsoft.com/en-us/library/4hwaceh6(v=vs.80).aspx"]"The "Math Constants" are not defined in Standard C/C++. Therefore, in order to use them, you have to first define _USE_MATH_DEFINES and then include cmath or math.h ... "[/URL][/QUOTE] Why is this getting rated dumb? It's a valid concern.
[QUOTE=Felheart;31910547][IMG]http://i55.tinypic.com/2sakvtu.jpg[/IMG] What you can see here is my latest creation. It loads .CS files as scripts, compiles them at runtime and runs them. This is intended to be part of a game. Like LUA for Gmod or WoW this is intended to provide user customization, but with more speed. Feature list: - Namespace whitelisting - Very easy "ScriptAPI" extensibility and "binding" - Theoretical support for all .NET languages (not just C#) - Automatic script reloading at runtime [B]with member fields / values preserved after reloading![/B] [I](as far as possible)[/I] Any more ideas for features you'd like to see? (Or important namespaces?) I'd really like to hear you ideas guys. edit: Just in case it isn't obvious, the background part is the script.[/QUOTE] I love your colour scheme, its so easy on the eyes.
[QUOTE=reevezy67;31912151]I love your colour scheme, its so easy on the eyes.[/QUOTE] Yeah it's really good. Sons of Obsidian from this site: [url]http://studiostyl.es/[/url]
[QUOTE=Felheart;31912415]Yeah it's really good. Sons of Obsidian from this site: [url]http://studiostyl.es/[/url][/QUOTE] Cool thanks, saves the effort of having to do it manually.
Made GWEN so it can read the colours from textures. Making it so you can define the colours of button text etc using just the skin texture(!) [img]https://gwen.googlecode.com/svn/wiki/WithNewSkin.png[/img] [img]https://gwen.googlecode.com/svn/trunk/trunk/gwen/bin/DefaultSkin.png[/img]
Sometimes I wish I had more RAM and VRAM
Sometimes I wish people would join the superior big endian race.
[QUOTE=Jookia;31913907]Sometimes I wish people would join the superior big endian race.[/QUOTE] [cpp] unsigned int Answer = 42; unsigned char *pAnswer; pAnswer = (unsigned char *)&Answer; cout << *pAnswer; // little endian: OK // big endian: oh shi- [/cpp]
[QUOTE=q3k;31914097][cpp] unsigned int Answer = 42; unsigned char *pAnswer; pAnswer = (unsigned char *)&Answer; cout << *pAnswer; // little endian: OK // big endian: oh shi- [/cpp][/QUOTE] Who would've thought that undefined behaviour doesn't work in some situations?!
[QUOTE=Jookia;31914297]Who would've thought that undefined behaviour doesn't work in some situations?![/QUOTE] It is defined (by definition :v:) on little endian platforms, and it's hella more useful than getting the MSB.
[QUOTE=Jookia;31914297]Who would've thought that undefined behaviour doesn't work in some situations?![/QUOTE]It's only undefined behavior because it doesn't work on your silly big endian.
I considered using the word 'unsafe' instead of 'undefined', but it didn't cross me that C was a platform-dependent language. I dunno, I guess I find it better to write memory forwards instead of backwards, having the most significant bit at the start of memory.
It actually would be nice if big-endian became prevalent. It would simplify networking a bit.
Sorry, you need to Log In to post a reply to this thread.