• Stars
    star
    201
  • Rank 194,491 (Top 4 %)
  • Language
    Rust
  • License
    Other
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Seed project for 2D games

Amethyst 2D starter template

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(). Amethyst 2D starter template

Quickstart

  • Clone the repository
git clone https://github.com/amethyst/amethyst-starter-2d.git
cd amethyst-starter-2d
  • Build and run the project
cargo run

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

[features]
default = ["vulkan"]

to

[features]
default = ["metal"]

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.

More Repositories

1

amethyst

Data-oriented and data-driven game engine written in Rust
Rust
7,982
star
2

specs

Specs - Parallel ECS
Rust
2,483
star
3

rlua

High level Lua bindings to Rust
C
1,628
star
4

legion

High performance Rust ECS library
Rust
1,616
star
5

bracket-lib

The Roguelike Toolkit (RLTK), implemented for Rust.
Rust
1,500
star
6

rustrogueliketutorial

Roguelike Tutorial in Rust - using RLTK
Rust
894
star
7

rendy

State of the art "build your own engine" kit powered by gfx-hal
Rust
815
star
8

distill

Asset pipeline system for game engines & editor suites.
Rust
367
star
9

shred

Shared resource dispatcher
Rust
231
star
10

evoli

An ecosystem-simulation game made with Amethyst
Rust
217
star
11

space-menace

An action 2D platformer made with Amethyst game engine
Rust
180
star
12

shotcaller

A moddable RTS/MOBA game made with bracket-lib and minigene.
Rust
143
star
13

serde-diff

Utility for comparing two structs and re-applying the differences to other structs
Rust
120
star
14

hibitset

Hierarchical bit set container
Rust
114
star
15

voxel-mapper

Make beautiful voxel maps.
Rust
113
star
16

specs-physics

nphysics integration for the Specs entity component system
Rust
94
star
17

sheep

Modular and lightweight spritesheet packer ๐Ÿ‘
Rust
89
star
18

tools

Game development tools for the Amethyst engine
Rust
80
star
19

grumpy_visitors

๐Ÿง™โ€โ™‚๏ธ๐Ÿง™โ€โ™€๏ธ A prototype of a top-down EvilInvasion-like 2D arcade/action (with co-op!)
Rust
77
star
20

amethyst-imgui

imgui integration for Amethyst
Rust
66
star
21

legion_transform

A Unity-inspired hierarchical transform implementation using Legion ECS
Rust
51
star
22

editor-core

Crate that allows an Amethyst game to communicate with an editor.
Rust
44
star
23

rfcs

RFCs are documents that contain major plans and decisions for the engine
32
star
24

dwarf_seeks_fortune

A 2D puzzle platformer made with the Amethyst game engine.
Rust
25
star
25

amethyst_iced

Iced rendering plugin for the Amethyst game engine
Rust
24
star
26

pong_wasm

WASM end-to-end proof of concept -- work in progress
Rust
22
star
27

web_worker

Rust
19
star
28

ludumdare42

A game made by the Amethyst team for Ludum Dare 42
Rust
16
star
29

website-legacy

Project website and blog (DEPRECATED)
HTML
11
star
30

website

Official Amethyst website
JavaScript
9
star
31

amethyst-rhusics

A bridge between Amethyst and rhusics (unmaintained)
Rust
9
star
32

awesome-specs

A curated list of projects that use or help with using Specs.
6
star
33

crystal-editor

Svelte
6
star
34

ludumdare43

Rust
2
star
35

resources

Files that are important to keep around but not tied to any specific code base
1
star
36

builder

The docker container used in amethyst's CI/CD infrastructure.
Dockerfile
1
star
37

wasm_rush_report

Report about adding WASM support to the Amethyst game engine.
1
star
38

laminar-ffi

Crate that exposes Laminar functionality to C
Rust
1
star
39

amethyst-docs-builder

Webhook server that builds amethyst's book and documentation
Go
1
star
40

amethystup

Setup script for Amethyst dependencies
Shell
1
star
41

documentation

Non-rustdoc documentation and policies
1
star