Simple game

Hey all,

I’m looking for some source code for a game that is a basic first person based game, with objects coming at the user and the user having to dodge the objects. There would need to be scoring ability, such as if the user gets hit with one of the objects, the game is over, or if the user picks up an item they get points, and when they get to the end of the “track” they “win”.

Does that make sense? Does anyone have a simple source file for something similar to that?