Skip to content

Commit

Permalink
Merge pull request #58 from Brian-Catcow-B/v0.2.0-finalizations
Browse files Browse the repository at this point in the history
V0.2.0 finalizations
  • Loading branch information
Brian-Catcow-B authored Jan 3, 2022
2 parents 023c4c6 + 5169f08 commit 77f71aa
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 36 deletions.
73 changes: 42 additions & 31 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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.

## [v0.2.0] - 01/04/22
### 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.
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,7 +26,6 @@ opt-level = 3
# codegen-units = 16
# rpath = false


[dependencies]
ggez = "0.6"
rand = "0.7.3"
Expand Down
2 changes: 1 addition & 1 deletion src/game/tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 77f71aa

Please sign in to comment.