Skip to content

Hoangvu-Itptit/DuckHunt-Unity-Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

/*  + Duck Hunt
  + Ver : 2.0 - 04/2024
  + Hoang Minh Quan
  + www.khoahocvui.vn - Youtube Channel: Khoa Học Vui :https://www.youtube.com/c/KhoaHocVuiVn
*/
########################################################################################################
- This is a fun project combining Arduino and Unity.
In this project, we recreate the classic Nintendo duck shooting game from the 90s.
In this game, we design a gun with a light sensor to detect flying ducks on the screen.
Arduino programming is used to send signals to the PC.
Unity is used to program the duck shooting game and connect it to the gun via a USB connection to Arduino.
- How can I run this project?
The source code is divided into two parts for Arduino and Unity. Along with that is a file describing the circuit diagram connecting the electronic components needed.
You can download the source code and use Arduino Studio to view and run the Arduino commands.
Use Unity to open the pre-made projects in the Unity folder to test the game part.
For more information on how to use this project, you can follow additional videos on the Khoa Hoc Vui channel.
https://www.youtube.com/watch?v=W93gyR3Oa1Q

########################################################################################################
- Đây là dự án vui kết hợp giữa Arduino và Unity.
+ Trong dự án này chúng ta cùng dựng lại trò chơi bắn vịt của Nintendo ở những năm thập niên 90.
+ Trong trò chơi này chúng ta cùng thiết kế 1 khẩu súng có cảm biến ánh sáng để có thể phát hiện ra những con vịt bay trên màn hình. 
+ Lập trình Arduino để kết gửi tín hiệu tới PC.
+ Sử dụng Unity để lập trình ra game bắn vịt, và kết nối với khẩu súng thông qua kết nối cổng USB tới Arduino.

- Làm thế nào có thể chạy thử  dự án này?
+ Trong mã nguồn được chia sẻ có 2 phần giành cho Arduino và Unity. Bên cạnh đó là 1 file mô tả sơ đồ kết nối mạch điện giữa các linh kiện điện tử cần sử dụng.
+ Các bạn tải mã nguồn về và dùng Arduino Studio để xem và chạy những dòng lệnh giành cho Arduino.
+ Sử dụng Unity để mở prọects đã có sẵn trong thư mục Unity để chạy thử phần trò chơi.
+ Để biết thêm cách sử dụng dự án này, các bạn có thể theo dõi thêm video trên kênh Khoa Học Vui : 
https://www.youtube.com/watch?v=W93gyR3Oa1Q

About

Remake Duck Hunt game with Arduino and Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ShaderLab 72.1%
  • C# 14.3%
  • HLSL 12.5%
  • C++ 1.1%