GithubHelp home page GithubHelp logo

rcade's Introduction

Rcade

The goal of Rcade is to provide access to games in order to waste some times in RStudio. You can play 2048, Tetris, Mario, Pacman, Spider Solitaire and others.

Installation

This package will never be released on CRAN.
You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github('RLesur/Rcade')

Usage

List available games

Rcade::games

Play a game

The first time you launch a game, you will be asked for installation.
Playing a game is quite easy. Here are some examples:

Rcade::games$`2048`
Rcade::games$Pacman

Motivation

I always read the Motivation section first. Packages should always have a Motivation section in their README files.

So, what is the motivation behind this useless package?
My first motivation was to test the RStudio viewer and I had this stupid idea to try some HTML5 games. Why? I don't know.
Some folks loved the idea of playing in RStudio. So, I took some times to develop this package. That's all.

How to contribute

Try a new game

There are hundreds of HTML5 games on GitHub. You can try a new game with the non exported R6 constructor Rcade:::HTML5Game.

Here's an example with the following repo: https://github.com/Zolmeister/pond

Pond <- Rcade:::HTML5Game$new(name = "pond", 
                              github = "Zolmeister/pond", 
                              need_servr = FALSE, 
                              path = "index.html")

Therefore, you can try to launch the game with:

Pond

If you get some troubles with a game, you may try with a HTTP server:

Pond$play(TRUE)

Do a pull request

Games metadata are stored in games.yml file (under inst/games directory). You only have to add extra games to this file. Here's an example.

Credits

This package includes some non exported functions of the webshot package.
webshot package author: Winston Chang
webshot package contributors: Yihui Xie, Francois Guillem, Barret Schloerke
License: GPL-2

rcade's People

Contributors

rlesur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rcade's Issues

Fail in install package

Hello, Doctor!

Look great package and i want to have a play!

But it show me this when i try to download:
Error: Failed to install 'Rcade' from GitHub:
error reading from connection

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.