dMZX Forums: Game Journal: "Hackerspace Tutorial" - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Game Journal: "Hackerspace Tutorial"

#1 User is offline   Skakmat 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 12-October 19

Posted 19 October 2019 - 07:43 PM

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
0

#2 User is offline   Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,895
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

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
0

#3 User is offline   Skakmat 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 12-October 19

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users