Skip to content

ThatDezKnightGuy/tetreggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TETREGGLE

Tetreggle is my attempt to:

  1. Learn a new language: JavaScript (js)
  2. Create a Proof of Concept for my nightmare game, Tetrs X Peggle

Tetris

This is a tetris implementation in js, based on this tutorial from Michael Karen, on Medium, with full git implementation of that tutorial here. It's an exploration of the syntax and implementation, and some attempts to extend the basic implementation of the tutorial.

Tetris: Unique implementations

  1. Piece storage and swapping via shift key
  2. Controls overlay
  3. Grid rendering
  4. Hidden grid print to console on c click

Tetris: Planned features

  1. Coloured edges for pieces
  2. B/W mode
  3. Colourblind mode
  4. Tile counter for tetronimo generation
    • This is for the peggle integration
  5. Multiple piece drop
  6. Pause
  7. Render on single canvas
    • This requires deeper understanding of the canvas environment

Tetris: Known bugs

  1. Swapping in O and I blocks can clip a block through the edge of the board and it will get trapped on rerender
    • Need to check the rotation and reposition the piece x position so it's not clipping

Peggle

This is based on some basic interactions from this codesandbox instance from xodial. The board generation logic, and the class-based movement logic is inspired by the examples in this POC, but based on general motion equations.


Notes

a

About

Creating a Tetris X Peggle PoC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages