Giter Site home page Giter Site logo

linecode / dos-like Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattiasgustavsson/dos-like

0.0 1.0 0.0 5.27 MB

Engine for making things with a MS-DOS feel, but for modern platforms

License: Other

Batchfile 0.01% C 99.31% C++ 0.68% Shell 0.01%

dos-like's Introduction

build

dos-like

dos-like examples

dos-like is a programming library/framework, kind of like a tiny game engine, for writing games and programs with a similar feel to MS-DOS productions from the early 90s. But rather than writing code that would run on a real DOS machine, dos-like is about making programs which runs on modern platforms like Windows, Mac and Linux, but which attempts to recreate the look, feel, and sound of old DOS programs.

It includes a bunch of examples of classic DOS techniques and effects, a few of which can be seen above.

For more information and screenshots, please see the project home at https://mattiasgustavsson.itch.io/dos-like

Operating

While running, you can use F11 to toggle between fullscreen and windowed mode.

To start in windowed mode, add the flag -w or --window to the commandline when launching.

Building

dos-like does not make use of any complicated build systems - a simple command line call to the compiler is all that is needed to build both your program and thee engine itself.

Windows

Tiny C Compiler for windows is included. To build all samples, run build_all.bat. To build individual samples, do:

  tcc\tcc source\stranded.c source\dos.c

where stranded.c should be replaced with the sample you like to build.

Alternatively, from a Visual Studio Developer Command Prompt, do:

  cl source\stranded.c source\dos.c

where stranded.c should be replaced with the sample you like to build.

Mac

To build on Mac (which I don't test myself, but might work):

  clang source/stranded.c source/dos.c -lSDL2 -lGLEW -framework OpenGL

where stranded.c should be replaced with the sample you like to build.

SDL2 and GLEW are required - if you don't have them installed you can do so by running

  brew install sdl2 glew  

Linux

To build on Linux (which I don't test myself, but might work):

  gcc source/stranded.c source/dos.c -lSDL2 -lGLEW -lGL -lm -lpthread

where stranded.c should be replaced with the sample you like to build.

SDL2 and GLEW are required - if you don't have them installed you can do so by running

  sudo apt-get install libsdl2-dev
  sudo apt-get install libglew-dev

dos-like's People

Contributors

mattiasgustavsson avatar nightmareci avatar thp 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.