Giter Site home page Giter Site logo

sdl2-zig-demo's Introduction

SDL2 Zig Demo

This repository contains an updated version of the SDL2 Zig Demo created by @andrewrk. The original repository can be found here.

Demo

Check out the demo of the SDL2 Zig Demo in action:

demo

The demo showcases a simple application window created using SDL2 in Zig. The window allows user interaction and displays a red square that can be moved using arrow keys. Additionally, it renders text on the window to display information such as the position and speed of the square.

How to Build and Run

To build and run the SDL2 Zig Demo, follow these steps:

  1. Clone the repository:
git clone https://github.com/adia-dev/sdl2-zig-demo.git
  1. Change into the project directory:
cd sdl2-zig-demo
  1. Build the project:
zig build run

This will compile the code and execute the resulting binary, launching the SDL2 Zig Demo window.

Prerequisites

Before running the SDL2 Zig Demo, make sure you have the following dependencies installed:

  • Zig compiler (version 0.11 or later (the one the project was built with: 0.11.0-dev.3384+00ff65357))
  • SDL2 development libraries

Ensure that you have the necessary dependencies installed before attempting to build and run the demo.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

sdl2-zig-demo's People

Contributors

adia-dev avatar andrewrk 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.