Jump to content

  • Log In with Google      Sign In   
  • Create Account


3H-GDC m.V: Something Special (winner: BeanDog)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
214 replies to this topic

#81 nagromo   Members   -  Reputation: 676

Posted 11 February 2006 - 07:29 AM

Yay! I made my first C/C++ dll! (It wasn't quite as hard as I thought it would be.) It's a wrapper for the win32 console functions. Calling it from inside C#, I get 128 fps with randomly changing backgrounds in windowed mode; 512 fps in fullscreen. It looks great in fullscreen because 80x50 matches most widescreen resolutions, too. If you're using a 4:3 monitor the characters will appear as 1.2:1, but that's still better than 3:4 or 2:1.

I learned that you can freely mix the win32 console functions and the .Net console functions; I can use the .Net Write to output text and the win32 wrapper for 'graphics'. I'm currently just using GetAsyncKeyState for input, but I'll see if I can mix it with the .Net console input for events, too.



Here it is; it isn't really all that much code, but I'd say it's pretty useful if you want to use C# but don't want to deal with horrible framerates or win32 console functions. (You still have to deal with input, though. I suggest using Console.KeyAvailable with Console.Read for events and GetAsyncKeyState for stuff like motion.)

Just a warning, in the demo app, you press up to exit cleanly. Sorry; I only added the arrow keys to my Keys enum so far.

Important: I just uploaded a bugfix so it won't crash if you try to read or write outside of the console window! If you got the old one in the first 10 minutes it was up, please get the new version!

[Edited by - nagromo on February 11, 2006 1:29:19 PM]

Sponsor:

#82 scgrn   Members   -  Reputation: 168

Posted 11 February 2006 - 09:07 AM

Good luck everyone!!

*brews another pot of coffee*

#83 Sean T. McBeth   Crossbones+   -  Reputation: 1384

Posted 11 February 2006 - 09:16 AM

Quote:
Original post by Endurion
Just to be on the safe side. Here's a link to fixed worldtime. I'd like to have a link to this added everytime for a competition.

This makes my questions regarding timezones obsolete :)

Clicky

No, I specified the time in GMT, it's the contestants responsibility to figure out what that means to them. If they can't figure out their relation to GMT, then they are apparently unable to double click the clock in your task bar.

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]


#84 ToohrVyk   Members   -  Reputation: 1591

Posted 11 February 2006 - 09:29 AM

Quote:
Original post by scgrn
Good luck everyone!!

*brews another pot of coffee*


Good night, everyone else!!

*steals pot of coffee from scgrn* [grin]



#85 DrewGreen   Members   -  Reputation: 370

Posted 11 February 2006 - 09:35 AM

Good luck everyone, break a function! :)

#86 alnite   Crossbones+   -  Reputation: 2063

Posted 11 February 2006 - 09:38 AM

So, umm. what's the theme?

#87 DrewGreen   Members   -  Reputation: 370

Posted 11 February 2006 - 09:39 AM

any minute now you'll find out

#88 d000hg   Members   -  Reputation: 723

Posted 11 February 2006 - 09:40 AM

Post if you're entering!

d000hg is in. And making a blow-by-blow of my development, to be released in about 3hrs 25min!

#89 Sean T. McBeth   Crossbones+   -  Reputation: 1384

Posted 11 February 2006 - 09:42 AM

The theme is "The Stars".

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]


#90 Endurion   Crossbones+   -  Reputation: 3424

Posted 11 February 2006 - 09:43 AM

Whoa, now that's pretty open for the idea.

Oh yeah, i'm in of course.

#91 ToohrVyk   Members   -  Reputation: 1591

Posted 11 February 2006 - 09:43 AM

I'm participating!

At least, I hope so.

The stars... interesting.

#92 alnite   Crossbones+   -  Reputation: 2063

Posted 11 February 2006 - 09:44 AM

Stars eh? Hm..interesting
I am in.

#93 d000hg   Members   -  Reputation: 723

Posted 11 February 2006 - 09:45 AM

We can just email submissions to capn DOT midnight AT gmail DOT com right, as .xyz files?

Off we go...

#94 nagromo   Members   -  Reputation: 676

Posted 11 February 2006 - 09:48 AM

I'm in!

#95 DrPetter   Members   -  Reputation: 132

Posted 11 February 2006 - 09:49 AM

Oh, I'm definitely in... funky theme though, this'll be interesting :)

#96 rockfistus   Members   -  Reputation: 122

Posted 11 February 2006 - 10:08 AM

Gonna give this a shot :)

#97 DrPetter   Members   -  Reputation: 132

Posted 11 February 2006 - 10:18 AM

Woo, I've got a line drawing routine working! What do you think about 40x30 vector graphics textured with random characters? Crazy :P



Actually I _might_ up the resolution to the maximum allowed... we'll see though, low is always cool :)

(I have a very zany game idea, we'll see if it'll work out at all)

#98 ToohrVyk   Members   -  Reputation: 1591

Posted 11 February 2006 - 10:27 AM

Muhahaha! I have a game data parser working, and the display functions that go with it!

Now, on to input parsing...

ROXX0rZ


#99 scgrn   Members   -  Reputation: 168

Posted 11 February 2006 - 10:33 AM

Quote:
Original post by DrewGreen
Good luck everyone, break a function! :)

Done.


#100 Thevenin   Members   -  Reputation: 270

Posted 11 February 2006 - 10:35 AM

The stars? Oh wow, suddenly this contest is in my favor (And no bribing was necessary [grin]).

Unfortunently though, I won't be participating; it took me too long to decide that C#'s Console functions were too slow for animation.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS