create-template-html-css 1.9.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/COMPONENTS-GALLERY.html +735 -747
  3. package/README.md +179 -2
  4. package/bin/cli.js +15 -3
  5. package/package.json +1 -1
  6. package/templates/blackjack/index.html +97 -0
  7. package/templates/blackjack/script.js +381 -0
  8. package/templates/blackjack/style.css +452 -0
  9. package/templates/breakout/index.html +56 -0
  10. package/templates/breakout/script.js +387 -0
  11. package/templates/breakout/style.css +239 -0
  12. package/templates/connect-four/index.html +78 -0
  13. package/templates/connect-four/script.js +413 -0
  14. package/templates/connect-four/style.css +426 -0
  15. package/templates/dice-game/index.html +99 -0
  16. package/templates/dice-game/script.js +291 -0
  17. package/templates/dice-game/style.css +403 -0
  18. package/templates/flappy-bird/index.html +47 -0
  19. package/templates/flappy-bird/script.js +394 -0
  20. package/templates/flappy-bird/style.css +243 -0
  21. package/templates/game-2048/index.html +59 -0
  22. package/templates/game-2048/script.js +269 -0
  23. package/templates/game-2048/style.css +281 -0
  24. package/templates/pong/index.html +90 -0
  25. package/templates/pong/script.js +364 -0
  26. package/templates/pong/style.css +371 -0
  27. package/templates/rock-paper-scissors/index.html +84 -0
  28. package/templates/rock-paper-scissors/script.js +199 -0
  29. package/templates/rock-paper-scissors/style.css +295 -0
  30. package/templates/simon-says/index.html +64 -0
  31. package/templates/simon-says/script.js +206 -0
  32. package/templates/simon-says/style.css +250 -0
  33. package/templates/slot-machine/index.html +112 -0
  34. package/templates/slot-machine/script.js +238 -0
  35. package/templates/slot-machine/style.css +464 -0
  36. package/templates/tetris/index.html +84 -0
  37. package/templates/tetris/script.js +447 -0
  38. package/templates/tetris/style.css +286 -0
  39. package/templates/whack-a-mole/index.html +85 -0
  40. package/templates/whack-a-mole/script.js +172 -0
  41. package/{demo-games/snake-game → templates/whack-a-mole}/style.css +114 -97
  42. package/PUBLISH-GUIDE.md +0 -112
  43. package/create-template-html-css-1.8.0.tgz +0 -0
  44. package/demo-games/guess-number/index.html +0 -71
  45. package/demo-games/guess-number/script.js +0 -216
  46. package/demo-games/guess-number/style.css +0 -337
  47. package/demo-games/memory-game/index.html +0 -50
  48. package/demo-games/memory-game/script.js +0 -216
  49. package/demo-games/memory-game/style.css +0 -288
  50. package/demo-games/snake-game/index.html +0 -61
  51. package/demo-games/snake-game/script.js +0 -360
  52. package/demo-games/tic-tac-toe/index.html +0 -57
  53. package/demo-games/tic-tac-toe/script.js +0 -156
  54. package/demo-games/tic-tac-toe/style.css +0 -244
package/CHANGELOG.md CHANGED
@@ -5,6 +5,86 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.0.0] - 2026-02-05
9
+
10
+ ### Added
11
+ - **12 Additional Interactive Game Templates**: Major expansion with diverse game genres
12
+
13
+ **Puzzle & Strategy Games**:
14
+ - **2048**: Addictive tile-merging puzzle with touch & keyboard controls, undo feature, best score tracking
15
+ - **Connect Four**: Classic 4-in-a-row with AI opponent (3 difficulty levels), drop animations, win detection
16
+ - **Simon Says**: Memory pattern game with increasing difficulty, sound effects, high score tracking
17
+
18
+ **Arcade Classics**:
19
+ - **Breakout**: Brick breaker with lives system, level progression, paddle/ball physics, mouse & keyboard
20
+ - **Tetris**: Full Tetris with all 7 pieces, ghost preview, next piece display, level/speed progression
21
+ - **Flappy Bird**: Tap-to-flap obstacle game with animated background, realistic physics, increasing difficulty
22
+ - **Pong**: Classic paddle game with AI opponent (4 difficulty levels), 2-player mode, realistic ball physics
23
+ - **Whack-a-Mole**: Fast-paced arcade with difficulty levels, combo system, high score tracking
24
+
25
+ **Card & Casino Games**:
26
+ - **Blackjack**: Full 21 card game with betting system, dealer AI, Hit/Stand/Double, 3:2 blackjack payout
27
+ - **Slot Machine**: 3-reel slots with 8 weighted symbols, jackpot x100, confetti celebration, paytable
28
+
29
+ **Skill Games**:
30
+ - **Dice Game**: Race to 100 strategy game with AI opponent, roll/hold mechanics, animated dice
31
+ - **Rock-Paper-Scissors**: Classic hand game vs AI with best-of series, winning streak tracking
32
+
33
+ - **Enhanced Game Features**:
34
+ - Multiple AI difficulty levels in strategy games
35
+ - Advanced physics engines (Breakout, Pong, Flappy Bird)
36
+ - Complex game state management (Tetris, Blackjack)
37
+ - Canvas-based rendering for arcade games
38
+ - Weighted random algorithms (Slot Machine)
39
+ - localStorage for all game progress/scores
40
+ - Touch and keyboard control support
41
+ - Professional animations and visual feedback
42
+ - Responsive designs for all screen sizes
43
+
44
+ ### Changed
45
+ - Updated total template count from 30 to 46 components
46
+ - Expanded "Interactive Games" category from 4 to 16 games
47
+ - Updated CLI list command to display all 46 templates
48
+ - All game UI text translated to English
49
+ - Package version bumped to 2.0.0 (major release)
50
+
51
+ ### Technical Details
52
+ - All games are fully self-contained and work offline
53
+ - No external dependencies required
54
+ - Compatible with all modern browsers
55
+ - Canvas API used for rendering in applicable games
56
+ - Complex AI implementations (minimax-style for Connect Four, strategic for Dice Game)
57
+ - Proper game loop implementations with requestAnimationFrame
58
+
59
+ ## [1.9.0] - 2026-02-05
60
+
61
+ ### Added
62
+ - **4 New Interactive Game Templates**: Complete, playable games with full functionality
63
+ - **Tic-Tac-Toe**: Classic X and O game with score tracking, win detection, auto-reset, and winning cell highlighting
64
+ - **Memory Game**: Card matching game with 3 difficulty levels (4×4, 4×5, 4×6), move counter, timer, and emoji cards
65
+ - **Snake Game**: Classic snake with keyboard/touch controls, canvas rendering, increasing speed, and high score tracking
66
+ - **Guess the Number**: Number guessing game with hot/cold hints, 3 difficulty levels (1-100, 1-500, 1-1000), and best score tracking
67
+
68
+ - **Game Features**:
69
+ - Complete game logic and state management
70
+ - Score persistence using localStorage
71
+ - Responsive designs for mobile and desktop
72
+ - Smooth animations and visual feedback
73
+ - Touch and keyboard controls support
74
+ - Professional UI with modern gradients
75
+ - Win/lose detection and celebration animations
76
+
77
+ ### Changed
78
+ - Updated CLI list command to show 30 total components (was 26)
79
+ - Added new "Interactive Games" category in component list
80
+ - Updated package version from 1.8.1 to 1.9.0
81
+
82
+ ### Technical Details
83
+ - All games include HTML, CSS, and JavaScript files
84
+ - Games are fully self-contained and work offline
85
+ - No external dependencies required
86
+ - Compatible with all modern browsers
87
+
8
88
  ## [1.8.0] - 2026-02-02
9
89
 
10
90
  ### Added