-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
powered_by Powered by | ||
game_by A game by | ||
play Play | ||
instructions Instructions | ||
options Options | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
powered_by Feito com | ||
game_by Um jogo por | ||
play Jogar | ||
instructions Instruções | ||
options Opções | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
powered_by Desarrollado con | ||
game_by Un juego de | ||
play Jugar | ||
instructions Instrucciones | ||
options Opciones | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class Presentation | ||
AUTHOR_NAME = 'Victor David Santos' | ||
|
||
def initialize | ||
@logo = Res.img(:other_minigl) | ||
@timer = 0 | ||
|
||
Game.play_song(:spheresTheme) | ||
end | ||
|
||
def update | ||
@timer += 1 | ||
Game.show_menu if @timer == 440 || Mouse.button_pressed?(:left) | ||
end | ||
|
||
def draw | ||
if @timer <= 220 | ||
t = [110, @timer].min | ||
w = @logo.width / 2 | ||
x = (-w + (t / 110.0) * (SCREEN_WIDTH / 2 + w)).round | ||
alpha = @timer <= 190 ? 255 : 255 - (((@timer - 190) / 30.0) * 255).round | ||
@logo.draw(x - w, (SCREEN_HEIGHT - @logo.height) / 2, 0, 1, 1, (alpha << 24) | 0xffffff) | ||
Game.text_helper.write_line(Locl.text(:powered_by), x, (SCREEN_HEIGHT - @logo.height) / 2 - 40, :center, 0xffffff, alpha) | ||
else | ||
t = [110, @timer - 220].min | ||
w = Game.font.text_width(AUTHOR_NAME) * 1.5 / 2 | ||
x = (SCREEN_WIDTH + w - (t / 110.0) * (SCREEN_WIDTH / 2 + w)).round | ||
Game.text_helper.write_line(Locl.text(:game_by), x, SCREEN_HEIGHT / 2 - 40, :center, 0xffffff) | ||
Game.text_helper.write_line(AUTHOR_NAME, x, SCREEN_HEIGHT / 2 - 10, :center, 0xffffff, 255, nil, 0, 0, 0, 0, 1.5, 1.5) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ def update | |
@timer = 120 | ||
end | ||
else | ||
Game.quit(true) | ||
Game.show_menu(true) | ||
end | ||
end | ||
return | ||
|