Jump to content

  • Log In with Google      Sign In   
  • Create Account

Gage64

Member Since 07 Nov 2006
Offline Last Active Jan 18 2014 12:21 PM

#4936460 Two free python game programming books

Posted by on 01 May 2012 - 11:08 AM

Here are two free books on game programming with python. The first is about text-based games and assumes no previous knowledge of programming. The other is about creating graphical games with pygame and assumes some knowledge of python.

http://inventwithpython.com/blog/2012/02/10/new-book-making-games-with-python-pygame/


#4534818 Strafing with Quaternion Camera

Posted by on 30 September 2009 - 09:05 PM

Good to see you got it working. I just wanted to say that you should avoid duplicating code whenever possible. For example, ChangeVelocity and ChangeStrafeVelocity basically do the same thing, and you can replace them both with one function:


void c_camera::ChangeVelocity(GLfloat &currVel, GLfloat vel, GLfloat maxVel)
{
if(fabs(currVel) < fabs(maxVel))
{
// Our velocity is less than the max velocity, so add to the player velocity
currVel += vel;
}
else
{
// This Locks the player speed at the Maximum
if(currVel < 0)
{
// We are slowing down so decrement
currVel = -maxVel;
}
else
{
// We are speeding up so increment
currVel = maxVel;
}
}
}



And you call it like this:

ChangeVelocity(m_ForwardVelocity, vel, m_MaxForwardVelocity);
ChangeVelocity(m_StrafeVelocity, vel, m_MaxStrafeVelocity);


Since the current velocity is passed by reference, the function actually changes its value.


#4506815 [SlimDX, DirectX] Find out if a Vector3 is on screen.

Posted by on 10 August 2009 - 12:18 AM

Quote:
Original post by sickbattery
I don't find anything on google, but maybe I'm using the wrong keywords -.- ..


Try "Frustum Culling".


#4134201 Game engine layout

Posted by on 05 January 2008 - 09:04 PM

Maybe looking at the architecture diagram and feature list for the C4 engine will give you some ideas.


#565902 Free C#/XNA book

Posted by on 21 March 2010 - 07:17 PM

www.xnagamemaking.com Just found it. Doesn't assume any previous programming experience. First half covers C#, second half shows how to write a simple 2D space shooter using XNA 3.1. Haven't read it yet, but from a quick browsing it looks pretty nice. Would be interesting to hear what other people think about it. EDIT: Found another one. I thought it was better to update this thread than to start a new one. [Edited by - Gage64 on May 4, 2010 4:54:32 AM]


PARTNERS