-
Notifications
You must be signed in to change notification settings - Fork 1
/
InstructionsScreenFace.m
35 lines (31 loc) · 2.28 KB
/
InstructionsScreenFace.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function []=InstructionsScreenFace(window,responsekey)
DrawFormattedText(window, sprintf('%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s', ...
'Welcome to the FACE MATCHING game.', ...
'This game consists of two phases: Practice and Test.', ...
'Press a key to read the game rules.'), 'center', 'center',[0 0 0],[100],[],[],[2]);
Screen('Flip',window); KbStrokeWait;
DrawFormattedText(window, sprintf('%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s', ...
'On each trial, your task will be to decide if a FACE image changed or not.', ...
'1) First, maintain your fixation in the center waiting for the images to appear', ...
'1) Next, you will see two arrows directing you to the side of the screen you should attend', ...
'2) On that side of the screen, attend to the image that contains a FACE.', ...
'3) On the next screen, you will indicate if the FACE you just saw changed or not'), 'center', 'center',[0 0 0],[100],[],[],[2]);
Screen('Flip',window); KbStrokeWait;
DrawFormattedText(window, sprintf('%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s', ...
'For example, if you see two arrows pointing towards LEFT', ...
'Attend to the left side of the screen.', ...
'Then attend to the face which can be either on the top or the bottom of the screen,', ...
'then wait for the next screen to see if that face is the same or not.'), 'center', 'center',[0 0 0],[100],[],[],[2]);
Screen('Flip',window); KbStrokeWait;
if responsekey == 1
DrawFormattedText(window, sprintf('%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s', ...
'If the face changed between screens, press j on your keyboard ', ...
'If the face remained the same between screen, press f on your keyboard', ...
'Now press a key to start practicing.'), 'center', 'center',[0 0 0], [100],[],[],[2]);
elseif responsekey == 2
DrawFormattedText(window, sprintf('%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s', ...
'If the face changed between screens, press f on your keyboard ', ...
'If the face remained the same between screen, press j on your keyboard', ...
'Now press a key to start practicing.'), 'center', 'center',[0 0 0], [100],[],[],[2]);
end
Screen('Flip',window); KbStrokeWait;