You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2130 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -100,7 +100,6 @@ object formConfig: TformConfig
|
|||||||
'ON'
|
'ON'
|
||||||
'OFF'
|
'OFF'
|
||||||
)
|
)
|
||||||
OnChange = comboSoundChange
|
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
Text = 'Select'
|
Text = 'Select'
|
||||||
end
|
end
|
||||||
|
@ -34,8 +34,6 @@ type
|
|||||||
memoCredits: TMemo;
|
memoCredits: TMemo;
|
||||||
procedure btnLoadClick(Sender: TObject);
|
procedure btnLoadClick(Sender: TObject);
|
||||||
procedure comboGameTypeChange(Sender: TObject);
|
procedure comboGameTypeChange(Sender: TObject);
|
||||||
procedure comboSoundChange(Sender: TObject);
|
|
||||||
procedure FormClick(Sender: TObject);
|
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
{ private declarations }
|
{ private declarations }
|
||||||
@ -56,23 +54,8 @@ implementation
|
|||||||
|
|
||||||
procedure TformConfig.comboGameTypeChange(Sender: TObject);
|
procedure TformConfig.comboGameTypeChange(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
|
|
||||||
Case comboGameType.itemIndex of
|
|
||||||
0: begin
|
|
||||||
memoGameType.Clear;
|
memoGameType.Clear;
|
||||||
memoGameType.Lines.Add('Description: <Descrição do TappyWords>');
|
memoGameType.Lines.Add(GetModule(comboGameType.itemIndex).LongDescription);
|
||||||
memoGameType.Lines.Add('');
|
|
||||||
memoGameType.Lines.Add('Hint: <Alguma dica para TappyWords>');
|
|
||||||
end;
|
|
||||||
|
|
||||||
1: begin
|
|
||||||
memoGameType.Clear;
|
|
||||||
memoGameType.Lines.Add('Description: <Descrição do TappyMath>');
|
|
||||||
memoGameType.Lines.Add('');
|
|
||||||
memoGameType.Lines.Add('Hint: <Alguma dica para TappyMath>');
|
|
||||||
end;
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -86,16 +69,6 @@ begin
|
|||||||
Hide;
|
Hide;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TformConfig.comboSoundChange(Sender: TObject);
|
|
||||||
begin
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TformConfig.FormClick(Sender: TObject);
|
|
||||||
begin
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TformConfig.FormCreate(Sender: TObject);
|
procedure TformConfig.FormCreate(Sender: TObject);
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
object formTappyTuxGame: TformTappyTuxGame
|
object formTappyTuxGame: TformTappyTuxGame
|
||||||
Left = 375
|
Left = 626
|
||||||
Height = 425
|
Height = 425
|
||||||
Top = 210
|
Top = 277
|
||||||
Width = 621
|
Width = 621
|
||||||
Caption = 'Tappy Tux'
|
Caption = 'Tappy Tux'
|
||||||
ClientHeight = 425
|
ClientHeight = 425
|
||||||
@ -9,6 +9,7 @@ object formTappyTuxGame: TformTappyTuxGame
|
|||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
LCLVersion = '0.9.31'
|
LCLVersion = '0.9.31'
|
||||||
|
Visible = True
|
||||||
object btnExit: TButton
|
object btnExit: TButton
|
||||||
Left = 8
|
Left = 8
|
||||||
Height = 31
|
Height = 31
|
||||||
@ -237,7 +238,10 @@ object formTappyTuxGame: TformTappyTuxGame
|
|||||||
Top = 152
|
Top = 152
|
||||||
Width = 172
|
Width = 172
|
||||||
Caption = 'Game Over'#13#10'Continue?'
|
Caption = 'Game Over'#13#10'Continue?'
|
||||||
|
Checked = True
|
||||||
Color = clRed
|
Color = clRed
|
||||||
|
Enabled = False
|
||||||
|
State = cbChecked
|
||||||
TabOrder = 11
|
TabOrder = 11
|
||||||
Visible = False
|
Visible = False
|
||||||
end
|
end
|
||||||
@ -261,5 +265,6 @@ object formTappyTuxGame: TformTappyTuxGame
|
|||||||
Color = clRed
|
Color = clRed
|
||||||
OnClick = NoClick
|
OnClick = NoClick
|
||||||
TabOrder = 13
|
TabOrder = 13
|
||||||
|
Visible = False
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
71
applications/tappytux/images/modules/tappywords/0.txt
Normal file
71
applications/tappytux/images/modules/tappywords/0.txt
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
cachorro
|
||||||
|
gato
|
||||||
|
peixe
|
||||||
|
p�ssaro
|
||||||
|
macaco
|
||||||
|
le�o
|
||||||
|
tigre
|
||||||
|
elefante
|
||||||
|
crocodilo
|
||||||
|
abelha
|
||||||
|
mosca
|
||||||
|
�gua-viva
|
||||||
|
tartaruga
|
||||||
|
lagartixa
|
||||||
|
sapo
|
||||||
|
minhoca
|
||||||
|
centop�ia
|
||||||
|
rinoceronte
|
||||||
|
coiote
|
||||||
|
�guia
|
||||||
|
canguru
|
||||||
|
coala
|
||||||
|
morcego
|
||||||
|
gavi�o
|
||||||
|
pav�o
|
||||||
|
cobra
|
||||||
|
camelo
|
||||||
|
lontra
|
||||||
|
tubar�o
|
||||||
|
coelho
|
||||||
|
baleia
|
||||||
|
urso
|
||||||
|
foca
|
||||||
|
escorpi�o
|
||||||
|
touro
|
||||||
|
vaca
|
||||||
|
galinha
|
||||||
|
formiga
|
||||||
|
borboleta
|
||||||
|
girafa
|
||||||
|
arara
|
||||||
|
salamandra
|
||||||
|
r�
|
||||||
|
pinguim
|
||||||
|
tatu
|
||||||
|
avestruz
|
||||||
|
hiena
|
||||||
|
pelicano
|
||||||
|
pombo
|
||||||
|
orangotango
|
||||||
|
coruja
|
||||||
|
papagaio
|
||||||
|
tucano
|
||||||
|
ornitorrinco
|
||||||
|
gamb�
|
||||||
|
rato
|
||||||
|
esquilo
|
||||||
|
golfinho
|
||||||
|
ovelha
|
||||||
|
morsa
|
||||||
|
suricato
|
||||||
|
ornitorrinco
|
||||||
|
toupeira
|
||||||
|
barata
|
||||||
|
lula
|
||||||
|
polvo
|
||||||
|
tamandu�
|
||||||
|
camar�o
|
||||||
|
l�mure
|
||||||
|
besouro
|
||||||
|
on�a
|
@ -85,12 +85,14 @@ end;
|
|||||||
|
|
||||||
procedure TTappyMath.TranslateTextsToEnglish;
|
procedure TTappyMath.TranslateTextsToEnglish;
|
||||||
begin
|
begin
|
||||||
ShortDescription := 'TappyMath - A game to learn arithmetics';
|
ShortDescription := 'TappyMath';
|
||||||
|
LongDescription := 'A game to learn arithmetics';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTappyMath.TranslateTextsToPortuguese;
|
procedure TTappyMath.TranslateTextsToPortuguese;
|
||||||
begin
|
begin
|
||||||
ShortDescription := 'TappyMath - Um jogo para aprender aritmética';
|
ShortDescription := 'TappyMath';
|
||||||
|
LongDescription := 'Um jogo para aprender aritmética';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTappyMath.StartNewGame(SndFX: Integer; Music: Integer; Level: Integer; QuestionList: Integer);
|
procedure TTappyMath.StartNewGame(SndFX: Integer; Music: Integer; Level: Integer; QuestionList: Integer);
|
||||||
@ -154,7 +156,6 @@ end;
|
|||||||
|
|
||||||
procedure TTappyMath.QuestionGenerator(qNumber : Integer);
|
procedure TTappyMath.QuestionGenerator(qNumber : Integer);
|
||||||
begin
|
begin
|
||||||
|
|
||||||
questionType[1] := random(3);
|
questionType[1] := random(3);
|
||||||
|
|
||||||
Case questionType[1] of
|
Case questionType[1] of
|
||||||
|
@ -24,7 +24,7 @@ type
|
|||||||
gameSLevel : Integer;
|
gameSLevel : Integer;
|
||||||
gameSndFX : Boolean;
|
gameSndFX : Boolean;
|
||||||
gameMusic : Boolean;
|
gameMusic : Boolean;
|
||||||
gameQuestionList : Integer;
|
gameQuestionList : TStringList;
|
||||||
timerWords: TTimer;
|
timerWords: TTimer;
|
||||||
procedure HandleOnTimer(Sender: TObject);
|
procedure HandleOnTimer(Sender: TObject);
|
||||||
|
|
||||||
@ -84,12 +84,14 @@ end;
|
|||||||
|
|
||||||
procedure TTappyWords.TranslateTextsToEnglish;
|
procedure TTappyWords.TranslateTextsToEnglish;
|
||||||
begin
|
begin
|
||||||
ShortDescription := 'TappyWords - A game to learn typing and ortography';
|
ShortDescription := 'TappyWords';
|
||||||
|
LongDescription := 'A game to learn typing and ortography.'; // Hint: Try to keep looking at the screen instead of the keyboard!
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTappyWords.TranslateTextsToPortuguese;
|
procedure TTappyWords.TranslateTextsToPortuguese;
|
||||||
begin
|
begin
|
||||||
ShortDescription := 'TappyWords - Um jogo para aprender a digitar e ortografia';
|
ShortDescription := 'TappyWords';
|
||||||
|
LongDescription := 'Um jogo para aprender a digitar e ortografia';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTappyWords.StartNewGame(SndFX: Integer; Music: Integer; Level: Integer; QuestionList: Integer);
|
procedure TTappyWords.StartNewGame(SndFX: Integer; Music: Integer; Level: Integer; QuestionList: Integer);
|
||||||
@ -107,6 +109,10 @@ begin
|
|||||||
if (Music = 1) then gameMusic := false;
|
if (Music = 1) then gameMusic := false;
|
||||||
gameSLevel := gameLevel;
|
gameSLevel := gameLevel;
|
||||||
|
|
||||||
|
gameQuestionList := TStringList.Create;
|
||||||
|
gameQuestionList.LoadFromFile(vTappyTuxConfig.GetResourcesDir()+ 'images'+PathDelim+'modules'+PathDelim+'tappywords'+PathDelim+'0.txt');
|
||||||
|
//gameQuestionList.LoadFromFile('C:/0.txt');
|
||||||
|
|
||||||
formTappyTuxGame.Answer.ReadOnly := false;
|
formTappyTuxGame.Answer.ReadOnly := false;
|
||||||
formTappyTuxGame.GameOver.Visible := false;
|
formTappyTuxGame.GameOver.Visible := false;
|
||||||
formTappyTuxGame.Yes.Visible := false;
|
formTappyTuxGame.Yes.Visible := false;
|
||||||
@ -117,7 +123,8 @@ begin
|
|||||||
|
|
||||||
for i:= 1 to 5 do
|
for i:= 1 to 5 do
|
||||||
begin
|
begin
|
||||||
Questions[i].Text := formTappyTuxGame.Test.Lines.Strings[random(71)];
|
//Questions[i].Text := formTappyTuxGame.Test.Lines.Strings[random(71)];
|
||||||
|
Questions[i].Text := gameQuestionList[random(gameQuestionList.Count - 1)];
|
||||||
end
|
end
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user