CodeCraft-Python
Introduction
Vol. 1: Introducing CodeCraft
1 - First Python Program
Print a Message
Comment
Data Types
Variables
2 - CodeCraft 3D Game
Set up CodeCraft
First Block
3D Coordinates
More Blocks
Conclusion
3 - Loop
for loop & range() function
Build horizontal rows
Build vertical columns
Diagonals
More about range()
Solid & Dotted Line
Nested Loops
Wall & Cube
4 - Function Basics
Define a Function
Call a Function
Why Function?
Function Parameters
Return Values
5 - Functions in CodeCraft
block_m()
column_m()
Vol. 2: Learn Python Basics with CodeCraft
6 - Basic Data Types and Values
Variables and Value Assignments
Basic Math Operations
7 - String
String Indexing
Loop through a string
8 - List
List indexing and slicing
Loop through List
Demo list basics in CodeCraft
Manipulating Lists
Application in CodeCraft
9 - Dictionary
Accessing elements
Functions & methods
Materials dictionary
Iterate over a dictionary
Pro topic: 'air' block
10 - User Input
11 - Conditionals
Boolean
if/elif/else statements
Flow of control
12 - While Loop
Application in CodeCraft
Infinite loops and break
13 - Modules
random module
randint() in CodeCraft
Vol. 3: Complex Structures
14 - Bars & Flats
Functions for bars & flats
15 - Player Position
16 - Structures with for loops
Golden Gate Bridge
Death Star
Reference Code
17 - Cubes, Colorful Cubes
Code
18 - Build a house
Doors
Windows
House
Code
19 - Plant Trees
Funny Trees
Natural Looking Tree
Bigger Trees
Forest
Vol. 4: Timer & Recursion
Vol. 5: Class & Object (OOP)
Vol. 6: Events, Keyboard Control
Powered by
GitBook
Windows
Windows
The window structures are similar to doors. I'll provide a few designs as examples.
18-04 Simple windows
18-05 A window with
'air'
panel
18-06 More styles
results matching "
"
No results matching "
"