Thread: Tony Hawk Project 8

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688

    Tony Hawk Project 8

    This is a totally random question but its aimed at game programming.

    Do you know how neversoft did this event game? All I am wondering is say you are in "Suburbia" and you choose a goal to do, would it look somthing like:

    Code:
    while ( we are in suburbia ) 
    {
       // player goes to goal
    
      goal1();
      goal2();
      goal3(); // etc
    I could be wrong but its somthing I have always wondered how they coded it. I know it is all event programming etc. Im wondering maybe if each "goal" for that particualr area could be a single function call.

    Any insight or ideas are appriciated!
    Double Helix STL

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Can you describe the mechanics of what you're talking about?

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Basically, each level is set up with goals and tasks to acheive before you can move on. Each goal begins when you speak to a person in the game then you have to complete their goal and you are graded on your ability to complete the goal.

    I was wondering how each goal and task is called in the program. Im guessing its somthing more complex then a simple function call.
    Double Helix STL

  4. #4
    Quote Originally Posted by swgh View Post
    I was wondering how each goal and task is called in the program. Im guessing its somthing more complex then a simple function call.
    Most certainly. Once entering play, the game will loop a Play function which will process user input and handle displaying graphics, processing physics, and other game dynamics. This loop will always be the same for every area and level you play in. What will change are the variables controlling the game state.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I'm sure it is scripted and the game is just running the script.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM