Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
/ game-space-taxi Public archive

An attempt to remake "Space Taxi", using a 3D setup and a few drops of physics.

License

Notifications You must be signed in to change notification settings

astrofra/game-space-taxi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Space Taxi (3D Remake), aka Into the Trees 🚁

This repository contains the prototype code for a 3D remake of the classic game "Space Taxi", using the Squirrel programming language and the GameStart 3D engine. The game relies a bit on physics (powered by Bullet Physics).

Space Taxi Screenshot 0
Space Taxi Screenshot 1 Space Taxi Screenshot 2
Space Taxi Screenshot 3 Space Taxi Screenshot 4

🕹️ Game Overview

The game revolves around controlling a helicopter (the player), landing on different platforms ("pads"), and moving between towers (only one tower actually exists).

👩‍💻 Code Structure

The code is divided into several script files, each serving a different purpose:

Main Scene Script (Main.nut)

This script handles the main gameplay logic. It primarily deals with finding and managing pads and the player's helicopter.

  • FindPads(scene): This function locates all the pads in the current scene.
  • FindPlayer(scene): This function finds the player's helicopter in the scene.
  • CyclePads(): This function is called every 5 seconds to select a new active pad from the list of all pads. The new pad is different from the current one.
  • OnUpdate(scene): This function is called in each frame to update the game state. It triggers the CyclePads() function if the player's client is not loaded.

Tower Scene Script (Tower.nut)

The Tower Scene Script is similar to the Main Scene Script and is meant to run specific events related to the tower.

Controller (Controller.nut)

This script handles player inputs from either a game controller or the keyboard. The game controller's Axis Z is used for throttle control (acceleration), and Axis X is used for directional control.

Beacon (Beacon.nut)

The Beacon script is a helper for the game camera. It makes the camera follow the player's helicopter in the scene, with a smooth trailing effect.

Level (Level.nut)

This script handles the room transition logic in a level. It maintains a room_connection structure that defines how the rooms in a level are connected and where the spawn points in each room are.

⚠️ Notice

This is a legacy codebase that was developed using an older version of the GameStart 3D engine. It is presented here for posterity and to possibly serve as inspiration for similar projects.

About

An attempt to remake "Space Taxi", using a 3D setup and a few drops of physics.

Topics

Resources

License

Stars

Watchers

Forks