Fizemos o JOGO da COBRINHA #SagaDosComputadores Ep.10

Manual do Mundo
24 Dec 202210:07

Summary

TLDRIn the final episode of the 'Saga dos Computadores,' the creators construct a Snake game from scratch, integrating all the computer knowledge acquired throughout the series. Utilizing an Arduino Mega for its enhanced memory, the game runs on a homemade LED monitor and is controlled with two buttons. The script explains the game's logic, including the snake's movement, food consumption, and growth mechanics, as well as how the game's speed increases with each food eaten. The video also highlights a partnership with a technology school, emphasizing the importance of learning and the joy of creating educational games.

Takeaways

  • 🎮 The episode marks the end of the series, where they will build a snake game from scratch using everything learned.
  • 🖥️ The project uses an Arduino Mega for its increased memory, as the Nano and Uno were too small for the game.
  • 🔌 Only two buttons are used to control the game, keeping the hardware simple, with options to use jumpers for those without dedicated buttons.
  • 🍽️ The snake game involves chasing food to grow longer, with the challenge of avoiding collisions with itself.
  • 💾 The game logic relies on the Arduino storing the snake’s position in memory and checking its movements within a Cartesian grid system.
  • 🔄 The snake turns direction based on button inputs, and the Arduino checks the state of the buttons before each movement.
  • 🕹️ The Arduino has to track the snake's direction in memory to determine correct turns (north, south, east, west).
  • 🍎 The food position is randomly generated using two coordinates (x and y), and the snake grows when its head coincides with the food.
  • 🚫 The game ends when the snake collides with itself, and the Arduino checks for this after every movement.
  • ⏩ The snake’s speed increases after every four pieces of food, making the game progressively harder.

Q & A

  • What is the main theme of the video series being concluded in the transcript?

    -The main theme of the video series is a saga about computers, where the final episode focuses on building a snake game from scratch using all the knowledge acquired throughout the series.

  • What is the significance of the snake game in the context of the video?

    -The snake game is significant as it is a practical application that combines all the computer knowledge discussed in the series, from hardware to programming.

  • What type of computer is used to run the snake game in the video?

    -The snake game in the video is run on an Arduino, which is a simple microcontroller-based computer.

  • Why did the creators choose to use an Arduino for the snake game?

    -The creators chose to use an Arduino because it is one of the simplest computers available, and it has enough memory and processing power for the game, unlike the Arduino Nano or Uno which have limited memory.

  • What is the hardware setup for the snake game's display mentioned in the transcript?

    -The hardware setup for the snake game's display is a homemade LED matrix, which was explained in a previous episode of the series.

  • How many buttons are used as input for the snake game, and what are they used for?

    -Two buttons are used as input for the snake game, one for turning the snake left and the other for turning it right.

  • How does the snake game's logic handle the snake moving and turning on the LED matrix?

    -The game logic handles the snake's movement by turning on and off LEDs in a sequence to create the illusion of motion. Turning is managed by lighting up the LED to the side of the current leading LED, depending on the direction the snake is turning.

  • What happens when the snake in the game hits the edge of the display?

    -When the snake hits the edge of the display, it wraps around to the opposite edge and continues moving, starting from the bottom edge if it hit the top.

  • How does the game determine when the snake has eaten the food?

    -The game determines that the snake has eaten the food when the LED representing the snake's head coincides with the LED representing the food.

  • What is the challenge for the player in the snake game?

    -The challenge for the player is to feed the snake as much as possible without letting it hit itself, which increases in difficulty as the snake grows longer and the game's speed increases.

  • What is the role of the 'Lura' mentioned in the transcript?

    -Lura is a major online technology school in Brazil that partnered with the creators to support the production of the video series, providing courses on various technology topics, including game development.

Outlines

plate

هذا القسم متوفر فقط للمشتركين. يرجى الترقية للوصول إلى هذه الميزة.

قم بالترقية الآن

Mindmap

plate

هذا القسم متوفر فقط للمشتركين. يرجى الترقية للوصول إلى هذه الميزة.

قم بالترقية الآن

Keywords

plate

هذا القسم متوفر فقط للمشتركين. يرجى الترقية للوصول إلى هذه الميزة.

قم بالترقية الآن

Highlights

plate

هذا القسم متوفر فقط للمشتركين. يرجى الترقية للوصول إلى هذه الميزة.

قم بالترقية الآن

Transcripts

plate

هذا القسم متوفر فقط للمشتركين. يرجى الترقية للوصول إلى هذه الميزة.

قم بالترقية الآن
Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
ArduinoSnake GameComputer EngineeringDIY ProjectEducationalTechnologyCodingElectronicsProgrammingHardware
هل تحتاج إلى تلخيص باللغة الإنجليزية؟