You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Aramir 32310c549a Moving to Gitea, nuking history 3 months ago
Assets Moving to Gitea, nuking history 3 months ago
ProjectSettings Moving to Gitea, nuking history 3 months ago
UnityPackageManager Moving to Gitea, nuking history 3 months ago
.gitignore Moving to Gitea, nuking history 3 months ago
Assembly-CSharp-Editor.csproj Moving to Gitea, nuking history 3 months ago
Assembly-CSharp.csproj Moving to Gitea, nuking history 3 months ago
Readme.md Moving to Gitea, nuking history 3 months ago
UnityOpenCV.Editor.csproj Moving to Gitea, nuking history 3 months ago
UnityOpenCV.csproj Moving to Gitea, nuking history 3 months ago
UnityOpenCV.sln Moving to Gitea, nuking history 3 months ago

Readme.md

MAGIC TRICK

DESCRIPTION

Little game about a wizard training his telekinesis power. Come play with his balls. Kids friendly game requiring sense of balance and equilibrium using webcam as an input device.

Windows (x64) V0.03 : https://hijackedbrain.com/data/games/unity/magictrick/MagicTrick_x64_V0_3.zip

Windows (x64) V0.02 : https://hijackedbrain.com/data/games/unity/magictrick/MagicTrick_x64_V0_2.zip

Windows (x64) V0.01 : https://hijackedbrain.com/data/games/unity/magictrick/MagicTrick_x64_V0_1.zip

INSTALLATION :

!!! WARNING !!! A camera is required to play this game. Please before playing go into the Option screen in game and calibrate the camera using provided sliders. Bottom sliders can be described as such:

  • Hue : could be somewhat attributed to the color you want to track
  • Saturation : describes the "intensity" / "purity" of the color
  • Value : being its "shiny factor"

Side sliders are :

  • Minimal size of the bridge : If the tracked object takes less than xxx% of the screen then the brdige won't be displayed.
  • Capture size buffer : Number of frames used to average the inputs in order to get smooth movements in game Use the visual feedback to determine wheter or not your object is being tracked correctly. Detected object should be outlined by the program.

OBJECTIVE :

Player can create and move a brdige using their tracked object (preferably a pen as the game comes somewhat calibrated for the traditional green "Bic Evolution" pencils but it could be anything). They can move it, rotate it, resize it by moving back and forth the pen or obstrucating it. The bigger it is in the input frames, the bigger it will be in-game. You'll need to combine all of that to bring the lemmings (green balls) to the exit (blue box) while saving them from the fireballs (orange balls). Every level come with an objective as a minimal number of Lemmings to save. Along with a timer that ticks down to your defeat. Tinker around with the physic, try it, break it, enjoy it.

VIDEO :

Trailer : https://www.youtube.com/watch?v=PbJ5LmODQxM

Gameplay footage (v0.1 version) : https://www.youtube.com/watch?v=HHw6gN5QTI4

TECHNICAL FEATURES

  • OpenCV Integration without the need of any weird nugget/visual studio installation shenanigans.
  • Basic MultiThreading in order to parallelize the webcam computing stuff and the rest of the game
  • Providing standalone OpenCV/Unity executable.
  • Dynamic Object Tracking (with edges and colors) with buffered inputs for smoother movements in-game
  • Texture integration (in Option menu) with framing of the tracked object in realtime.
  • Calibration Scene so the user can play the game with any object they want.

KNOWN BUGS / TODO

  • Bridge can sometime go throught lemmings. It is due to the quality/framerate of the camera used and it is a limitation of the built-in Unity Physic Engine. Fixing this bug would take quite some time. Time that we don't have. So please, if you're experiencing it, try to change the Capture Size Buffer in the options and do slower movements. It might help you smoothing the bridge's movements.
  • "Help, my bridge has parkinson !", please go back to the Calibration scenes and try to increases any minimal values, decrease max values. It doesn't matter if only part of your object is framed. As long as it's stable, it's stable !

CREDITS :

Developers :

  • Gomez Gwendoline
  • Gaillard Matthias

For the bacgrounds :

For the music :