Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. class Scene_Credit
  2. CREDIT=<<_END_
  3. ผู้จัดทำ
  4. นาย อาชา ม้าแก้ว เลขที่ 1
  5. นาย เพทาย น้อยถนอม เลขที่ 2
  6. นางสาว ธนัชพร กันธิมา เลขที่ 7
  7. ห้อง ม.6/7
  8.  
  9.  
  10.  
  11. ผู้คิดโจทย์
  12. นางสาว ธนัชพร กันธิมา
  13.  
  14.  
  15.  
  16. เนื้อเรื่อง
  17. นาย อาชา ม้าแก้ว เลขที่ 1
  18.  
  19.  
  20.  
  21. ระบบเกม
  22. Advanced Message Script
  23. Zer0 Advanced Weather 1.1
  24. Zer0 ScreenTest
  25. Map_Loction
  26. Sound STEP Script v.2
  27.  
  28.  
  29.  
  30. กราฟฟิค
  31. Enterbrain
  32. Sithjester's RPG Maker XP resources.
  33.  
  34.  
  35.  
  36. วาดแผนที่
  37. นาย อาชา ม้าแก้ว เลขที่ 1
  38. นาย เพทาย น้อยถนอม เลขที่ 2
  39.  
  40.  
  41.  
  42. ไทล์เซ็ต
  43. Enterbrain
  44. Sithjester
  45. http://yms.main.jp/
  46.  
  47.  
  48.  
  49. เสียง & ดนตรี
  50. Enterbrain
  51. Youtube
  52.  
  53.  
  54.  
  55. ผู้ทดสอบเกม
  56. นาย อาชา ม้าแก้ว เลขที่ 1
  57. นาย เพทาย น้อยถนอม เลขที่ 2
  58. นางสาว ธนัชพร กันธิมา เลขที่ 7
  59.  
  60.  
  61.  
  62.  
  63. เอนจิ้นเกม
  64. Enterbrain
  65.  
  66.  
  67.  
  68. ขอบคุณในกรณีพิเศษ
  69. GWTH
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. และคุณ..
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. ------ Adventure Exponent World! ------
  86.  
  87. นำเสนอโดย 6/7
  88.  
  89.  
  90.  
  91. _END_
  92. #----พอแล้วนะ จะเพิ่มอีกก็ได้แต่ห้ามยุ่งข้างล่าง
  93. end
  94. class Scene_Credit
  95. def initialize(return_scene = nil)
  96. if return_scene.nil?
  97. return_scene = Scene_Title.new
  98. end
  99. @return_scene = return_scene
  100. end
  101. def scene_start
  102. credit_lines = CREDIT.split(/\n/)
  103. credit_bitmap = Bitmap.new(640,48 * credit_lines.size)
  104. credit_lines.each_index do |i|
  105. line = credit_lines[i]
  106. credit_bitmap.font.name = "Layiji MaHaNiYom V1.61"
  107. credit_bitmap.draw_text(0,i * 48,640,32,line,1)
  108. end
  109. @credit_sprite = Sprite.new(Viewport.new(0,50,640,380))
  110. @credit_sprite.bitmap = credit_bitmap
  111. @credit_sprite.oy = -430
  112. @frame_index = 0
  113. @last_flag = false
  114. end
  115. def scene_end
  116. @credit_sprite.dispose
  117. end
  118. def last?
  119. return (@frame_index >= @credit_sprite.bitmap.height + 480)
  120. end
  121. def last
  122. if not @last_flag
  123. Audio.bgm_fade(10000)
  124. @last_flag = true
  125. @last_count = 0
  126. else
  127. @last_count += 1
  128. end
  129. if @last_count >= 300
  130. $scene = @return_scene
  131. end
  132. end
  133. def update
  134. @frame_index += 1
  135. return if cancel?
  136. last if last?
  137. @credit_sprite.oy += 1
  138. end
  139. def cancel?
  140. return false
  141. end
  142. def main
  143. scene_start
  144. # Transition Initialization
  145. Graphics.transition
  146. # Main Loop
  147. loop do
  148. # The Game Screen is Renewed
  149. Graphics.update
  150. # Input Information is Updated
  151. Input.update
  152. # Frame Renewal
  153. update
  154. # If the Scene Changes, the Loop is Stopped
  155. if $scene != self
  156. break
  157. end
  158. end
  159. # Preperation for Transition
  160. Graphics.freeze
  161. $scene = Scene_Map.new
  162. end
  163. end
  164. # Scene_Credit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement