Giter Site home page Giter Site logo

johangardhage / retro-book-moretricksgamegurus Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 3.15 MB

Demos from the book "More Tricks of the Game Programming Gurus"

License: MIT License

C 40.47% Assembly 4.49% Makefile 1.93% Batchfile 0.06% C++ 36.64% FreeBasic 2.19% Pascal 8.77% BASIC 5.02% Visual Basic 6.0 0.43%

retro-book-moretricksgamegurus's Introduction

retro-book-moretricksgamegurus

Demos from More Tricks of the Game Programming Gurus, brought back from the 90's.

Screenshot

Prerequisites

To build the demo programs, you must first install the following tools:

Install dependencies

openSUSE

$ sudo zypper install ninja gcc-c++ libSDL2-devel

Ubuntu

$ sudo apt install ninja-build g++ libsdl2-dev

Windows

  • Manually download and install MSYS2.
  • Run View advanced system settings from the Start menu and add a PATH to C:\msys64\mingw64\bin.
  • Run MSYS2 MSYS from the Start menu. Update the package database and base packages with pacman -Syu.
  • Run MSYS2 MSYS from the Start menu again. Update the rest of the base packages with pacman -Syu.
  • Install the development tools with pacman -S git mingw-w64-x86_64-gcc mingw-w64-x86_64-ninja mingw-w64-x86_64-SDL2.
  • Close the MSYS2 MSYS window and run MSYS MinGW 64-bit from the Start menu.
  • Clone the git repository with git clone https://github.com/johangardhage/retro-book-gardens.git.
  • Finally, to be able to build the demos on Windows, edit the file build.ninja and uncomment the line # command = $cc $in $windows -o $out..

Build instructions

To build the demo programs, run:

$ ninja

A build directory will be created, containing the demo programs.

Usage

Usage: demo [OPTION]...

Options:
 -h, --help           Display this text and exit
 -w, --window         Render in a window
     --fullwindow     Render in a fullscreen window
 -f, --fullscreen     Render in fullscreen
 -v, --vsync          Enable sync to vertical refresh
     --novsync        Disable sync to vertical refresh
 -l, --linear         Render using linear filtering
     --nolinear       Render using nearest pixel sampling
 -c, --showcursor     Show mouse cursor
     --nocursor       Hide mouse cursor
     --showfps        Show frame rate in window title
     --nofps          Hide frame rate
     --capfps=VALUE   Limit frame rate to the specified VALUE

License

Licensed under MIT license. See LICENSE for more information.

Authors

Original code written by Sams Development Group for More Tricks of the Game Programming Gurus (Sams)

Screenshots

Screenshot Screenshot

retro-book-moretricksgamegurus's People

Contributors

johangardhage avatar

Stargazers

 avatar @musurca avatar

Watchers

 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.