Click here to Skip to main content
Click here to Skip to main content

Space Racer (Working Title)

By , 27 Mar 2013
 

Please note

This article is an entry in our AppInnovation Contest. Articles in this sub-section are not required to be full articles so care should be taken when voting.

THIS PROJECT HAS BEEN POSTPONED UNTIL FURTHER NOTICE 

Introduction 

Space Racer (working title) is a 3D racing/platform game being developed for the Windows, Windows Phone, and XBbox 360 Indie Games platforms. Inspired by the classic PC game Sky Roads, Space Racer will allow the player to take control of numerous racers across different worlds as they battle it out with their opponents. 

This game is in an early development stage. The core game engine has many features implemented although art assets are currently being worked on. Below is an image of the level selection screen. More in game screenshots to be uploaded soon! 

Background  

This game has been targeted for release as a Windows Desktop Application for Windows 8, incorporating the touch screen and GPS functionality of the latest Ultrabooks, allowing the player to race online with people on the same continent as them in custom made online tracks for each geographic region. This game is also compatible with previous versions of Windows. 

Shortly after initial release the game will be published on XBox Live Indie Games and finally on Windows Phone. 

Sample Code  

Below you can see the Camera class for this game. This game is written in C# using the XNA and BepuPhysics libraries. To protect the IP only a short segment of this games code has been included.  

// Class includes
using Microsoft.Xna.Framework;

namespace Space_Racer
{
    class Camera
    {

        // Default class references
        public const float FOV = 45.0f;
        public const float NearClip = 1.0f;
        public const float FarClip = 10000.0f;
        public const float ScrollSpeed = 0.1f;

        // Declare camera properties
        public Matrix Transform;
        public Vector3 Position;


        // Class constructor
        public Camera()
        {
            // Set default camera transform
            Position = new Vector3(0.0f, 0.0f, 0.0f);
            Transform = Matrix.CreateLookAt(Position, Vector3.Forward, Vector3.Up);
        }

        
        // Move camera or set absolute position
        public void Reposition(Vector3 position, bool absolute)
        {
            // Get current matrix properties
            Vector3 cameraScale;
            Quaternion cameraRotation;
            Vector3 cameraPosition;
            bool checkMatrix = 
                Transform.Decompose(out cameraScale, out cameraRotation, out cameraPosition);

            // Invert position for matrix conversion
            position = -position;

            // Check for incremental value
            if (!absolute)
                position += cameraPosition;

            // Create repositioned matrix
            Transform =
                Matrix.CreateFromQuaternion(cameraRotation) *
                Matrix.CreateScale(1.0f) *
                Matrix.CreateTranslation(position);

            // Invert position back to normal
            Position = -position;
        }
    }
}

Points of Interest

  • Fully 3D racing game built with the XNA game library. 
  • Split screen capability for XBox 360 and online play for Windows/Windows Phone. 
  • Incorporation of the latest Ultrabook features, including touch screen and Geo tracking. 
  • Planned roll out of downloadable content to increase the replay-ability. 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Conor Byrne
Ireland Ireland
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
AnswerApplication contestmemberClifford Nelson27 Mar '13 - 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 27 Mar 2013
Article Copyright 2012 by Conor Byrne
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid