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.
- package/CHANGELOG.md +80 -0
- package/COMPONENTS-GALLERY.html +735 -747
- package/README.md +179 -2
- package/bin/cli.js +15 -3
- package/package.json +1 -1
- package/templates/blackjack/index.html +97 -0
- package/templates/blackjack/script.js +381 -0
- package/templates/blackjack/style.css +452 -0
- package/templates/breakout/index.html +56 -0
- package/templates/breakout/script.js +387 -0
- package/templates/breakout/style.css +239 -0
- package/templates/connect-four/index.html +78 -0
- package/templates/connect-four/script.js +413 -0
- package/templates/connect-four/style.css +426 -0
- package/templates/dice-game/index.html +99 -0
- package/templates/dice-game/script.js +291 -0
- package/templates/dice-game/style.css +403 -0
- package/templates/flappy-bird/index.html +47 -0
- package/templates/flappy-bird/script.js +394 -0
- package/templates/flappy-bird/style.css +243 -0
- package/templates/game-2048/index.html +59 -0
- package/templates/game-2048/script.js +269 -0
- package/templates/game-2048/style.css +281 -0
- package/templates/pong/index.html +90 -0
- package/templates/pong/script.js +364 -0
- package/templates/pong/style.css +371 -0
- package/templates/rock-paper-scissors/index.html +84 -0
- package/templates/rock-paper-scissors/script.js +199 -0
- package/templates/rock-paper-scissors/style.css +295 -0
- package/templates/simon-says/index.html +64 -0
- package/templates/simon-says/script.js +206 -0
- package/templates/simon-says/style.css +250 -0
- package/templates/slot-machine/index.html +112 -0
- package/templates/slot-machine/script.js +238 -0
- package/templates/slot-machine/style.css +464 -0
- package/templates/tetris/index.html +84 -0
- package/templates/tetris/script.js +447 -0
- package/templates/tetris/style.css +286 -0
- package/templates/whack-a-mole/index.html +85 -0
- package/templates/whack-a-mole/script.js +172 -0
- package/{demo-games/snake-game → templates/whack-a-mole}/style.css +114 -97
- package/PUBLISH-GUIDE.md +0 -112
- package/create-template-html-css-1.8.0.tgz +0 -0
- package/demo-games/guess-number/index.html +0 -71
- package/demo-games/guess-number/script.js +0 -216
- package/demo-games/guess-number/style.css +0 -337
- package/demo-games/memory-game/index.html +0 -50
- package/demo-games/memory-game/script.js +0 -216
- package/demo-games/memory-game/style.css +0 -288
- package/demo-games/snake-game/index.html +0 -61
- package/demo-games/snake-game/script.js +0 -360
- package/demo-games/tic-tac-toe/index.html +0 -57
- package/demo-games/tic-tac-toe/script.js +0 -156
- 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
|