Beifengdo commited on
Commit
e0cfaed
·
verified ·
1 Parent(s): d217d02

Upload original Java course files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bg0.png +0 -0
  2. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bg1.png +0 -0
  3. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird0_0.png +0 -0
  4. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird0_1.png +0 -0
  5. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird0_2.png +0 -0
  6. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird1_0.png +0 -0
  7. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird1_1.png +0 -0
  8. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird1_2.png +0 -0
  9. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird2_0.png +0 -0
  10. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird2_1.png +0 -0
  11. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird2_2.png +0 -0
  12. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_0.png +0 -0
  13. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_1.png +0 -0
  14. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_2.png +0 -0
  15. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_3.png +0 -0
  16. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_4.png +0 -0
  17. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_5.png +0 -0
  18. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_6.png +0 -0
  19. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_7.png +0 -0
  20. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_8.png +0 -0
  21. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_9.png +0 -0
  22. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/land.png +0 -0
  23. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_0.png +0 -0
  24. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_1.png +0 -0
  25. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_2.png +0 -0
  26. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_3.png +0 -0
  27. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe0_down.png +0 -0
  28. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe0_up.png +0 -0
  29. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe1_down.png +0 -0
  30. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe1_up.png +0 -0
  31. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/text_game_over.png +0 -0
  32. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/text_ready.png +0 -0
  33. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/tutorial.png +0 -0
  34. 补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Bird.java +68 -0
  35. 补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Column.java +37 -0
  36. 补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/GameFrame.java +97 -0
  37. 补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/GamePanel.java +169 -0
  38. 补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Ground.java +25 -0
  39. 补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Tools.java +19 -0
  40. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bg0.png +0 -0
  41. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bg1.png +0 -0
  42. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird0_1.png +0 -0
  43. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird0_2.png +0 -0
  44. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird1_1.png +0 -0
  45. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird1_2.png +0 -0
  46. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird2_1.png +0 -0
  47. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird2_2.png +0 -0
  48. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/font_0.png +0 -0
  49. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/font_1.png +0 -0
  50. /350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/font_2.png +0 -0
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bg0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bg1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird0_0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird0_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird0_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird1_0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird1_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird1_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird2_0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird2_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/bird2_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_3.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_4.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_5.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_6.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_7.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_8.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/font_9.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/land.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/medals_3.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe0_down.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe0_up.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe1_down.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/pipe1_up.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/text_game_over.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/text_ready.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/bin/img/tutorial.png ADDED
补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Bird.java ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package game;
2
+
3
+ import java.awt.image.BufferedImage;
4
+ import java.util.ArrayList;
5
+ import java.util.List;
6
+
7
+ public class Bird {
8
+ //鸟的图片
9
+ BufferedImage img;
10
+ int x;
11
+ int y;
12
+ int w;
13
+ int h;
14
+ static int i = 0;
15
+ //用来装一组图片的容器
16
+ List<BufferedImage> list;
17
+ double v0 = 8;//初速度
18
+ double t = 0.3;//时间
19
+ double s = 0;//距离
20
+ double g = 1.2;//重力
21
+ public Bird() {
22
+ img = Tools.getImg("../img/bird"+i+"_0.png");
23
+ x = 80;
24
+ y = 245;
25
+ w = img.getWidth();
26
+ h = img.getHeight();
27
+ //初始化装图片的容器
28
+ list = new ArrayList<BufferedImage>();
29
+ //加图片
30
+ list.add(Tools.getImg("../img/bird"+i+"_0.png"));
31
+ list.add(Tools.getImg("../img/bird"+i+"_1.png"));
32
+ list.add(Tools.getImg("../img/bird"+i+"_2.png"));
33
+ }
34
+ int index = 0;//标记取下标,来获取图片
35
+ public void fly() {
36
+ img = list.get(index%list.size());
37
+ index++;
38
+ }
39
+ //小鸟运动
40
+ public void move() {
41
+ //计算小鸟上抛距离
42
+ s = v0 * t;//小鸟y坐标
43
+ y = (int)(y - s);//初始坐标-y坐标
44
+ double v1 = v0 - g*t;//计算小鸟到达最高点时速度
45
+ v0 = v1;//最高点速度=下落时的速度;
46
+ }
47
+ public void moveUp() {
48
+ v0 = 8;
49
+ }
50
+ public boolean hit() {
51
+ if(y <=-10 || y>= 360) {
52
+ return true;
53
+ }
54
+ return false;
55
+ }
56
+ public boolean hit(Column column) {
57
+ if(x >= column.x - w + 14 && x <= column.x + column.w - 14) {
58
+ if(y > column.h + column.y - 12 && y < column.h + column.y + 24 + 50) {
59
+ return false;
60
+ }
61
+ return true;//撞到了
62
+ }
63
+ return false;
64
+ }
65
+ public void getj(int j) {
66
+ i = j;
67
+ }
68
+ }
补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Column.java ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package game;
2
+
3
+ import java.awt.image.BufferedImage;
4
+ import java.util.Random;
5
+
6
+ public class Column {//柱子的类
7
+ BufferedImage img1;
8
+ BufferedImage img2;
9
+ int x;
10
+ int y;
11
+ int w;
12
+ int h;
13
+ static int j = 0;
14
+ //柱子间距
15
+ int d = 250;
16
+ //用一个随机数
17
+ Random ran = new Random();
18
+ public Column(int i) {//i 为第几根柱子
19
+ img1 = Tools.getImg("../img/pipe"+j+"_down.png");
20
+ img2 = Tools.getImg("../img/pipe"+j+"_up.png");
21
+ w = img1.getWidth();
22
+ h = img1.getHeight();
23
+ //x = 100;
24
+ x = 400 + 200 * (i - 1);
25
+ y = - 512 + 240 +ran.nextInt(200)- j * 60; //+ 140;//ran.nextInt(150) - j * 60;
26
+ }
27
+ public void move(){
28
+ if(x <= - w){//地面有限,地面重复出现,保证地面
29
+ x = 300 + d;
30
+ y = - 512 + 240 +ran.nextInt(200)- j * 60;
31
+ }
32
+ x--;
33
+ }
34
+ public void geti(int i) {
35
+ j = i;
36
+ }
37
+ }
补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/GameFrame.java ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package game;
2
+
3
+ import java.awt.event.ActionEvent;
4
+ import java.awt.event.ActionListener;
5
+ import javax.swing.JFrame;
6
+ import javax.swing.JMenu;
7
+ import javax.swing.JMenuBar;
8
+ import javax.swing.JMenuItem;
9
+
10
+ public class GameFrame extends JFrame implements ActionListener{
11
+ static boolean judge = true;
12
+ static String name;
13
+ public GameFrame() {
14
+ setSize(288, 512);//设置窗口大小(288,512);
15
+ setLocationRelativeTo(null);//窗口位于电脑的正中间;
16
+ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//关闭按键
17
+ setResizable(false);
18
+ setTitle("Flappy Bird终极豪华版");
19
+ init();
20
+ }
21
+ public static void main(String[] args){
22
+ GameFrame frame = new GameFrame();
23
+ GamePanel panel = new GamePanel();
24
+ frame.add(panel);//添加到界面
25
+ frame.setVisible(true);
26
+ }
27
+ public void actionPerformed(ActionEvent e) {}
28
+ void init() {
29
+ JMenuBar menubar = new JMenuBar();
30
+ JMenu menu = new JMenu("菜单");
31
+ JMenu birdcolor = new JMenu("小鸟颜色");
32
+ JMenu bgcolor = new JMenu("背景主题");
33
+ JMenu column = new JMenu("柱子颜色");
34
+ menubar.add(menu);
35
+ JMenuItem itembc1 = new JMenuItem("黄色");
36
+ JMenuItem itembc2 = new JMenuItem("蓝色");
37
+ JMenuItem itembc3 = new JMenuItem("红色");
38
+ menu.add(birdcolor);
39
+ birdcolor.add(itembc1);
40
+ birdcolor.add(itembc2);
41
+ birdcolor.add(itembc3);
42
+ JMenuItem itembg1 = new JMenuItem("白天");
43
+ JMenuItem itembg2 = new JMenuItem("黑夜");
44
+ menu.add(bgcolor);
45
+ bgcolor.add(itembg1);
46
+ bgcolor.add(itembg2);
47
+ JMenuItem itemc1 = new JMenuItem("绿色");
48
+ JMenuItem itemc2 = new JMenuItem("橙色");
49
+ menu.add(column);
50
+ column.add(itemc1);
51
+ column.add(itemc2);
52
+ setJMenuBar(menubar);
53
+ itembc1.addActionListener(this);
54
+ itembc2.addActionListener(this);
55
+ itembc3.addActionListener(this);
56
+ itembg1.addActionListener(this);
57
+ itembg2.addActionListener(this);
58
+ itemc1.addActionListener(this);
59
+ itemc2.addActionListener(this);
60
+ itembc1.addActionListener(new ActionListener() {
61
+ public void actionPerformed(ActionEvent e) {
62
+ Bird.i = 0;
63
+ }
64
+ });
65
+ itembc2.addActionListener(new ActionListener() {
66
+ public void actionPerformed(ActionEvent e) {
67
+ Bird.i = 1;
68
+ }
69
+ });
70
+ itembc3.addActionListener(new ActionListener() {
71
+ public void actionPerformed(ActionEvent e) {
72
+ Bird.i = 2;
73
+ }
74
+ });
75
+ itemc1.addActionListener(new ActionListener() {
76
+ public void actionPerformed(ActionEvent e) {
77
+ Column.j = 0;
78
+ }
79
+ });
80
+ itemc2.addActionListener(new ActionListener() {
81
+ public void actionPerformed(ActionEvent e) {
82
+ Column.j = 1;
83
+ }
84
+ });
85
+ itembg1.addActionListener(new ActionListener() {
86
+ public void actionPerformed(ActionEvent e) {
87
+ GamePanel.j = 1;
88
+ }
89
+ });
90
+ itembg2.addActionListener(new ActionListener() {
91
+ public void actionPerformed(ActionEvent e) {
92
+ GamePanel.j = 0;
93
+ }
94
+ });
95
+
96
+ }
97
+ }
补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/GamePanel.java ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package game;
2
+
3
+ import java.awt.Graphics;
4
+ import java.awt.event.MouseAdapter;
5
+ import java.awt.event.MouseEvent;
6
+ import javax.swing.JPanel;
7
+
8
+ public class GamePanel extends JPanel {//画板类
9
+ //放置背景图片的变量
10
+ Ground ground;
11
+ Column column1;
12
+ Column column2;
13
+ Column column3;
14
+ Bird bird;
15
+ boolean start;//游戏准备状态
16
+ boolean gameOver;
17
+ static int[] s = new int[4];
18
+ static int score = s[1] + s[2] * 10 + s[3] * 100;
19
+ static int j = 1;
20
+ public boolean judge;
21
+ //构造器
22
+ public GamePanel() {
23
+ //设置背景图片
24
+ ground = new Ground();
25
+ column1 = new Column(1);
26
+ column2 = new Column(2);
27
+ column3 = new Column(3);
28
+ bird = new Bird();
29
+ start = false;
30
+ gameOver = false;
31
+ score = 0;
32
+ change();
33
+ MouseAdapter adapter = new MouseAdapter(){
34
+ public void mousePressed(MouseEvent e) {
35
+ super.mousePressed(e);
36
+ if(start == false) {
37
+ //运行启动
38
+ start = true;
39
+ start();
40
+ }
41
+ else if(gameOver) {//游戏回到准备状态
42
+ start = false;
43
+ gameOver = false;
44
+ //重制所有对象;
45
+ ground = new Ground();
46
+ column1 = new Column(1);
47
+ column2 = new Column(2);
48
+ column3 = new Column(3);
49
+ bird = new Bird();
50
+ for(int i = 1 ; i <= 3 ; i++) {
51
+ s[i] = 0;
52
+ }
53
+ repaint();
54
+ }
55
+ else {
56
+ bird.moveUp();
57
+ }
58
+ }
59
+ };
60
+ this.addMouseListener(adapter);
61
+ }
62
+ //游戏开始
63
+ public void start() {
64
+ //启动游戏运行线程;
65
+ Thread1 thread1 = new Thread1();//创建线程;
66
+ //将线程装入thread1;
67
+ Thread thread0 = new Thread(thread1);
68
+ thread0.start();//将线程纳入调度 调度时未必运行
69
+ }
70
+ public void change() {
71
+ Thread2 thread2 = new Thread2();
72
+ Thread thread0 = new Thread(thread2);
73
+ thread0.start();
74
+ }
75
+ //向画板中绘制内容的方法;
76
+ public void paint(Graphics g) {
77
+ super.paint(g);
78
+ //绘制背景图片(图片,x,y,null画满)
79
+ g.drawImage(Tools.getImg("../img/bg"+j+".png"),0,0,null);
80
+ //绘制柱子图片
81
+ g.drawImage(column1.img1,column1.x,column1.y ,null);//生成上面柱子
82
+ g.drawImage(column1.img2,column1.x,column1.y + 377 + 50 + column1.j * 60,null);//生成下面柱子
83
+ g.drawImage(column2.img1,column2.x,column2.y ,null);
84
+ g.drawImage(column2.img2,column2.x,column2.y + 377 + 50 + column2.j * 60,null);
85
+ g.drawImage(column3.img1,column3.x,column3.y ,null);
86
+ g.drawImage(column3.img2,column3.x,column3.y + 377 + 50 + column3.j * 60,null);
87
+ //绘制地面图片
88
+ g.drawImage(ground.img,ground.x,ground.y,null);
89
+ //绘制小鸟图片
90
+ g.drawImage(bird.img,bird.x,bird.y,null);
91
+ //绘制准备图片
92
+ if(start == false) {
93
+ g.drawImage(Tools.getImg("../img/tutorial.png"),46,200,null);
94
+ g.drawImage(Tools.getImg("../img/text_ready.png"),40,100,null);
95
+ }
96
+ if(gameOver) {
97
+ g.drawImage(Tools.getImg("../img/text_game_over.png"),30,200,null);
98
+ }
99
+ //绘制成绩
100
+ for(int i = 1 ; i <= 3 ; i++) {
101
+ g.drawImage(Tools.getImg("../img/font_"+s[i]+".png"),160 - i * 20 ,20,null);
102
+ }
103
+ }
104
+ void score(int[] score) {
105
+ for(int i = 1; i <= 2 ; i++) {
106
+ if(score[3] == 10) {
107
+ score[3] = score[2] = score[1] =0;
108
+ }
109
+ if(score[i] == 10) {
110
+ score[i + 1]++;
111
+ score[i] -= 10;
112
+ }
113
+ }
114
+ }
115
+ class Thread2 implements Runnable {
116
+ public void run() {
117
+ int i = 0;
118
+ while(true){
119
+ while(start == false) {//在游戏未开始时可以对所有图片进行重画
120
+ column1 = new Column(1);
121
+ column2 = new Column(2);
122
+ column3 = new Column(3);
123
+ bird = new Bird();
124
+ repaint();
125
+ }
126
+ try {
127
+ Thread.sleep(100);//节省内存
128
+ } catch (InterruptedException e) {
129
+ e.printStackTrace();
130
+ }
131
+ }
132
+ }
133
+
134
+ }
135
+ class Thread1 implements Runnable { //多线程
136
+ public void run() {//编写该线程需要运行的方法
137
+ //让地面移动
138
+ while(true) {
139
+ ground.move();
140
+ column1.move();
141
+ column2.move();
142
+ column3.move();
143
+ bird.fly();
144
+ bird.move();
145
+ boolean bool = bird.hit();//检测小鸟时候在上下发生碰撞
146
+ boolean bool1 = bird.hit(column1);//检测柱子
147
+ boolean bool2 = bird.hit(column2);
148
+ boolean bool3 = bird.hit(column3);
149
+ //检测小鸟是否发生碰撞
150
+ if(bool||bool1||bool2||bool3) {
151
+ gameOver = true;
152
+ return;//结束
153
+ }
154
+ //计算分数
155
+ if(bird.x == column1.x + column1.w ||bird.x == column2.x + column2.w ||bird.x == column3.x + column3.w ) {
156
+ s[1]++;
157
+ score(s);
158
+ }
159
+ try {
160
+ Thread.sleep(9);//每移动一次休息一秒
161
+ } catch (InterruptedException e) {
162
+ e.printStackTrace();
163
+ }
164
+ repaint();
165
+ }
166
+ }
167
+ }
168
+
169
+ }
补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Ground.java ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package game;
2
+
3
+ import java.awt.image.BufferedImage;
4
+
5
+ public class Ground {
6
+ int x;
7
+ int y;
8
+ int w;
9
+ int h;
10
+ BufferedImage img;
11
+ Ground ground;
12
+ public Ground(){//构造方法
13
+ img = Tools.getImg("../img/land.png");
14
+ h = img.getHeight();
15
+ w = img.getWidth();
16
+ x = 0;//初始化x
17
+ y = 512 - h;//初始化y
18
+ }
19
+ public void move(){
20
+ if(x <= -(w - 288)) {//地面有限,地面重复出现,保证地面
21
+ x = 0;
22
+ }
23
+ x --;
24
+ }
25
+ }
补充资料-DMU课程资料-20261026/DMU课程资料合并总库/Java/MrLeea/src/game/Tools.java ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package game;
2
+
3
+ import java.awt.image.BufferedImage;
4
+ import java.io.IOException;
5
+
6
+ import javax.imageio.ImageIO;
7
+
8
+ public class Tools {//工具类
9
+ public static BufferedImage getImg(String path) {
10
+ BufferedImage img = null;
11
+ try {
12
+ img = ImageIO .read(Tools.class.getResource(path));
13
+ } catch (IOException e) {
14
+ e.printStackTrace();
15
+ }
16
+ return img;
17
+ }
18
+
19
+ }
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bg0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bg1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird0_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird0_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird1_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird1_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird2_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/bird2_2.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/font_0.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/font_1.png ADDED
/350/241/245/345/205/205/350/265/204/346/226/231-DMU/350/257/276/347/250/213/350/265/204/346/226/231-20261026/DMU/350/257/276/347/250/213/350/265/204/346/226/231/345/220/210/345/271/266/346/200/273/345/272/223/Java/MrLeea/src/img/font_2.png ADDED