Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
rynkis committed Jan 18, 2014
1 parent da42792 commit ed06c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/DemoBaCL/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ def update
x = @step > 4 ? 80 : 0
y = @step > 4 ? @step - 4 : @step
y = y * 12 + 24
draw_text(str, x, y, 80, 12, 1)
draw_text(x, y, 80, 12, str, 1)
@game_over = true
elsif @step == 8
# msgbox "游戏结束"
@bitmap.fill_rect( 0, 19, 160, 12, WHITE)
draw_text( 0, 19, 160, 12, "游戏结束,按ESC重置", 1)
str = "答案:"
@true_answer.each {|n| str += n.to_s }
draw_text(str, 80, 72, 80, 12, 1)
draw_text(80, 72, 80, 12, str, 1)
@game_over = true
else
draw_step(a, b)
Expand Down

0 comments on commit ed06c08

Please sign in to comment.