Our controller has a conceptual connection to Five Nights at Freddy’s because it is made to simulate the computer that the player uses in FNAF and combines the other gameplay elements inside.
The FNAF controller would consist of a board with various buttons coinciding with the buttons that are displayed in the game of FNAF, with each camera having its own button. It would also feature sliding pieces on both sides that could be opened or closed, and cover a light sensor that would open or close the doors within the game.
Beneath each door slider would be an old home-style switch that could be flicked to enable or disable the lights on both sides of the "Tablet".
PsuedoCode
define camerabuttons as list of digital inputs
define leftdoorslidersensor as analog input
define rightdoorslidersensor as analog input
define leftlightswitch as binary digital input
define rightlightswitch as binary digital input
define led outputs within the bounds of the screen being on or not
Call leftdoorslidersensor
Call rightdoorslidersensor
Call leftlightswitch
Call rightlightswitch
delay
function handlecamerabuttons
for each button in camerabuttons
read button state
if button is pressed then
send signal: camera X pressed
function handledoorsliders
INT leftsensorvalue
INT rightsensorvalue
if leftsensorvalue < threshold then
send signal: "left door closed"
else
send signal: "left door open"
endif
if rightsensorvalue < threshold then
send signal: "right door closed"
else
send signal: "right door open"
endif
end function

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.