GithubHelp home page GithubHelp logo

flight-sim's Introduction

Hyper-Realistic Flight Simulator

A game made for fun and also as an university project. Coded in Zig using almost no libraries (except system APIs and included stb_image).

How To Build

Download Zig version 0.9.1 (https://ziglang.org/download/) (version does matter!)
Run zig build -Drelease-fast run to compile and run the app
You can remove -Drelease-fast for a debug build, or remove run to just compile it (the executable is in zig-out/bin)
If you want to run the executable, you have to run it alongside the assets folder
NOTE: Only Linux and Windows 64bit are supported and decent GPU is required

Controls

W,S,A,D - control the plane
F - toggle headlights
E - toggle camera orientation
scrolling - change camera position

Objective

I've placed presents in the capital cities. Fly over them with the plane to collect them. There's a progress bar at the bottom of the screen.

Additional Credits

Earth Textures - https://visibleearth.nasa.gov/collection/1484/blue-marble
Water Normal Texture - https://www.cadhatch.com/seamless-water-textures
Plane Model - https://sketchfab.com/3d-models/low-poly-plane-76230052903540e9aeb46b7db35329e4
Present Models - https://kenney.nl/assets/holiday-kit
Coordinates of Capital Cities - https://www.jasom.net/list-of-capital-cities-with-latitude-and-longitude/
PNG Loading - https://github.com/nothings/stb

flight-sim's People

Contributors

ontes avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.