Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

TanguyAndreani/dragonruby-parallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple parallax with DragonRuby

So this is my first try at DragonRuby. I tried to make a parallax, which I already did for a game with CSFML.

The parallax code is in lib/parallax.rb, and the code which controls it in app/main.rb. Other files control the two arrows you see on both sides of the screen; which you don't need if you just want to learn about the parallax.

Show me the simplest working parallax

This code got a little tricky for a beginner, but you can still access one of the first versions of the code. A single file parallax of less than twenty lines which just works.

Credits

Images were found randomly on the web, they were free to use but I think they need to be in the credits.

Screenshot