Godot经典拼图2048数字益智游戏制作视频教程
- 1. Introduction
- 1. How to Download Godot and Create Your First Project
- 2. Learning the Layout of the Godot Engine
- 3. Game objects, Nodes, and Sprites
- 4. Writing and Managing Scripts in Godot
- 5. Understanding the 'extends' Keyword in Godot
- 6. Animating Objects with Scripts in Godot
- 7. How to Animate Objects in a Circular Path
- 8. Animating the Rotation of Nodes in Godot
- 9. Exporting Variables to Control their Values from the Editor
- 2. Creating a grid script
- 1. Making a Grid Cell Prefab to build a Grid with it
- 2. Building a Grid using only Scripts
- 3. Making a texture for the Grid Cell
- 3. Making the tiles
- 1. Creating a Tile Prefab to Spawn Tiles via Script
- 2. Changing the Tile Modulation and Font Color
- 4. Touch input swipe
- 1. Input Script to Detect Touch
- 2. Calculating the Delta Touch Position on Drag Event
- 3. Using Signals to Detect Swipes
- 4. Connecting the Swipe Signal
- 5. Moving tiles on the grid
- 1. Dictionary as Logical Representation of Grid Tiles
- 2. Finding 'Last Empty' Grid Cell in a Given Direction
- 3. Moving Tiles in Grid Dictionary
- 4. Using Loops to 'Effectively Move' a Tile Freely on the Board
- 5. Using Godot's Tween Engine to Animate Slide Tiles
- 6. Merging tiles
- 1. Syntax Errors and Logic Errors
- 2. Fixing Slide Rightwards by Changing Order of Iteration
- 3. Fixing Slide Down and Up by adding two more For Loops
- 4. Laying out the Plan for Merging Tiles
- 5. Keeping Dictionary Synchronized
- 6. Removing Tile Nodes from the Scene Tree After They Merge
- 7. Debugging, and the Real Meaning of Programming
- 7. Animating the merge action
- 1. Ilusions, Magic and Misdirection
- 2. Relative and Global (or absolute) positions and Scale Animation
- 3. Finishing Scale Animation, and Premature Optimization
- 4. Animating Foreground and Background Colors
- 5. Adjusting Merge Animation Timing, and Debugging a Puzzling Bug
- 6. Slow Motion, and Fixing the Puzzling Bug
- 8. Implementing the remaining features
- 1. Spawning Tiles at Random Grid Positions
- 2. Naive Algorithm for picking Random Grid Positions
- 3. Allowing only Tiles with 'Same Value' to Merge
- 4. Making Tiles Merge only 'Once Per Swipe'
- 5. Fixing bugs, and Pushing Forward to Finish the Game
- 6. The Random Bag Algorithm
- 7. Per Tile Font Adjustment
- 9. Adding sound effects and Organizing the project
- 1. Adding Sound Effects, and Organizing Assets
- 2. Finishing it up