GithubHelp home page GithubHelp logo

simplegameinruby's Introduction

SimpleGameInRuby

A simple game in ruby where a ship travel int the space to collect stars. The more stars it collects the greater its score become.

What is SimpleGameInRuby?

In October 2015 I attended a Ruby course and I was looking for something interesting to implement with this language. Looking around the web I found Gosu. It is a Ruby library for Game development, for more information on it visit its wiki on github. In this wiki I found the gosu_examples a tutorial to build an easy game step by step. The reason why I cloned the project is to have it on Github and have the possibility in the future to improve it.

Usage

Here the necessary steps to run SimpleGameInRuby. The assumption here is that you are using Windows as operating system. For Linux and Mac the differences should me minimal.

  1. Download Github from here and install it on your Windows.
  2. Download Ruby from here and install it.
  3. Open a github shell
  4. Run the command: _cd c:_
  5. Run the command: git clone https://github.com/sasadangelo/SimpleGameInRuby.git. The folder C:\SimpleGameInRuby will be created with source code inside.
  6. Open a dos shell
  7. Run the command: cd c:\SimpleGameInRuby\stepX where X is a number between 1 and 5.
  8. Run the command: gem install gosu. This will install the Ruby game library gosu. If you got a SSL connection problem check the troubleshooting section.
  9. Run the command: ruby GameWindow.rb to start the video game.

TroubleShooting

If step 8 fails for a SSL connection problem this is a well known ruby issue. To solve it do the following:

  1. Download the following pem certificate
  2. Run the command: gem which rubygems. This command will print a path like this one /lib/ruby/2.1.0/rubygems.rb. You must store the pem certificate in /lib/ruby/2.1.0/rubygems/ssl_certs.
  3. Run again the command: gem install gosu.

Credit

Thanks to Gosu Team for the publishing of this tutorial.

simplegameinruby's People

Contributors

sasadangelo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.