-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
807 lines (718 loc) · 24.4 KB
/
main.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <vector>
#include <iostream>
#include<queue>
using namespace std;
using namespace sf;
const int SIZE = 10;
const int CELL_SIZE = 90;
float delay = 0;
int animation = 0;
int visitedc = 0;
int walls = 0;
float deltatime=0;
bool moving=0;
Clock game;
Clock gameclock;
string arrayOfInteractions[12];
string arrayOfInteractions2[12];
bool Interacting = false;
bool clicked = false;
struct reminder
{
private:
Vector2f frameScale;
Sprite frameSprite;
Texture frameTexture;
Font arcadeClassic;
string final_string;
string displayed_text;
Text textToBeDisplayed;
Text pressSpaceToSkip;
string player_name;
bool aborted = false;
void setInteractions2(string arr[]){
arr[0] = "Something is wrong!, \n make it agian";
arr[1] = "you still doing that shit! \nduhhhhh! \ntry again";
arr[2] = "SEE HOW DUMP IS HE! HAHAHAHA \ntry again";
arr[3] = "The maze is not logically set\nAll cells must be reachable,\ntry to confuse me.";
arr[4] = "something is not connected,\ntry again.";
arr[5] = "let me see your best \nat building it again.";
arr[6] = "are you good at \nbuilding mazes? ,i don't think so.\ntry again";
arr[7] = "There is UnReachable Path,try again.";
arr[8] = "you built it wrong!\ntry again";
arr[9] = "";
arr[10] = "";
arr[11] = "";
}
public:
int no_of_interactions = 6;
float timer_per_letter = 0.1;
bool finishedInteracting = false;
bool deletingWindow = false;
bool isActive = false;
void interactionSetProp(string interactions[],float xPos, float yPos)
{
text_index = 0;
textTimer = 0.1;
pauseTimer = 2.5;
aborted = false;
deletingWindow = false;
finishedInteracting = false;
xpos = xPos;
ypos = yPos;
setInteractions2(interactions);
// loads textures
frameTexture.loadFromFile("images/textbox.png");
frameSprite.setTexture(frameTexture);
frameSprite.setPosition(xPos, yPos);
textToBeDisplayed.setPosition(frameSprite.getPosition().x - 212, frameSprite.getPosition().y - 110);
textToBeDisplayed.setFillColor(Color::Black);
frameSprite.setOrigin(250, 250);
pressSpaceToSkip.setPosition(190, 633);
pressSpaceToSkip.setScale(2, 2);
// set initial scales
frameSprite.setScale(0, 0);
textToBeDisplayed.setScale(0.8, 0.8);
// set final scales
frameScale = {1.2, 1.2};
arcadeClassic.loadFromFile("fonts/Comicaboom.otf");
textToBeDisplayed.setFont(arcadeClassic);
//pressSpaceToSkip.setFont(arcadeClassic);
//pressSpaceToSkip.setString("Press Space To Skip");
displayed_text = "";
// takes a random interaction out of the interactions array
int randomNumb = rand() % no_of_interactions;
final_string ="\n" + interactions[randomNumb];
textToBeDisplayed.setString(displayed_text);
}
private:
int text_index = 0;
float textTimer = 0.1;
float pauseTimer = 0.2;
int flutter_timer = 20;
bool isSkipTextShown = true;
// properties set by user using set prop function
float xpos;
float ypos;
string inter_arr[100];
public:
// update functions: gradually scales window, then gradually scales icon, then gradually shows text
void update(float deltatime, RenderWindow &window)
{
float scale_offset = 2;
float descale_offset = 2;
if(finishedInteracting){
cout << "finished interacting\n";
}
else
cout << "not finished interacting\n";
// if the window isnt big enough yet, it gets scaled
if (frameSprite.getScale().x < frameScale.x and frameSprite.getScale().y < frameScale.y and !deletingWindow and !aborted)
{
frameSprite.setScale({frameSprite.getScale().x + scale_offset * deltatime, frameSprite.getScale().y + scale_offset * deltatime});
}
// if both window is scaled, we start displaying the text gradually
else
{
// if not all of string have been displayed
if (text_index < final_string.length() and !aborted)
{
if (textTimer <= 0)
{
displayed_text = displayed_text + final_string[text_index];
textToBeDisplayed.setString(displayed_text);
text_index++;
textTimer = timer_per_letter;
}
else
textTimer -= deltatime;
}
// if all has been displayed, starts timer, and when it ends, it destroys the window
else
{
if (pauseTimer <= 0 or aborted)
{
deletingWindow = true;
// if not , plays reverse animation for shrinking
if (frameSprite.getScale().x > 0 and frameSprite.getScale().y > 0 and !finishedInteracting)
{
frameSprite.setScale({frameSprite.getScale().x - descale_offset * deltatime, frameSprite.getScale().y - descale_offset * deltatime});
textToBeDisplayed.setScale(0, 0);
}
// if finished shrinking, destroys and marks the bool as true for external use
else if (frameSprite.getScale().x <= 0 or frameSprite.getScale().y <= 0)
{
frameSprite.setScale(0, 0);
textToBeDisplayed.setScale(0, 0);
finishedInteracting = true;
}
}
else
pauseTimer -= deltatime;
}
}
}
void draw(RenderWindow& window)
{
if (!finishedInteracting)
{
window.draw(frameSprite);
window.draw(textToBeDisplayed);
}
}
void abort()
{
aborted = true;
}
}seeked;
struct interactionWindow
{
private:
Vector2f frameScale;
Sprite frameSprite;
Texture frameTexture;
Font arcadeClassic;
string final_string;
string displayed_text;
Text textToBeDisplayed;
Text pressSpaceToSkip;
string player_name;
bool aborted = false;
void setInteractions(string arr[])
{
arr[0] = "Welcome to the game! here everything is\ndifferent,you can't beat me as well.\nby the way let me introduce myself...";
arr[1] = "My Name is The Labyrinthian,unlike my name says\nyou can't make me get lost,\nMy developrs Abdelrahman and Amr \nmade sure of that, so good luck with that.";
arr[2] = "you still here , duhhhhh boring! \ngo and do something.";
}
public:
float timer_per_letter = 0.1;
bool finishedInteracting = false;
bool deletingWindow = false;
bool isActive = false;
void interactionSetProp(string interactions[],float xPos, float yPos,int index)
{
text_index = 0;
textTimer = 0.1;
pauseTimer = 2.5;
aborted = false;
deletingWindow = false;
finishedInteracting = false;
xpos = xPos;
ypos = yPos;
setInteractions(interactions);
// loads textures
frameTexture.loadFromFile("images/textbox.png");
frameSprite.setTexture(frameTexture);
frameSprite.setPosition(xPos, yPos);
textToBeDisplayed.setPosition(frameSprite.getPosition().x - 280, frameSprite.getPosition().y - 120);
textToBeDisplayed.setFillColor(Color::Black);
frameSprite.setOrigin(250, 250);
pressSpaceToSkip.setPosition(190, 633);
pressSpaceToSkip.setScale(2, 2);
// set initial scales
frameSprite.setScale(0, 0);
textToBeDisplayed.setScale(0.8, 0.8);
// set final scales
frameScale = {1.5, 1.5};
arcadeClassic.loadFromFile("fonts/Comicaboom.otf");
textToBeDisplayed.setFont(arcadeClassic);
pressSpaceToSkip.setFont(arcadeClassic);
pressSpaceToSkip.setString("Press Space To Skip");
displayed_text = "";
// takes a random interaction out of the interactions array
final_string ="\n" + interactions[index];
textToBeDisplayed.setString(displayed_text);
}
private:
int text_index = 0;
float textTimer = 0.1;
float pauseTimer = 2.5;
int flutter_timer = 20;
bool isSkipTextShown = true;
// properties set by user using set prop function
float xpos;
float ypos;
string inter_arr[100];
public:
// update functions: gradually scales window, then gradually scales icon, then gradually shows text
void update(float deltatime, RenderWindow &window)
{
float scale_offset = 2;
float descale_offset = 2;
// if the window isnt big enough yet, it gets scaled
if (frameSprite.getScale().x < frameScale.x and frameSprite.getScale().y < frameScale.y and !deletingWindow and !aborted)
{
frameSprite.setScale({frameSprite.getScale().x + scale_offset * deltatime, frameSprite.getScale().y + scale_offset * deltatime});
}
// if both window is scaled, we start displaying the text gradually
else
{
// if not all of string have been displayed
if (text_index < final_string.length() and !aborted)
{
if (textTimer <= 0)
{
displayed_text = displayed_text + final_string[text_index];
textToBeDisplayed.setString(displayed_text);
text_index++;
textTimer = timer_per_letter;
}
else
textTimer -= deltatime;
}
// if all has been displayed, starts timer, and when it ends, it destroys the window
else
{
if (pauseTimer <= 0 or aborted)
{
deletingWindow = true;
// if not , plays reverse animation for shrinking
if (frameSprite.getScale().x > 0 and frameSprite.getScale().y > 0 and !finishedInteracting)
{
frameSprite.setScale({frameSprite.getScale().x - descale_offset * deltatime, frameSprite.getScale().y - descale_offset * deltatime});
textToBeDisplayed.setScale(0, 0);
}
// if finished shrinking, destroys and marks the bool as true for external use
else if (frameSprite.getScale().x <= 0 or frameSprite.getScale().y <= 0)
{
frameSprite.setScale(0, 0);
textToBeDisplayed.setScale(0, 0);
finishedInteracting = true;
}
}
else
pauseTimer -= deltatime;
}
}
}
void draw(RenderWindow& window)
{
if (!finishedInteracting)
{
// flutters the press to skip text
if (!aborted)
{
if (flutter_timer <= 0)
{
if (isSkipTextShown)
{
isSkipTextShown = false;
}
else
isSkipTextShown = true;
flutter_timer = 20;
}
else
{
if (isSkipTextShown)
{
window.draw(pressSpaceToSkip);
}
flutter_timer -= deltatime;
}
}
window.draw(frameSprite);
window.draw(textToBeDisplayed);
}
}
void abort()
{
aborted = true;
}
}interactionwindow1,interactionWindow2,interactionWindow3;
class Maze
{
public:
Maze(RenderWindow& window) : window(window)
{
maze.resize(SIZE, vector<bool>(SIZE, false));
if (!wall.loadFromFile("images/wall.png"))
{
cout << "Failed to load wall texture." << endl;
return;
}
if (!path.loadFromFile("images/path.png"))
{
cout << "Failed to load path texture." << endl;
return;
}
startPos = Vector2i(0, 0);
endPos = Vector2i(SIZE - 1, SIZE - 1);
}
void handleMouseClick(Vector2i mousePos)
{
int col = mousePos.x / CELL_SIZE;
int row = mousePos.y / CELL_SIZE;
if (row >= 0 && row < SIZE && col >= 0 && col < SIZE)
{
maze[row][col] = !maze[row][col];
}
if(maze[row][col])
{
walls++;
}
else
{
walls--;
}
}
void draw()
{
float scaleFactorWall = float(CELL_SIZE) / float(wall.getSize().x);
float scaleFactorPath = float(CELL_SIZE) / float(path.getSize().x);
float scaleFactorStartEnd = float(CELL_SIZE) / float(startPointTex.getSize().x);
for (int i = 0; i < SIZE; ++i)
{
for (int j = 0; j < SIZE; ++j)
{
Sprite cell;
cell.setPosition(j * CELL_SIZE, i * CELL_SIZE);
if (maze[i][j])
{
cell.setTexture(wall);
cell.setScale(scaleFactorWall, scaleFactorWall);
}
else
{
cell.setTexture(path);
cell.setScale(scaleFactorPath, scaleFactorPath);
}
window.draw(cell);
}
}
}
// if it's wall or not
bool isWall(int row, int col) const
{
return maze[row][col];
}
vector<Vector2i> findShortestPath(const Vector2i& startPos, const Vector2i& endPos)
{
vector<vector<bool>> visited(SIZE, vector<bool>(SIZE, false));
vector<vector<Vector2i>> parent(SIZE, vector<Vector2i>(SIZE, Vector2i(-1, -1)));
queue<Vector2i> q;
q.push((Vector2i)startPos);
visited[startPos.y][startPos.x] = true;
while (!q.empty())
{
Vector2i current = q.front();
q.pop();
if (current == endPos)
break;
int row = current.y;
int col = current.x;
if (row > 0 && !maze[row - 1][col] && !visited[row - 1][col])
{
q.push(Vector2i(col, row - 1));
visited[row - 1][col] = true;
parent[row - 1][col] = current;
}
if (row < SIZE - 1 && !maze[row + 1][col] && !visited[row + 1][col])
{
q.push(Vector2i(col, row + 1));
visited[row + 1][col] = true;
parent[row + 1][col] = current;
}
if (col > 0 && !maze[row][col - 1] && !visited[row][col - 1])
{
q.push(Vector2i(col - 1, row));
visited[row][col - 1] = true;
parent[row][col - 1] = current;
}
if (col < SIZE - 1 && !maze[row][col + 1] && !visited[row][col + 1])
{
q.push(Vector2i(col + 1, row));
visited[row][col + 1] = true;
parent[row][col + 1] = current;
}
}
vector<Vector2i> shortestPath;
Vector2i current = endPos;
while (current != (Vector2i)startPos)
{
shortestPath.push_back(current);
current = parent[current.y][current.x];
}
shortestPath.push_back((Vector2i)startPos);
reverse(shortestPath.begin(), shortestPath.end());
return shortestPath;
}
bool isConnected()
{
int visitedc = 0;
vector<vector<bool>> visited(SIZE, vector<bool>(SIZE, false));
queue<Vector2i> q;
q.push(Vector2i(0, 0));
visited[0][0] = true;
while (!q.empty())
{
Vector2i current = q.front();
q.pop();
visitedc++;
int row = current.y;
int col = current.x;
if (row > 0 && !maze[row - 1][col] && !visited[row - 1][col])
{
q.push(Vector2i(col, row - 1));
visited[row - 1][col] = true;
}
if (row < SIZE - 1 && !maze[row + 1][col] && !visited[row + 1][col])
{
q.push(Vector2i(col, row + 1));
visited[row + 1][col] = true;
}
if (col > 0 && !maze[row][col - 1] && !visited[row][col - 1])
{
q.push(Vector2i(col - 1, row));
visited[row][col - 1] = true;
}
if (col < SIZE - 1 && !maze[row][col + 1] && !visited[row][col + 1])
{
q.push(Vector2i(col + 1, row));
visited[row][col + 1] = true;
}
}
int totalNonWalls = SIZE * SIZE - walls;
if (visitedc == totalNonWalls)
return true;
else
return false;
}
private:
vector<vector<bool>> maze;
RenderWindow& window;
Texture wall;
Texture path;
Texture startPointTex;
Texture endPointTex;
Vector2i startPos;
Vector2i endPos;
};
enum class Direction {Up, Down, Left, Right};
class Robo
{
public:
Vector2i position;
Vector2f pix_pos;
Music musicstart;
Robo(RenderWindow& window, const Maze& maze)
:window(window), maze(maze), position(0, 0)
{
if (!roboTex.loadFromFile("images/robo_new.png"))
{
cout << "Failed to load robo texture." << endl;
return;
}
robo.setTexture(roboTex);
robo.setTextureRect(IntRect(32*animation,32,32,32));
robo.setOrigin(16,16);
robo.setScale(Vector2f(2.45, 2.45));
if (!soundBuffer.loadFromFile("audio/LabyArrived.wav"))
{
cout << "Failed to load sound." << endl;
return;
}
musicstart.openFromFile("audio/lastofus.wav");
musicstart.setVolume(60);
sound.setBuffer(soundBuffer);
musicstart.play();
musicstart.setLoop(true);
}
void move(vector<Vector2i>& shrtPath)
{
Vector2i direction;
direction.x = shrtPath.front().x - position.x ;
direction.y = shrtPath.front().y - position.y;
pix_pos.x += direction.x * deltatime * 220;
pix_pos.y += direction.y * deltatime * 220;
cout<<pix_pos.x<<" "<<pix_pos.y<<" "<<deltatime<<endl;
if(abs(position.x*CELL_SIZE-pix_pos.x)>=90)
{
pix_pos.x = (position.x+direction.x)*CELL_SIZE;
position.x = position.x + direction.x;
shrtPath.erase(shrtPath.begin());
}
else if(abs(position.y*CELL_SIZE-pix_pos.y)>=90)
{
pix_pos.y = (position.y+direction.y)*CELL_SIZE;
position.y = position.y + direction.y;
shrtPath.erase(shrtPath.begin());
}
if(delay<=0)
{
delay=0.1;
animation++;
animation%=8;
}
else
{
delay-=deltatime;
}
if(direction.x==1)
{
robo.setScale(Vector2f(2.45, 2.45));
robo.setTextureRect(IntRect(32*animation,96,32,32));
}
else if( direction.x==-1)
{
robo.setScale(Vector2f(-2.45, 2.45));
robo.setTextureRect(IntRect(32*animation,96,32,32));
}
else if( direction.y==-1)
{
robo.setScale(Vector2f(2.45, 2.45));
robo.setTextureRect(IntRect(32*animation,128,32,32));
}
else if( direction.y==1)
{
robo.setScale(Vector2f(2.45, 2.45));
robo.setTextureRect(IntRect(32*animation,64,32,32));
}
if(!shrtPath.size())
{
//neutral state.
moving=false;
animation=0;
robo.setScale(Vector2f(2.45, 2.45));
robo.setTextureRect(IntRect(32*animation,32,32,32));
if (position.x == 9 && position.y == 9)
{
musicstart.setVolume(10);
sound.play();
}
}
}
void draw()
{
robo.setPosition(Vector2f((pix_pos.x+44.2), pix_pos.y+39.2));
window.draw(robo);
}
void rePosition(Vector2i rePos)
{
position.x = rePos.x / CELL_SIZE;
position.y = rePos.y / CELL_SIZE;
pix_pos.x = position.x * CELL_SIZE;
pix_pos.y = position.y * CELL_SIZE;
}
private:
RenderWindow& window;
const Maze& maze;
Texture roboTex;
Sprite robo;
SoundBuffer soundBuffer;
Sound sound;
};
int main()
{
RenderWindow window(VideoMode(SIZE * CELL_SIZE, SIZE * CELL_SIZE), "The Labyrinthian");
Maze maze(window);
Robo robo(window, maze);
vector<Vector2i> shrtPath;
Event event;
interactionwindow1.interactionSetProp(arrayOfInteractions,420, 200,0);
interactionWindow2.interactionSetProp(arrayOfInteractions,420, 300,1);
interactionWindow3.interactionSetProp(arrayOfInteractions,420, 400,2);
seeked.interactionSetProp(arrayOfInteractions2,430,200);
while (window.isOpen())
{
deltatime=game.restart().asSeconds();
gameclock.restart();
if(moving)
{
robo.move(shrtPath);
game.restart();
window.clear();
maze.draw();
robo.draw();
window.display();
}
if (!interactionwindow1.finishedInteracting and !interactionWindow2.finishedInteracting)
{
interactionwindow1.update(deltatime, window);
}
else if (interactionwindow1.finishedInteracting and !interactionWindow2.finishedInteracting)
{
interactionWindow2.update(deltatime, window);
}
else
{
interactionWindow3.update(deltatime, window);
}
while (window.pollEvent(event))
{
if (event.type == Event::Closed)
window.close();
else if (event.type == Event::MouseButtonPressed)
{
if (event.mouseButton.button == Mouse::Left&&!moving)
{
Vector2i mousePos = Mouse::getPosition(window);
if (robo.position.x != mousePos.x && robo.position.y != mousePos.y)
{
maze.handleMouseClick(mousePos);
}
}
else if (event.mouseButton.button == Mouse::Right&&!moving)
{
Vector2i mousePos = Mouse::getPosition(window);
int col = mousePos.x / CELL_SIZE;
int row = mousePos.y / CELL_SIZE;
if (!maze.isWall(row, col))
robo.rePosition(mousePos);
robo.musicstart.setVolume(60);
}
}
else if (event.type == Event::KeyPressed && event.key.code == Keyboard::Enter)
{
Vector2i End(9, 9);
if(maze.isConnected()&&!moving)
{
shrtPath = maze.findShortestPath(robo.position, End);
shrtPath.erase(shrtPath.begin());
moving=true;
}
else if(!moving)
{
clicked=true;
cout<<"There is UnReachable Path"<<endl;
}
}
if (!interactionwindow1.finishedInteracting)
{
if (event.key.code == Keyboard::Space)
interactionwindow1.abort();
}
if (!interactionWindow2.finishedInteracting)
{
if (event.key.code == Keyboard::Space)
interactionWindow2.abort();
}
if (!interactionWindow3.finishedInteracting)
{
if (event.key.code == Keyboard::Space)
interactionWindow3.abort();
}
}
if (clicked==true)
{
seeked.update(deltatime, window);
seeked.draw(window);
if(seeked.finishedInteracting)
{
clicked = false;
seeked.interactionSetProp(arrayOfInteractions2,430,200);
}
}
window.clear();
maze.draw();
robo.draw();
interactionwindow1.draw(window);
interactionWindow2.draw(window);
interactionWindow3.draw(window);
seeked.draw(window);
window.display();
}
return 0;
}