Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2022:agmocanu:snake_game [2022/05/12 19:48]
ahmad.shaker [Block Diagram]
pm:prj2022:agmocanu:snake_game [2022/05/27 21:54] (current)
ahmad.shaker [Jurnal]
Line 29: Line 29:
 The IDE used was the Arduino IDE, with the Led Control library, no external libraries nor game engines were used. However, it was initially tested online on TinkerCAD before finalizing the purchase of the parts and code. The IDE used was the Arduino IDE, with the Led Control library, no external libraries nor game engines were used. However, it was initially tested online on TinkerCAD before finalizing the purchase of the parts and code.
  
 +The signals sent by the potentiometer tell the Arduino the current direction of the joystick, depending on that, the snake changes direction accordingly,​ and the apple on screen is displayed using two random integers for x and y coordinates. ​
 +
 +The snake location is determined by a 2D array, with each subarray containing coordinates of the light'​s position, each time the snake eats an apple, ​
 +the size is incremented by one.
 +
 +The game is lost when the snake hits itself (any part of its body), the borders of the screen do not end your game ( I made it that way due to screen size limitations ) 
 ===== Rezultate Obţinute ===== ===== Rezultate Obţinute =====
  
 +After a few days of work, the final result was a success. After a few faulty wire changes and a thousand google searches, the game finally worked perfectly. The video game turned out to be a success. ​
 ===== Concluzii ===== ===== Concluzii =====
  
 +This is the first time I've worked on an Arduino Project, I learned the basics of electronics during this class and especially during the project. I bought a starter kit to work on future side projects. Loved the experience.
 ===== Download ===== ===== Download =====
  
-<note warning> 
-O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectului:​ surse, scheme, etc. Un fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-). 
  
-Fişierele se încarcă pe wiki folosind facilitatea **Add Images or other files**. Namespace-ul în care se încarcă fişierele este de tipul **:pm:prj20??:​c?​** sau **:​pm:​prj20??:​c?:​nume_student** (dacă este cazul)**Exemplu:​** Dumitru Alin, 331CC -> **:​pm:​prj2009:​cc:​dumitru_alin**. +GitHub repositoryhttps://github.com/​theahmadshaker/​Arduino-Snake-Game/​tree/main
-</note>+
  
 ===== Jurnal ===== ===== Jurnal =====
  
-<note tip> +**20/​11/​2022**: ​ Watched a youtube video for a YouTuber called Sebastian Lague, a YouTuber that likes to tinker with electronics and programming projects. The video was about a handheld gaming console that can run the Snake game, Tetris, and a space shooter game, he then bundled the Arduino board and all of the components in a cardboard box and started using it. I loved the project. That day I became a fan of electronics and set out a plan to create the project myself, even if just a minified version of it. 
-Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului+ 
-</note>+**Channel Link** : https://www.youtube.com/​c/​SebastianLague 
 +**Video Link** : https://​youtu.be/​TURzbXTNaA0 
 + 
 +** 06/03/2022 **: After months of procrastination. Turns out that this semester I have a university subject in that I have to use Arduino boards, and for the subject, we have to submit a project at the end of the semester. Immediately my mind went back to the video I had watched a few months earlier and I finally have a reason and motivation to work on it.
  
 +** 25/​04/​2022**:​ The time has finally come to start working on the project, I order a starter kit from aiautomation.ro. Two days later the parts arrive and I start working, I try to implement the logic I had recently used in a snake video game built for the web, using javascript, and try to implement it for a led matrix. After weeks and long hours of work, I managed to work a simple snake video game build for an 8x8 led matrix and Arduino Uno board and a joystick and the project was an ace. 
 ===== Bibliografie/​Resurse ===== ===== Bibliografie/​Resurse =====
  
pm/prj2022/agmocanu/snake_game.1652374102.txt.gz · Last modified: 2022/05/12 19:48 by ahmad.shaker
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0