Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JAWA vs Tsuda - 授業課題

Avatar for Riochin Riochin
January 31, 2025
0

JAWA vs Tsuda - 授業課題

2025/01/31
津田塾大学 情報科学科 1年次授業「プログラミング I」最終課題として提出

デモ動画:https://x.com/riochin555/status/2063778598776082447?s=20

Avatar for Riochin

Riochin

January 31, 2025

Transcript

  1. + main : void Main - isGameOver : boolean -

    isGameClear : boolean - r1, r2, r3 : int(Random) - c1, c2, c3 : Co ee - bullets : List - p1 : Plum etc. MyPanel + MyPanel : void + paintComponent : void + addBullet : void + getXpos : int + getYpos : int - xpos, ypos: int - bullets : List - e1 ~ e4 : Ellipse - t1 : Text Co ee + Co ee() : void + draw() : void + attackPattern() : void + shootBullets() : void + shootBulletsWithInterval() : void + shootWobbyBullets() : void + shootRandomBullets() : void + shootHomingBullets() : void + drawBullets() : void - col : Color - xpos, ypos : int - rad : int - width, height : int - start, arc : int Ellipse + Ellipse() : void + draw() : void - xpos : int - ypos : int Plum + Plum : void + moveTo : void + getCenterX : int getCenterY : int + getBounds : Rectangle + paint : void - text : String - col : Color - xpos : int - ypos : int Text + Text() : void + draw() : void - x, y : int - dx, dy : Double - color : Color - type : int - size : int Bullet + Bullet() : void + move() : void + getBounds() : Rectangle + getX(), getY : int + getSize() : int + draw() : void - panel : MyPanel - speed : double - creationTime : long - isScatterMode : boolean HomingBullet + HomingBullet() : void + move() : void + switchToScatterMode() : void - wobbleAngle : double - wobbleSpeed : double WobblyBullet + WobblyBullet() : void + move() : void - clip : Clip SoundPlayer + SoundPlayer() : String + play() : void + loop() : void + stop () : void - timeLeft : int - timer : Timer - timerLabel : JLabel - width, height : int - start, arc : int GameTimer + GameTime() : int + actionPerformed() : void