Handmade Hero Day 001 - Setting Up the Windows Build
3 min read
8 months ago
Published on Apr 22, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Step-by-Step Tutorial: Setting Up Windows Build for Handmade Hero Day 001
-
Introduction to the Project:
- Molly Rocket is setting up the Windows build for Handmade Hero Day 001.
- The project involves setting up the environment to compile and run code on Windows.
-
Understanding the Livestream Purpose:
- Molly is excited about the project and the community's response.
- The series involves programming an entire game from scratch.
-
Accessing Resources:
- Visit handmadehero.org for resources and updates.
- Use the Email a Question button for inquiries or ask questions on Twitch chat.
-
Starting the Project:
- Download Visual Studio 2013 Community Edition from visualstudio.com.
- Use Visual Studio for project setup and debugging.
-
Setting Up Command Prompt:
- Customize Command Prompt properties for better visibility.
- Create a
build.bat
file for compiling code using the Microsoft compiler (cl
).
-
Creating a Build System:
- Understand the basics of a build system and batch files.
- Compile code using the
cl
compiler from the command line.
-
Configuring Environment Variables:
- Set the PATH variable to include necessary directories for compilation.
- Use
vcvarsall.bat
to configure the environment for the compiler.
-
Launching Programs from Command Line:
- Create a
startup.bat
file to set up environment variables at startup. - Customize the shell startup to automate environment setup.
- Create a
-
Compiling Code:
- Compile the code using the
cl
compiler and ensure successful execution. - Understand the role of import libraries in linking external functions.
- Compile the code using the
-
Testing the Program:
- Run the compiled program to display a message box using
MessageBoxEx
. - Debug any errors and ensure the program runs as expected.
- Run the compiled program to display a message box using
-
Learning and Experimenting:
- Explore MSDN documentation for Windows functions and libraries.
- Experiment with different functions, flags, and compiler options.
-
Engaging with the Community:
- Preorder the game to access the source code and follow along.
- Participate in Q&A sessions to clarify doubts and deepen understanding.
-
Continuous Learning:
- Practice setting up the environment and compiling code regularly.
- Embrace challenges, make mistakes, and learn from hands-on experience.
-
Q&A Session:
- Attend the Q&A session to ask questions and gain further insights.
- Engage with the community and seek guidance on programming topics.
By following these steps, you can set up the Windows build environment for Handmade Hero and start coding your game from scratch. Enjoy the learning process and don't hesitate to explore and experiment with different functionalities.