Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadret committed Jan 5, 2024
0 parents commit 54d7a9e
Show file tree
Hide file tree
Showing 10 changed files with 2,256 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules/
**/build/
674 changes: 674 additions & 0 deletions licence.txt

Large diffs are not rendered by default.

474 changes: 474 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "openrct2-rctris",
"description": "OpenRCT2 RCTtris Plug-In inspired by the gameplay of Tetris (c)",
"author": "Sadret",
"version": "1.0.0",
"license": "GPL-3.0",
"type": "module",
"scripts": {
"build-develop": "rollup -c rollup.config.develop.js",
"build-release": "rollup -c rollup.config.release.js"
},
"dependencies": {},
"devDependencies": {
"openrct2-flexui": "^0.1.0-prerelease.12",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.1.1",
"rollup": "^3.17.2",
"tslib": "^2.5.2",
"typescript": "^5.0.4"
}
}
64 changes: 64 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# OpenRCT2 RCTris

An OpenRCT2 plug-in inspired by the gameplay of Tetris (c).

## Installation

1. Make sure that your OpenRCT2 version is up-to-date. You need at least version `0.4.5` or a recent development version.
2. Go to the [releases](https://github.com/Sadret/openrct2-rctris/releases) page and download the `openrct2-rctris-1.0.0.js` file from the latest release. Save it in the `plugin` subfolder of your OpenRCT2 user directory.\
On Windows, this is usually at `C:Users\{User}\Documents\OpenRCT2\plugin`.
3. Start OpenRCT2 and open a scenario. The plug-in can be found in the map menu in the upper toolbar of OpenRCT2.

## Gameplay

Fill the game arena with blocks.
Completely filled lines disappear and increase the score.
More difficult moves and line clears reward more points.
More details can be found for example on [Wikipedia](https://en.wikipedia.org/wiki/Tetris).

## Game Modes

- Sprint: clear 2 lines to level up
- Marathon: clear 10 lines to level up

## Controls

The controls can be changed in OpenRCT2's shortcut settings.
The default keys are:

| Action | Key |
| ----------------------- | -------- |
| Move left | Numpad 4 |
| Move right | Numpad 6 |
| Soft drop | Numpad 5 |
| Hard drop | Space |
| Rotate clockwise | Numpad 8 |
| Rotate counterclockwise | Numpad 7 |
| Hold | Numpad 9 |

## Planned Features

- timed game modes
- online multiplayer
- online highscores

Subscribe to my YouTube channel to learn about upcoming features:
[Sadret Gaming](https://www.youtube.com/channel/UCLF2DGVDbo_Od5K4MeGNTRQ/)

## Support Me

If you find any bugs or if you have any ideas for improvements, you can open an issue on GitHub or contact me on Discord: Sadret#2502.

If you like this plug-in, please leave a star on GitHub.

If you really want to support me, you can do this here:
- [Paypal](paypal.me/SadretGaming) (no fees if send to "Friends and Family")
- [Buy me a coffee](https://www.buymeacoffee.com/SadretGaming) (credit card or Link)
- [Ko-fi](https://ko-fi.com/sadret) (credit card or PayPal)
- [GitHub Sponsors](https://github.com/sponsors/Sadret) (credit card)

## Copyright and License

Copyright (c) 2024 Sadret\
The OpenRCT2 plug-in "RCTris" is licensed under the GNU General Public License version 3.\
This plugin uses OpenRCT2-FlexUI by Basssiiie which is licensed under the MIT License.
14 changes: 14 additions & 0 deletions rollup.config.develop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";

export default {
input: "./src/index.ts",
output: {
format: "iife",
file: "./build/openrct2-rctris-develop.js",
},
plugins: [
resolve(),
typescript(),
],
};
25 changes: 25 additions & 0 deletions rollup.config.release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import resolve from "@rollup/plugin-node-resolve";
import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";

export default {
input: "./src/index.ts",
output: {
format: "iife",
file: "./build/openrct2-rctris-1.0.0.js",
},
plugins: [
resolve(),
typescript(),
terser({
format: {
preamble: "\
// Copyright (c) 2024 Sadret\n\
// This software is licensed under the GNU General Public License version 3.\n\
// This software uses OpenRCT2-FlexUI by Basssiiie which is licensed under the MIT License.\n\
// The full text of these licenses can be found here: https://github.com/Sadret/openrct2-rctris\
",
},
}),
],
};

0 comments on commit 54d7a9e

Please sign in to comment.