How to build a game engine |

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • Day 008 - Lets setup A Basic Sweet Logger to log to the console!
    Welcome to day 008 of lets build a game engine on macOS.
    In this video we setup our Logger System which we will use to log the terminal/console and have our logs distinguishable by color.
    this video format is inspired by the handmade hero series.
    The end goal with this series is to have a basic game engine that supports Vulkan and Metal and the process of setting up both these backend rendering APIs will be recorded and shared on this channel.
    Please note this is not a tutorial per say but a way of getting things done, so take every method shown with a grain of salt as I am not a professional but simply a computer science student learning and sharing what I know in my free time.

Комментарии • 10

  • @Music_Eating_Fox_Productions
    @Music_Eating_Fox_Productions Месяц назад

    I'm not sure why there's a space in your version, but I removed the new line character from out_message instead of the printf, and that doesn't have the space:
    const char *out_message = string_format("\033[%sm %s \033[0m", text_color[level], formatted);
    printf("\033[%sm%s:%d: %s\033[0m
    ", text_color[level], file, line, out_message);
    I also created a clean function and a run function to my make file! Makes building so much faster :)
    Also (again), is your terminal also custom? I looks really cool and neat, so I'd love to use it :)

    • @luthecoder
      @luthecoder  Месяц назад

      @@Music_Eating_Fox_Productions awesome! I’ll make the necessary changes as well then 😁👏!!
      Yes my terminal is somewhat customised globally… however this is due to the fact I used to code in Neovim.. so in essence im not entirely sure where I got my configuration from but when I find it I’ll drop it in one of the coming videos

    • @Music_Eating_Fox_Productions
      @Music_Eating_Fox_Productions Месяц назад

      @@luthecoder Yay!

  • @WujoFefer
    @WujoFefer Месяц назад +1

    Another day, another engine… 😂

    • @luthecoder
      @luthecoder  Месяц назад

      @@WujoFefer yes!!!🙌🏽

  • @Alihan-cy8ec
    @Alihan-cy8ec Месяц назад

    What is the theme in VSCode?

    • @luthecoder
      @luthecoder  Месяц назад

      @@Alihan-cy8ec it’s my own custom theme😁

    • @Alihan-cy8ec
      @Alihan-cy8ec Месяц назад

      @@luthecoder I want it too! 😄

    • @luthecoder
      @luthecoder  Месяц назад

      @@Alihan-cy8ec I shared the settings on the day 007 #2 video where I setup the VScode project.. try watching the video at 01:00 that’s where I shared the file code

  • @programmingholic
    @programmingholic Месяц назад +1

    bro voice is very low