From d378ccb6645db5dfb89647e6df9ac46360a0ca18 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 28 Dec 2021 00:09:00 -0500 Subject: [PATCH 1/3] changelog update; fix horrific ghost pieces --- CHANGELOG | 73 ++++++++++++++++++++++++++++-------------------- src/game/tile.rs | 2 +- 2 files changed, 43 insertions(+), 32 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index e9c0cc7..354310a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,31 +1,42 @@ -######### -# 0.0.1 # -######### -Released with minimal functionality. -Users can choose their keyboard control layouts, but they don't save to file. -Gamepads don't work at all. -Almost all gameplay functional as intended. - -######### -# 0.0.2 # -######### -Released with gamepad compatibility. -Added a list of used KeyCode's stored in the inputconfig menu that notifies the user if they try to reuse a KeyCode and ignores the input. -Escape clears selected input layout. -G sets a player to be controlled by a gamepad. -Users can setup their own gamepad layouts by adding their SDL2 Gamepad string to /resources/gamecontrollerdb.txt. -Gamepads auto-map to the first player that doesn't have a GamepadId mapping to it for easy setup. - -######### -# 0.1.0 # -######### -Renamed project: Rustrisn-t -> Tetrisn-t. -Improved menu slightly. -Various quality-of-life changes. - -######### -# 0.1.1 # -######### -Added active piece tile highlights -Added line clear animation using tile highlights -Made it easier to quit to menu +# Changelog +All notable changes to this project will be documented in this file. + +## [Unreleased] +### Added +- New mode: Rotatris (square board, 2 new buttons that rotate the board, clear rings). +- Ghost pieces. + +### Changed +- Made colors better so they are more easily called out (help, I'm colorblind). + +## [v0.1.1] - 03/15/21 +### Added +- Active piece tile highlights. +- Line clear animation using tile highlights. + +### Changed +- Made it easier to quit to menu. + +## [v0.1.0] - 01/28/21 +### Changed +- Renamed project: Rustrisn-t -> Tetrisn-t. +- Various quality-of-life changes. +- Improved menu slightly. + +## [v0.0.2] - Fall2020 +### Added +- Released with gamepad compatibility. +- A list of used KeyCode's are stored in the inputconfig menu that notifies the user if they try to reuse a KeyCode and ignores the input. +- 'G' sets a player to be controlled by a gamepad. +- Users can setup their own gamepad layouts by adding their SDL2 Gamepad string to `resources/gamecontrollerdb.txt`. +- Gamepads auto-map to the first player that doesn't have a GamepadId mapping to it for easy setup. + +### Changed +- Escape clears selected input layout. + +## [v0.0.1] - Fall2020 +### Added +- Minimal functionality. +- Users can choose their keyboard control layouts, but they don't save. +- Gamepads don't work at all. +- Almost all gameplay functional as intended. diff --git a/src/game/tile.rs b/src/game/tile.rs index f174576..73e0dab 100644 --- a/src/game/tile.rs +++ b/src/game/tile.rs @@ -69,7 +69,7 @@ const CLEARING_TILE_TETRISNT_HIGHLIGHT: [u8; 3] = [0xa0, 0x30, 0x10]; // [0][1][1][1][1][1][1][0] // this one is also opacity out of 0xff, since it's drawn over the empty tiles the piece would go to were it to go straight down -const GHOST_TILE_HIGHLIGHT: [u8; 4] = [0x40, 0x25, 0x20, 0x15]; +const GHOST_TILE_HIGHLIGHT: [u8; 4] = [0x20, 0x04, 0x00, 0x00]; // [0][0][0][0][0][0][0][0] // [0][1][1][1][1][1][1][0] From 4c29d51ef18e59b0a01366ad825562a21c0136db Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 28 Dec 2021 00:17:54 -0500 Subject: [PATCH 2/3] version bump to v0.2.0 --- Cargo.lock | 4 +++- Cargo.toml | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ce40c69..39128cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "ab_glyph" version = "0.2.11" @@ -2295,7 +2297,7 @@ dependencies = [ [[package]] name = "tetrisn-t" -version = "0.1.0" +version = "0.2.0" dependencies = [ "ggez", "glam 0.19.0", diff --git a/Cargo.toml b/Cargo.toml index eb15da7..41a534f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,11 +2,10 @@ [package] name = "tetrisn-t" -version = "0.1.0" +version = "0.2.0" authors = ["Brian \"Catcow\" B"] edition = "2018" - [profile.dev] opt-level = 0 overflow-checks = false # used in ./src/game/piece.rs when rotating and moving pieces left @@ -27,7 +26,6 @@ opt-level = 3 # codegen-units = 16 # rpath = false - [dependencies] ggez = "0.6" rand = "0.7.3" From 5169f0831ac4de76ec4c81973253fd5a4a171073 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 3 Jan 2022 13:47:36 -0500 Subject: [PATCH 3/3] tag date set to tomorrow --- CHANGELOG | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 354310a..fd98f48 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,7 @@ # Changelog All notable changes to this project will be documented in this file. -## [Unreleased] +## [v0.2.0] - 01/04/22 ### Added - New mode: Rotatris (square board, 2 new buttons that rotate the board, clear rings). - Ghost pieces.