Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS SpriteKit split screen for lazy eye exercise

A Little Background

My son Seth has a Lazy Eye and there is evidence that his condition can be improved by playing video games. Tetris Video Game Helps Treat Lazy Eye

Basically he has poor focus in one eye and perfect focus in the other eye. Over time his brain has started the process of shutting off and ignoring the bad eye. He wears a contact now to correct the focus issue but, his brain is still in the habit of ignoring that eye.

So not just any game will work. He needs something that forces his eyes to collaborate to bring together and track images.

I can use Durovis Dive or Google Cardboard to separate the images he will be processing.

He is a fan of Flappy Bird so a clone of this would be a good start.

My thought is to have the bird visible only to his left eye and the pipes only visible to his right eye. The background is visible to both eyes to give his brain a reference to bring the images together.

So Here is the actual question

I have ran into an issue trying to get a scrolling background and scrolling pipes working in two screens that clip at the right point.

How can I create a screen like below that

  1. The background scrolls in sync in both windows?
  2. The pipes clip at the center?

enter image description here

Thanks!

like image 363
Jamey McElveen Avatar asked Nov 01 '22 14:11

Jamey McElveen


1 Answers

A crop node (or two) might do the trick so that it masks out the other half of the screen.

like image 157
LearnCocos2D Avatar answered Nov 15 '22 00:11

LearnCocos2D