8000 GitHub - lsioctl/platformer-rust
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lsioctl/platformer-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

platformer-rust

An attempt to make a platformer game from scratch with assets and code base from this Monogame example:

https://github.com/MonoGame/MonoGame.Samples/tree/3.8.1/Platformer2D

My goal is to keep practicing Rust and having fun with Video Game programming.

Bevvy looked promising, but is higher level AFAIK.

Another inspiration will be this article, with OCaml/Raylib:

https://dev.to/sheosi/making-a-game-engine-with-ecs-and-in-ocaml-2oma

raylib installation

  • I just ditched windows as we havec cmake dependencies, I think the target would be using cross as recommended in Raylib's doc
  • On Linux, a bunch of dependencies also:
apt-get install cmake libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev -y

raylib limitations

It says it supports Direct3D, Metal, through ANGLE, but support may be very experimental

Animation reference

https://www.raylib.com/examples/textures/loader.html?name=textures_sprite_anim

Keyboard input

Coming from Raylib examples in C I was stuck with ffi and unsafe calls, this documentation showed me how to use proper Rust calls:

https://pls.plaureano.com/blog/files/Example-code-2-rust.php

Parallax reference

https://www.raylib.com/examples/textures/loader.html?name=textures_background_scrolling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0