Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Snake Game in Zig with raylib | No Commentary Coding ASMR

Автор: LEASY

Загружено: 2025-05-18

Просмотров: 972

Описание:

Welcome back to Leasy! In this episode, we’ll build a complete Snake game in Zig using the raylib library—entirely keyboard‑driven with no talking. You’ll see how to initialize a raylib window, handle keyboard input to move the snake, render the snake and food, update the game state each frame, and detect collisions. This walkthrough covers every line of code with no commentary in a format of a coding asmr youtube video.

🔗 Download Zig: https://ziglang.org/download
🔗 raylib‑Zig Bindings: https://github.com/Not-Nik/raylib-zig
🔗 The code in GitHub: https://github.com/smhcpp/Leasy/tree/...

What You’ll Learn:
Project Setup: How to configure a Zig project to use the raylib‑Zig bindings.
Window Initialization: Creating and setting up a window with raylib’s InitWindow, handling frame rate, and closing resources.
Game Loop Structure: Using Zig’s while loop to run the game until the player quits.
Drawing the Game Elements: Rendering the snake body, food, and background using raylib drawing functions.
Keyboard Input Handling: Capturing arrow key presses to change the snake’s direction.
Snake Movement and Growth: Managing a dynamic list of snake segments, updating positions each frame, and growing when food is eaten.
Food Generation: Randomly placing food on the screen when consumed by the snake.
Collision Detection: Checking for collisions with walls or the snake’s own body to trigger game over.

Chapters:
00:00 Raylib setup
05:05 First window
07:01 Game struct
14:25 Drawing snake and food
19:42 Snake movement
21:00 Enters a Guest
23:15 Frame time
27:46 Key input
31:32 Snake Growth
39:22 Collide checking
47:00 Fix food bug

If you enjoyed this deep dive, smash that 👍, drop a comment with your Zig+raylib game‑dev ideas, and subscribe for more Zig projects! 🚀✨

#Leasy #ZigLang #raylib #SnakeGame #GameDev #ZigTutorial #NoTalkingCoding

Snake Game in Zig with raylib | No Commentary Coding ASMR

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Игровая разработка в Zig на самом деле довольно хороша...

Игровая разработка в Zig на самом деле довольно хороша...

Zig Terminal Tic‑Tac‑Toe | Build & Explain a CLI Game in Zig

Zig Terminal Tic‑Tac‑Toe | Build & Explain a CLI Game in Zig

Challenge Lab Implementing a Serverless Architecture for the Café

Challenge Lab Implementing a Serverless Architecture for the Café

I Will Not Write Rust Again

I Will Not Write Rust Again

I Made My Own OS Using Zig!

I Made My Own OS Using Zig!

Производительность Rust против Zig против Go

Производительность Rust против Zig против Go

Я подключил все библиотеки C++ gamedev, так что вам не придется этого делать!

Я подключил все библиотеки C++ gamedev, так что вам не придется этого делать!

Fastest programming language: C++ vs Rust vs Zig | Dave Plummer and Lex Fridman

Fastest programming language: C++ vs Rust vs Zig | Dave Plummer and Lex Fridman

Why is Raylib becoming so popular?

Why is Raylib becoming so popular?

Beginner's Guide to Zig

Beginner's Guide to Zig

The AI Bubble Explained Like You're 5

The AI Bubble Explained Like You're 5

Building a Minesweeper game with Go and Raylib

Building a Minesweeper game with Go and Raylib

Достигните совершенства в владении языком Zig с помощью этих ресурсов для изучения языка

Достигните совершенства в владении языком Zig с помощью этих ресурсов для изучения языка

How to Setup Raylib with Zig (With & Without Bindings)

How to Setup Raylib with Zig (With & Without Bindings)

making a game in zig (i have never used zig) LIVE!

making a game in zig (i have never used zig) LIVE!

Drawing SPRITES in Raylib

Drawing SPRITES in Raylib

Making an interface in Zig isn't that bad! (Dynamic dispatch)

Making an interface in Zig isn't that bad! (Dynamic dispatch)

Same 128GB but cheaper

Same 128GB but cheaper

When Zig Outshines Rust | Prime Reacts

When Zig Outshines Rust | Prime Reacts

Build Android Games in C/C++ with raylib

Build Android Games in C/C++ with raylib

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]