GithubHelp home page GithubHelp logo

cgamedev's Introduction

C GameDev (just for fun)

This is something I like to play with when I am bored, nothing serious here.

Prerequisites

  • SDL2
  • Optionally, flex

Compile and run

Windows and MINGW32/MSYS assumed.

chmod +x deps.sh    # make deps.sh executable
make deps           # download dependencies, see deps.sh for details
# make lex            this is optional, generates c source files from lex sources
make all            # make executable
make SDL2.dll       # copy SDL2.dll from 3rdparty bin dir

Execute the program:

./main.exe

cgamedev's People

Contributors

stjepano avatar

Watchers

James Cloos avatar  avatar

cgamedev's Issues

Render cube

Render cube that can be moved on X,Y and Z axis, rotated about all axes. Use simple diffuse type lighting with light source set at viewpoint.

Requirements:

  1. Math library
  2. Transformations
  3. Projections
  4. Mesh generation
  5. Better shaders

Setup an OpenGL 3+ context and draw a triangle

Set up OpenGL context (3.3 for example), write shaders, initialize GL buffers and draw a triangle.

Application should exit when you press ESC button or when clicked on window close button (X).

Implement resource system

Resource system must be platform independent. It must allow:

  1. Loading resources (text, binary, image, model data, ...)
  2. Checking size of resource
  3. Querying for resource (if it exists)
  4. Deleting resource

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.