GithubHelp home page GithubHelp logo

n-ivkovic / treedude Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 3.0 4.88 MB

Clone of the mini-game from Superhot

Home Page: https://gitlab.com/n-ivkovic/treedude

License: GNU General Public License v3.0

Makefile 2.55% C 94.61% Roff 2.84%
c curses ascii terminal ncurses superhot treedude terminal-game tui ansi-c

treedude's Introduction

treedude

treedude is a clone of the mini-game from Superhot titled 'Tree Dude Tree Dude Dude'. Chop as much of the tree as you can while avoiding branches and keeping an eye on the timer.

Written in C89/90 with the Curses library and complies with SUSv2 through to POSIX.1-2008 (SUSv4).

treedude demo gif

Installation

Ensure the following is available on your system:

  • GCC or clang. To use clang, CC=clang must be passed to make commands.
  • An X/Open Curses implementation such as ncurses or PDCurses.

Clone and build: (Replace github.com with gitlab.com if using GitLab)

$ git clone https://github.com/n-ivkovic/treedude
$ cd treedude
$ make

Run without installing:

$ ./treedude

Install and run:

# make install
$ treedude

Update after installation:

$ git pull master
$ make
# make install

Additional options:

$ make help

Usage

Controls

Key Action
, A, H Chop left.
, D, L Chop right.
Enter Continue.
Q, Esc Quit.

Options

Option Description
-n Do not read or write the high score from the $XDG_DATA_HOME ($HOME/.local/share) directory.
-v, -V Print version and exit.

Wishlist

The below are features I may or may not get around to implementing:

  • Windows support. This will need to include changing the build process, likely through the usage of CMake.
  • Refactors and rewrites. This is my first notable C project, there are bound to be areas that need improvement.

Contributing

Please adhere to the following when creating a pull request:

  • Ensure changes do not cause the compiler to return any warnings or errors.
  • Ensure changes are written in C89/90 that complies with SUSv2, but does not utilise features removed from or marked as obsolete in POSIX.1-2001 (SUSv3) or POSIX.1-2008 (SUSv4). Features in standards newer than SUSv2 may be utilised as long as whether the feature can be utilised on the current system is checked during compile time and the game will still run fine if the feature cannot be utilised.
  • Ensure changes match the general coding style of the project.
  • Ensure changes are branched from develop and the pull request merges back into develop.

Licence

Copyright © 2022-2023 Nicholas Ivkovic.

Licensed under the GNU General Public License version 3 or later. See ./LICENSE, or https://gnu.org/licenses/gpl.html if more recent, for details.

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

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.