Search found 158 matches

by wtetzner
Tue Jun 25, 2013 4:23 pm
Forum: Programming Discussion
Topic: Compile Elysian Shadows with Emscripten?
Replies: 2
Views: 2559

Compile Elysian Shadows with Emscripten?

Do you guys have any plans of building Elysian Shadows with Emscripten, so you can run it in the browser?

Given that you like getting it to run on different platforms, it seems like something you might be interested in.

https://github.com/kripken/emscripten
https://github.com/kripken/emscripten/wiki
by wtetzner
Sun Apr 21, 2013 8:21 pm
Forum: Programming Discussion
Topic: Guides & resources
Replies: 59
Views: 62169

Re: Guides & resources

There's also a nice article on writing Linux device drivers here: http://www.freesoftwaremagazine.com/art ... vers_linux
by wtetzner
Sun Feb 10, 2013 5:55 pm
Forum: Programming Discussion
Topic: c++ grandmaster certification
Replies: 10
Views: 6129

Re: c++ grandmaster certification

dandymcgee wrote:Not like any of them are going to compete with GCC.
Or Clang in particular. which was both designed so it would be useful for building C++ tools, and is under a BSD license.
by wtetzner
Sun Nov 18, 2012 4:41 pm
Forum: Game Development
Topic: 2D RPG Engine
Replies: 153
Views: 100042

Re: Simple 2D RPG Engine

Better code: //Set empty flag empty = dataCollection.IsEmpty(); Even this seems like a pointless comment to me. You're still just repeating what the code says. The comment should say why you're doing it. // Cache empty state, because IsEmpty is expensive to call. empty = dataCollection.IsEmpty();
by wtetzner
Sun Oct 28, 2012 8:16 am
Forum: Programming Discussion
Topic: ohhh myyy gawd c++ issues!!!
Replies: 2
Views: 1330

Re: ohhh myyy gawd c++ issues!!!

What is the type of blue2? If blue2 is an int, then at each point in the loop, you're rounding your result to an int. In the unrolled version, you are doing floating point arithmetic, before saving the entire result in an int. So with the second version, you only do the rounding once, where in the l...
by wtetzner
Sun Aug 26, 2012 9:06 am
Forum: Programming Discussion
Topic: [ SOLVED ]Player wont Move C++/SDL
Replies: 8
Views: 3999

Re: Player wont Move C++/SDL please Help

Are you trying to make it so when you hold down the key, your character accelerates? If not, try this: void Player::Input() { if(Event.type == SDL_KEYDOWN); { if(Event.key.keysym.sym == SDLK_LEFT) xVel = -(PLAYER_WIDTH / 2); if(Event.key.keysym.sym == SDLK_RIGHT) xVel = PLAYER_WIDTH / 2; } if(Event....
by wtetzner
Sun Aug 05, 2012 11:23 am
Forum: Art, Music, and Design
Topic: Are games in general Art?
Replies: 6
Views: 8698

Re: Are games in general Art?

Mr. Achie wrote:Are games art?
The U.S. Supreme Court thinks they are: http://articles.cnn.com/2011-06-27/tech ... _s=PM:TECH
by wtetzner
Thu Aug 02, 2012 12:59 pm
Forum: Current Events and Science/Technology
Topic: Steam on Linux
Replies: 6
Views: 9492

Re: Steam on Linux

Looks like Source is running faster on Linux than Windows: http://blogs.valvesoftware.com/linux/faster-zombies/
by wtetzner
Fri Jun 15, 2012 7:31 pm
Forum: Programming Discussion
Topic: Book recommendations ?
Replies: 6
Views: 1666

Re: Book recommendations ?

I'm looking for books to add to my reading list and was actually leaning toward design patterns and algorithms. Any recommendations? Would it be worth while to look at anything specific to game development ? If you're interested in learning algorithms, Introduction to Algorithms is a good book. And...
by wtetzner
Mon Jun 04, 2012 7:54 pm
Forum: Programming Discussion
Topic: C++ to C
Replies: 16
Views: 3717

Re: C++ to C

Many libraries and APIs tend to favor C over C++ for obvious compatibility reasons. A C library can be utilized by C or C++, but the reverse is not (easily) true. OpenGL, OpenAL, OpenCL, and SDL are great examples of this. These APIs are not written in C just so both C and C++ can utilize them, but...
by wtetzner
Mon Jun 04, 2012 7:35 pm
Forum: Programming Discussion
Topic: Compiler overhead ?
Replies: 6
Views: 1890

Re: Compiler overhead ?

I don't know many people who would literally copy and paste the same functions and classes to achieve the same thing with different types. I think almost anybody would construct a heirarchial relationship to reuse commonality with runtime polymorphism. That's fair. As is often the case, you end up ...
by wtetzner
Mon Jun 04, 2012 8:05 am
Forum: Programming Discussion
Topic: Compiler overhead ?
Replies: 6
Views: 1890

Re: Compiler overhead ?

For example, some overhead associated with C++: 1) RTTI and dynamic_cast 2) virtual function invokation and vtables 3) exceptions 4) templates and so on... Would you like to rephrase your question? Just out of curiosity, what runtime overhead is incurred by using templates? Code size might increase...