Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Draw a Process State Model: To simplify please use bidirectional transition arrows as well as short forms and a legend as per the example below.

Draw a Process State Model:

To simplify please use bidirectional transition arrows as well as short forms and a legend as per the example below.

You have been tasked with coding the system commands as part of a new arcade game "Medieval Magical Adventures". This is a maze-type game where you move your character through a medieval walled town consisting of north-south and east-west streets. There are gates at the center of the North, South, East, and West walls. See the illustration as a sample. Actual towns will be much larger with many more streets and will be randomly generated. This game will consist of increasingly difficult levels with a different town layout at each new level. In each level, you will be given a different character to play. Using a joystick, these characters will be able to move North, by pushing the joystick up, East, by pushing the joystick right, South, by pushing the joystick down, and West, by pushing the joystick left. If the joystick is in the centre your character will be standing still. The joystick must move through the centre when changing direction from west to east or north to south. The joystick can move directly to each adjacent direction, i.e. west can move directly to the north or south. There will also be four buttons that will perform actions specific to each character you are playing and will be detailed before starting the level. Once pressed, the button will perform the action intended and then revert back to the state it was in before being pressed. Example. Button 'A' may be assigned as a JUMP. When you press the button 'A' your character will 'JUMP UP' and then come back down again. To 'JUMP' continuously you would need to continue to hit the button over and over.

Prior to starting your coding, you decide that it might be a good idea to draw a State Model so that you have a clear understanding of all the states and transitions that may occur during the playing of the game.

Complete the State Model diagram that will illustrate the above operation of the joystick (North, South, East, West, Center) and the four button actions (A, B, C, D).

Provided examples:

image text in transcribed

image text in transcribed

image text in transcribed

B C A D +

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

9-6: What are the structural components of a language?

Answered: 1 week ago