DAXAD is a rewrite of my older "CPP-2D-Game-Engine", in rust using wgpu as the graphics...

DAXAD is a rewrite of my older "CPP-2D-Game-Engine", in rust using wgpu as the graphics api

This project template will get you from 0 to drawing something on the screen in no time. If you're looking for a more in-depth introduction to the engine, please have a look at our book!

This project template also includes a small example of how to draw UI, see in state.rs for create_ui_example().

Quickstart

  • Clone the repository

  • Build and run the project

For Mac Users

This starter uses vulkan as a renderer by default. You'll want to change the backend to use metal, which can be done by opening the Cargo.toml file and changing

to

If using OSX and Metal you will require full XCode installed from the Appstore in order to compile metal shaders. After install you may be required to run this command sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer reference gfx-rs issue

For Linux Users

You might need to install some dependencies. Please refer to this section of the README for more details.

Features

This project contains the minimum amount of code needed to draw sprites to the screen. Here's a small summary of what you'll find in the source files:

  • resources/display_config.ron
    Contains the window configuration (size, title).

  • src/main.rs
    Creates the render graph, adds the required bundles, builds the game data with our own state and finally, starts the game's main event loop.

  • src/state.rs
    Implements the main game state. In the on_start hook, the camera is initialized, and the sprites that will be drawn are loaded and their entities created.
    In the handle_event hook, we print any keys that were pressed and close the window if the user presses escape or the OS requests that we quit.

Information - Updated May 13, 2022

Stars: 32
Forks: 10
Issues: 4

Repositories & Extras

RGB (Rust Game Boy) is a simple emulator for the original game boy and the...

RGB (Rust Game Boy) is a simple emulator for the original game boy and the color game boy

RGB (Rust Game Boy) is a simple emulator for the original game boy and the...

Bevy is a refreshingly simple data-driven game engine built in Rust

A modular and data focused rust game engine that fast and free for all

Bevy is a refreshingly simple data-driven game engine built in Rust

Arsenal 2D retro Rust Game engine

Katharos Technology is focused on producing our first game prototype, bevy game engine and our own Katharos...

Arsenal 2D retro Rust Game engine

New Rust GENTS Game Engine

It's a prototyping Game Engine written entirely in Rust Language with some bindings for external libs

New Rust GENTS Game Engine

guessing_game_rust

A repo used to learn rust using the Rust compiler

guessing_game_rust

Grumpy Visitors 2D Rust game for code reference and learning

Grumpy Visitors is a top-down 2D action arcade game

Grumpy Visitors 2D Rust game for code reference and learning

@texhno-rust-wasm-game-of-life

A template for kick starting a Rust and WebAssembly project using Tutorial

@texhno-rust-wasm-game-of-life

Rust Guessing Game

This is a simple guessing game, taken from the book "The Rust Programming Language" Installing

Rust Guessing Game

A Rust and game programming learning project

Ubuntu-latest, MacOS-latest

A Rust and game programming learning project

Rust Game Remake

Remake in rust of a game I made during the here

Rust Game Remake

A 3d rust game using OpenGl and Emscripten to build for the wasm32-unknown-emscripten

It can also run standalone, developed and tested on Linux but will

A 3d rust game using OpenGl and Emscripten to build for the wasm32-unknown-emscripten
Facebook Instagram Twitter GitHub Dribbble
Privacy