Design the core classes for your simple game

Assignment Help Computer Engineering
Reference no: EM132221740

Frogger - Part 2 - Represtenting the game state information

Stage 1

With your Android project you started last lab:

• Make a "Welcome" activity, which will be the main activity. This should include a button for starting to play a game.

• Make a "Game" activity which will be used for playing the game.

• Use an "Intent", triggered from the button on the "Welcome" activity, to start the "Game" activity.

• add, commit, and push your changes.

Stage 2

Design the core classes for your simple game. Do this using a UML class diagram. This design and implementation should be mostly independent of the platform the rest of the game runs on. That is, as much as possible think how you could take these core classes and
use them within different application GUI frameworks. This code couples with the rest of the game in three main ways:

• input from the user - assume you have a touch event calling a  method within your code. This method will have attributes with the position on the screen the touch event occurred.

• a timer event - so at some fix time rate a "step" method is called in your core code.

• a draw method - when this method is called the current state of the game is drawn. This method would have as attributes the "canvas" to paint the current game state to. There would also be the starting of a new game and the end of a game that would need to be connected with this core part of the game design.

Your UML class diagram should also include the fields and methods. Is there any duplication in your fields? Does this indicate a better possible design?

Consider the following questions:

• How will the "step" method work for the "frog", the "log" and the "truck"?

• "Logs" float across the river. If a "frog" jumps on a "log" it will move with the log? How will you do this? Which class will this code be located?

• Where will you put the code that determines if a frog gets run over by a "truck"?

Once you have completed stages 1 and 2 show your results to your tutor to have today's participation marked off.

Stage 3

Implement your core game classes for your groups Frogger game.

Reference no: EM132221740

Questions Cloud

Create a class diagram of the initial code : Build the solution and inspect the output. Spend some time becoming familiar with the code before you do anything else.
Determine the functional dependencies : Write SQL queries (do not use QBE) for the following questions and execute the queries after creating the above database on MS Access.
Why are these defenses not used extensively : CP5603 : What are the defenses to protect against SQL injection attacks, XML injection attacks, and XSS?
Compute the cost of goods manufactured : Using the following data from both Garcon Company and Pepper Company for the year ended December 31, 2019, compute (1) the cost of goods manufactured
Design the core classes for your simple game : Design the core classes for your simple game. Do this using a UML class diagram.
Determine and list your entities : Determine and list your entities. Then create relationship sentence pairs between those entities that are related.
Prepare a dfd that describes the application : Prepare a DFD that describes the following application: Gadgets, Inc., sells its items through traveling salespeople.
The working mechanism of ransomware : The security remains a challenge in networked information systems. One of the fastest evolving malware is ransomware.
Compare the trends of all stores in a given year : Write a Python script for the ice cream ordering system. Your program must store the prices of the individual items .

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd