Hi there,
I am currently creating an interactive tutorial to the makerspace that I work in at my college.
I had a question regarding:
the possibility of a robotic script which might send the game back to the title screen after no input has been received from the player.
Is this possible? Thanks-
Skakmat
Page 1 of 1
Game Journal: "Hackerspace Tutorial"
#2
Posted 19 October 2019 - 07:58 PM
This might do what you want. It will wait a number of seconds before exiting to the title, and every time a key press or mouse press is detected it will reset the timer.
. "The number of seconds to wait before exiting gameplay." set "local2" to 30 . "timer" set "local" to 0 : "l" inc "local" by 1 multiply "local" by "(('key_pressed'=0) a ('buttons'=0))" wait for 1 if "local" < "('local2'*625/('mzx_speed'-1*10))" then "l" set "exit_game" to 1
This post has been edited by Lachesis: 19 October 2019 - 08:02 PM
Reason for edit: Check BUTTONS too
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#3
Posted 29 October 2019 - 05:34 PM
I'm guessing this is probably a no, but is it possible for the Raspbian mzx port to interface with the GPIO pins on the Rpi board? I think it could potentially lead to some interesting games featuring homebrew electronics.
Share this topic:
Page 1 of 1