o
odinpkg.dev
packages / app / SDLOdin

SDLOdin

b42487fapp

Learning Odin & SDL2 to make a little game

No license · updated 1 year ago

SDLOdin

SDLOdin is a simple SDL2-based application that demonstrates the creation of a window, rendering graphics, and handling user input. This project serves as a foundation for building more complex SDL applications.

Features

  • Create and manage an SDL window
  • Render images using SDL2
  • Handle keyboard events
  • Clean-up resources properly

Getting Started

Prerequisites

  • Odin - Make sure you have Odin installed on your machine.
  • SDL2 - You need to have SDL2 and SDL2_image installed.

Installation

  1. Clone the repository:

    git clone https://github.com/Azteriisk/SDLOdin.git
    cd SDLOdin
  2. Install the required dependencies (if not already installed):

    # Instructions for installing SDL2 and SDL2_image
  3. Build the project:

    odin build main.odin
  4. Run the application:

    ./main

Usage

Once the application is running, you can interact with it using the keyboard. Press the ESC key or close the window to exit.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • SDL2 for the graphics and window management.
  • Odin for the programming language.