Giter Site home page Giter Site logo

matt-dray / actionsquirrel Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 46 KB

:chipmunk::chestnut: R package: a squirrel game in your R console, made with {R6}

Home Page: https://www.rostrum.blog/2021/10/03/squirrel/

License: Other

R 100.00%
rstats r-package r6 sonify

actionsquirrel's Introduction

actionsquirrel's People

Contributors

matt-dray avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shafayetshafee

actionsquirrel's Issues

Add enemy

Like #2, except you want to avoid it. Could move randomly or toward the player.

Detect terminal or RStudio

In the game, the console is cleared with cat("\014") between frames. This only clears the screen in RStudio, though. In the terminal it would need to be system("clear").

Via Henrik:

To detect whether R is running via RStudio or not, one can check Sys.getenv("RSTUDIO") which is set to 1 when running in RStudio.

We can detect this on startup, set a field value and then have if statements to choose between cat("\014") and system("clear") whenever the console needs to clear.

Include incentive object

For example a nut ๐ŸŒฐ that spawns randomly and stays in situ until the player reaches that space. Could be used for a scoring system. Could have a running tally like the moves tally that's printed with the output.

Improve owl AI

Yeah, it's pretty stupid. Move towards player? Second antagonist? Maybe a fox moves in the current owl pattern, while the owl swoops like a rook or bishop.

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.