Handmade Hero Day 001 - Setting Up the Windows Build

3 min read 4 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

  1. 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.
  2. Understanding the Livestream Purpose:

    • Molly is excited about the project and the community's response.
    • The series involves programming an entire game from scratch.
  3. Accessing Resources:

    • Visit handmadehero.org for resources and updates.
    • Use the Email a Question button for inquiries or ask questions on Twitch chat.
  4. Starting the Project:

    • Download Visual Studio 2013 Community Edition from visualstudio.com.
    • Use Visual Studio for project setup and debugging.
  5. Setting Up Command Prompt:

    • Customize Command Prompt properties for better visibility.
    • Create a build.bat file for compiling code using the Microsoft compiler (cl).
  6. Creating a Build System:

    • Understand the basics of a build system and batch files.
    • Compile code using the cl compiler from the command line.
  7. Configuring Environment Variables:

    • Set the PATH variable to include necessary directories for compilation.
    • Use vcvarsall.bat to configure the environment for the compiler.
  8. 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.
  9. Compiling Code:

    • Compile the code using the cl compiler and ensure successful execution.
    • Understand the role of import libraries in linking external functions.
  10. Testing the Program:

    • Run the compiled program to display a message box using MessageBoxEx.
    • Debug any errors and ensure the program runs as expected.
  11. Learning and Experimenting:

    • Explore MSDN documentation for Windows functions and libraries.
    • Experiment with different functions, flags, and compiler options.
  12. 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.
  13. Continuous Learning:

    • Practice setting up the environment and compiling code regularly.
    • Embrace challenges, make mistakes, and learn from hands-on experience.
  14. 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.