Giter Site home page Giter Site logo

gmh5225 / sdl-tinyc.games Goto Github PK

View Code? Open in Web Editor NEW

This project forked from superjer/tinyc.games

1.0 1.0 0.0 14.76 MB

Tiny C games you can compile and run RIGHT NOW

Home Page: http://tinyc.games

License: MIT License

C 95.76% Shell 0.02% Batchfile 0.04% C++ 1.00% Objective-C 0.19% HTML 2.75% CSS 0.03% Makefile 0.01% GLSL 0.19%

sdl-tinyc.games's Introduction

tinyc.games

Tiny C games you can compile and run RIGHT NOW.

Tools and libraries are available for making cross-platform C games, but simple examples can be hard to find.

This project is an example of how you can get started making a game in C that will work on Windows, Mac and Linux.

Screens

Tet Flappy Blocko

How do I do it?

Windows

  1. TCC, SDL2, and GLEW are already included!
  2. Open a game folder and run run-windows.bat
  3. For OpenGL games you will need the Windows SDK from Microsoft

Mac

  1. Install clang by typing "clang" in Terminal and clicking the Install button.
  2. Open a game folder and run run-mac.sh

Linux

  1. Install tcc, SDL2-dev, and GLEW-dev. Eg. for Debian/Ubuntu:

    sudo apt install tcc libsdl2-dev libsdl2-ttf-dev libglew-dev

  2. Open a game folder and run run-linux.sh

Next?

After you're done playing an exhilirating demo game, open the .c file in your favorite text editor. You're now looking at the actual code you just ran. So feel free to tinker and run it with your changes. Or use it as a starting point for your own game!

sdl-tinyc.games's People

Contributors

superjer avatar

Stargazers

F00dstamp9696 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.