$30 off During Our Annual Pro Sale. View Details »

CSE460 Lecture 09

CSE460 Lecture 09

Software Analysis and Design
Object-Oriented Programming II
(202102)

Javier Gonzalez-Sanchez
PRO

July 09, 2020
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs
    CSE 460
    Software Analysis and Design
    Lecture 09: Object-Oriented Programming II
    Dr. Javier Gonzalez-Sanchez
    [email protected]
    javiergs.engineering.asu.edu | javiergs.com
    PERALTA 230U
    Office Hours: By appointment

    View Slide

  2. jgs
    00001001
    Announcement
    § Assignment 03 is due Monday (February 15) 11:59 PM AZ time.
    Practice use cases and class diagram
    Individual Assignment
    § Quiz 03 is due Today (midnight) 11:59 PM AZ time.

    View Slide

  3. jgs
    Previously

    View Slide

  4. jgs
    00001001
    Design
    Timer KeyListener JFrame ActionListener
    Game
    Ghost
    Pacman
    Maze
    Drawable
    PowerDot
    JPanel

    View Slide

  5. jgs
    00001001
    Drawable

    View Slide

  6. jgs
    00001001
    PowerDot

    View Slide

  7. jgs
    00001001
    Pacman

    View Slide

  8. jgs
    00001001
    Ghost

    View Slide

  9. jgs
    00001001
    Maze

    View Slide

  10. jgs
    00001001
    Game (part 1 of 2)

    View Slide

  11. jgs
    00001001
    Game (part 2 of 2)

    View Slide

  12. jgs
    Javier Gonzalez-Sanchez | SER332 | Spring 2018 | 13

    View Slide

  13. jgs
    Next

    View Slide

  14. jgs
    00001001
    What about a Score?

    View Slide

  15. jgs
    00001001
    Score

    View Slide

  16. jgs
    00001001
    What about the Font for the Score?

    View Slide

  17. jgs
    00001001
    Score

    View Slide

  18. jgs
    00001001
    One last thing
    § Requirements?
    Menu Bar > New > Scores
    Ask for Names
    § New Classes?
    § Source Code?

    View Slide

  19. jgs
    00001001
    Scores

    View Slide

  20. jgs
    00001001
    Scores

    View Slide

  21. jgs
    00001001
    What else?

    View Slide

  22. jgs
    Assignment 02

    View Slide

  23. jgs
    00001001
    Assignment 02
    Player
    Move left-right
    Aliens
    Move left-right
    and advance
    toward the bottom
    stationary
    defense bunkers

    View Slide

  24. jgs
    00001001
    What to do?
    § Use Case Diagram
    § How many ovals?
    § What type of relationships?
    § Activity and State Diagrams are optional
    § Class Diagram
    § How many classes?
    § What type of relationships?
    § Source Code:
    § user can move left-right;
    § aliens moving automatically;
    § bunkers are static.

    View Slide

  25. jgs
    CSE 460 Software Analysis and Design
    Javier Gonzalez-Sanchez
    [email protected]
    Fall 2020
    Disclaimer. These slides can only be used as study material for the class CSE460 at ASU. They cannot be distributed or used for another purpose.

    View Slide