Skip to content

Commit

Permalink
Open Tic Tac Toe | Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorCriste committed Apr 28, 2020
1 parent 927118a commit df4df36
Show file tree
Hide file tree
Showing 48 changed files with 180 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.htm linguist-detectable=true
*.htm linguist-detectable=false
*.gambas linguist-detectable=true
*.class linguist-detectable=true
3 changes: 3 additions & 0 deletions .hidden/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Mon Apr 27 2020 Junior Criste <[email protected]> 2.0.0
- Finish 2.0

* Mon Apr 20 2020 Junior Criste <[email protected]> 1.7.0

* Sat Apr 18 2020 Junior Criste <[email protected]> 1.7.0
Expand Down
22 changes: 18 additions & 4 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Title=Open Tic Tac Toe
Startup=MenuG
Icon=assets/Imgs/icon_v2.png
Version=1.7.0
Version=2.0.0
Component=gb.image
Component=gb.gui
Component=gb.form
Expand All @@ -17,9 +17,23 @@ VendorPrefix=JuniorCriste
[email protected]
Url=www.informaticode.com.br
License=General Public License
PackageName=opentictactoe-1.7.0
PackageName=opentictactoe-2.0.0
PackageVersion=2
CreateEachDirectory=1
Packager=1
Systems=ubuntu
Menus=ubuntu:"Games/Puzzles"
Systems=debian,fedora,suse,slackware,ubuntu
SameDependencies=1
Menus=debian:"Games/Strategy"
Categories=debian:"Games"
Groups=debian:"games"
Menus=fedora:"Game/Logic Game"
Categories=fedora:"Game;Games;LogicGame"
Groups=fedora:"Amusements/Games"
Menus=slackware:"Game/Logic Game"
Categories=slackware:"Game;LogicGame"
Groups=slackware:"Amusements/Games"
Menus=suse:"Game/Logic Game"
Categories=suse:"Game;LogicGame"
Groups=suse:"Amusements/Games/Strategy"
Menus=ubuntu:"Games/Strategy"
Groups=ubuntu:"games"
9 changes: 9 additions & 0 deletions .src/About.class
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Public Sub Form_Open()
fakelink.Mouse = Mouse.Custom
fakelink.Cursor = New Cursor(Picture["./assets/Imgs/cursormini.png"])

DONATE.Mouse = Mouse.Custom
DONATE.Cursor = New Cursor(Picture["./assets/Imgs/cursormini.png"])

End

Public Sub fakelink_MouseDown()
Expand All @@ -19,3 +22,9 @@ Public Sub fakelink_MouseDown()

End


Public Sub DONATE_MouseDown()

Shell "firefox https://opentictactoe.informaticode.com.br/2020/04/make-donation.html"

End
10 changes: 8 additions & 2 deletions .src/About.form
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Gambas Form File 3.0

{ Form Form
MoveScaled(0,0,85.4286,57)
MoveScaled(0,0,86,57)
Icon = Picture["assets/love.png"]
Resizable = False
{ cred PictureBox
MoveScaled(0,0,85.7143,57.1429)
MoveScaled(0,0,86,57)
Picture = Picture["assets/Imgs/creditos.png"]
Mode = PictureBox.Fill
}
{ fakelink PictureBox
MoveScaled(25,49,37,5)
Mouse = Mouse.Pointing
}
{ DONATE PictureBox
MoveScaled(2,51,17,4)
Picture = Picture["assets/Imgs/donate.png"]
Mode = PictureBox.Contain
}
}
2 changes: 2 additions & 0 deletions .src/Game.class
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ Public Sub botoesclicados()
Endif
atualizador
gradeatual.Visible = True

pegafocus.SetFocus
End


Expand Down
6 changes: 5 additions & 1 deletion .src/Game.form
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
Alignment = Align.Center
}
{ !ng PictureBox
MoveScaled(72,61,15,6)
MoveScaled(72,58,15,6)
#Public = True
Picture = Picture["assets/Imgs/newGame.png"]
Mode = PictureBox.Contain
Expand Down Expand Up @@ -224,4 +224,8 @@
Picture = Picture["assets/Imgs/block.png"]
Mode = PictureBox.Fill
}
{ pegafocus Button
MoveScaled(77,12,4,3)
Visible = False
}
}
35 changes: 35 additions & 0 deletions .src/MakeaDonation.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
' Gambas class file


Public Sub DONATE_MouseDown()

Shell "firefox https://opentictactoe.informaticode.com.br/2020/04/make-donation.html"

End

Public Sub Form_Open()


DONATE.Mouse = Mouse.Custom
DONATE.Cursor = New Cursor(Picture["./assets/Imgs/cursormini2.png"])

backtogame.Mouse = Mouse.Custom
backtogame.Cursor = New Cursor(Picture["./assets/Imgs/cursormini.png"])

fakelink.Mouse = Mouse.Custom
fakelink.Cursor = New Cursor(Picture["./assets/Imgs/cursormini.png"])

End

Public Sub backtogame_MouseDown()

MakeaDonation.Hide


End

Public Sub fakelink_MouseDown()

Shell "firefox https://opentictactoe.informaticode.com.br/2020/04/make-donation.html"

End
22 changes: 22 additions & 0 deletions .src/MakeaDonation.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Gambas Form File 3.0

{ Form Form
MoveScaled(0,0,42,37)
Background = &HE0E0E0&
Icon = Picture["assets/Imgs/Logo_love.png"]
Resizable = False
{ DONATE PictureBox
MoveScaled(0,0,42,41)
Picture = Picture["assets/Imgs/donateBig.png"]
Alignment = Align.Center
}
{ backtogame PictureBox
MoveScaled(26,30,15,6)
Picture = Picture["assets/Imgs/not.png"]
Mode = PictureBox.Contain
}
{ fakelink PictureBox
MoveScaled(8,21,25,8)
Mouse = Mouse.Pointing
}
}
22 changes: 21 additions & 1 deletion .src/MenuG.class
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Public Sub Form_Open()
hist.Mouse = Mouse.Custom
hist.Cursor = New Cursor(Picture["./assets/Imgs/cursormini.png"])

info.Mouse = Mouse.Custom
info.Cursor = New Cursor(Picture["./assets/Imgs/cursormini.png"])

Dadoslog
primeiraVez

Expand Down Expand Up @@ -326,15 +329,32 @@ Public Sub primeiraVez()

If (Game.partidasjogadas = 0 And Game.partidasganhas = 0 And Game.partidasperdidas = 0) Then

message("WELCOME!")
Print ("PRIMEIRA VEZ!")
Endif
End


Public Sub alertDonation()

History.carregarHistorico
If (Game.partidasjogadas = 5) Or (Game.partidasjogadas = 100) Or (Game.partidasjogadas = 500) Then

Print ("ALERT DONATE")
MakeaDonation.Show
Endif

End


Public Sub hist_MouseDown()

History.carregarHistorico
History.Show

End

Public Sub info_MouseDown()

About.Show

End
21 changes: 14 additions & 7 deletions .src/MenuG.form
Original file line number Diff line number Diff line change
@@ -1,47 +1,54 @@
# Gambas Form File 3.0

{ Form Form
MoveScaled(0,0,46,55)
MoveScaled(0,0,46,56)
Background = &H073140&
Text = ("Open Tic Tac Toe")
Icon = Picture["assets/Imgs/mini_icon_v2.png"]
Resizable = False
{ op1 PictureBox
MoveScaled(1,3,43.7143,21.4286)
MoveScaled(1,4,43.7143,21.4286)
Mouse = Mouse.Pointing
Picture = Picture["assets/Players/ctrl1.png"]
}
{ op2 PictureBox
MoveScaled(1,29,43.7143,21.4286)
MoveScaled(1,30,43.7143,21.4286)
Mouse = Mouse.Pointing
Picture = Picture["assets/Players/ctrl2.png"]
}
{ infp1 Label
MoveScaled(7,24,35,5)
MoveScaled(7,25,35,5)
Font = Font["Geometos,+2"]
Foreground = &HC0C0C0&
Text = ("PLAYER X PLAYER")
Alignment = Align.Center
}
{ infp2 Label
MoveScaled(5,50,35,5)
MoveScaled(5,51,35,5)
Font = Font["Geometos,+2"]
Foreground = &HC0C0C0&
Text = ("PLAYER X COMPUTER")
Alignment = Align.Center
}
{ !sett PictureBox
MoveScaled(43,0,3,4)
MoveScaled(42,0,3,4)
#Public = True
Mouse = Mouse.Pointing
Picture = Picture["assets/Imgs/sett.png"]
Mode = PictureBox.Contain
}
{ !hist PictureBox
MoveScaled(39,0,3,4)
MoveScaled(5,0,3,4)
#Public = True
Mouse = Mouse.Pointing
Picture = Picture["assets/Imgs/hist.png"]
Mode = PictureBox.Contain
}
{ !info PictureBox
MoveScaled(1,0,3,4)
#Public = True
Mouse = Mouse.Pointing
Picture = Picture["assets/Imgs/info.png"]
Mode = PictureBox.Contain
}
}
10 changes: 10 additions & 0 deletions .src/WinnerAlert.class
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Public Sub backtogame_MouseDown()

WinnerAlert.Hide
MenuG.alertDonation
Game.ng.Enabled = True

End
Expand Down Expand Up @@ -48,5 +49,14 @@ Public Sub definecursor()

backtogame.Mouse = Mouse.Custom
backtogame.Cursor = New Cursor(Picture["./assets/Imgs/cursormed.png"])

DONATE.Mouse = Mouse.Custom
DONATE.Cursor = New Cursor(Picture["./assets/Imgs/cursormed.png"])

End

Public Sub DONATE_MouseDown()

Shell "firefox https://opentictactoe.informaticode.com.br/2020/04/make-donation.html"

End
5 changes: 5 additions & 0 deletions .src/WinnerAlert.form
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@
Picture = Picture["assets/Imgs/ok.png"]
Mode = PictureBox.Contain
}
{ DONATE PictureBox
MoveScaled(1,19,17,4)
Picture = Picture["assets/Imgs/donate.png"]
Mode = PictureBox.Contain
}
}
1 change: 1 addition & 0 deletions .src/shell/e-configBG.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clear && cd ~ && cd .opentictactoe-cfg/configure && if [ -e configBG.txt ]; then echo arquivo existe; else echo Arquivo nao existe; fi
2 changes: 1 addition & 1 deletion .src/shell/fullScript.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
clear && cd ~ && if [ -e .opentictactoe-cfg/configure ]; then echo DIRETORIO JA EXISTE; else echo CRIANDO DIRETORIO; mkdir .opentictactoe-cfg; cd .opentictactoe-cfg && mkdir configure; echo AGORA DIRETORIO JA EXISTE; fi; cd ~ && cd .opentictactoe-cfg/configure && if [ -e configApp.txt ]; then echo ARQUIVO JA EXISTE; else touch configApp.txt; echo mus3 > configApp.txt; echo AGORA ARQUIVO JA EXISTE; fi
clear && cd ~ && if [ -e .opentictactoe-cfg/configure ]; then echo DIRETORIO JA EXISTE; else echo CRIANDO DIRETORIO; mkdir .opentictactoe-cfg; cd .opentictactoe-cfg && mkdir configure; echo AGORA DIRETORIO JA EXISTE; fi; cd ~ && cd .opentictactoe-cfg/configure && if [ -e configApp.txt ]; then echo ARQUIVO JA EXISTE; else touch configApp.txt; echo mus3 > configApp.txt; echo AGORA ARQUIVO JA EXISTE; fi && cd ~ && cd .opentictactoe-cfg/configure && if [ -e configBG.txt ]; then echo ARQUIVO JA EXISTE; else touch configBG.txt; echo BG1 > configBG.txt; echo AGORA ARQUIVO JA EXISTE; fi
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
###### _pt-br_
### Open Tic Tac Toe é um "jogo da velha" gratuito e de código aberto desenvolvido por Junior Criste para rodar em sistemas Linux.
###### <a href="https://opentictactoe.informaticode.com.br/2020/04/relatorio-de-atualizacao.html"> Relatório de Versões</a>
<img src="https://4.bp.blogspot.com/-5QperKE_5L0/XpAU4VDljAI/AAAAAAAAGyw/TGnulTi2IP0kYbirBYAzY4omkvuuAt3gwCLcBGAsYHQ/s1600/windows.png">
<img src="https://2.bp.blogspot.com/-JDoSha-Ompw/XqeYnmCHgAI/AAAAAAAAG6Q/cWI2wK3JolgeGzh0YPwwFwedFJlc4STnwCLcBGAsYHQ/s1600/windows.png">

### Downloads
###### <a href="https://opentictactoe.informaticode.com.br/download">Confira os pacotes para Download aqui.</a>
Binary file modified assets/EditImg/creditos.xcf
Binary file not shown.
Binary file added assets/EditImg/rewardsmodel.xcf
Binary file not shown.
Binary file added assets/Imgs/abo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Imgs/creditos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Imgs/donate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Imgs/donateBig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Imgs/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Imgs/not.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Imgs/yes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Printscreen/Print1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Printscreen/Print2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Printscreen/Print3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Printscreen/Print9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/Printscreen/windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/dates/RelatorioDeAtualizacao.htm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ <h2>Versão 1.70</h2><h3>
<li>Reconhecimento da primeira sessão jogável.</li>
<li>Ícone atualizado.</li>
<li>Adicionada tela com placar histórico.</li></h3>
<h2>Versão 2.0</h2><h3>
<li>Adicionado troca de background junto a música.</li>
<li>Adicionado mais um arquivo shell as configurações, para definição dos fundos.</li>
<li>Bug que permitia marcar uma área já marcada usando o teclado foi resolvido.</li>
<li>Adição da tela e links de Donate.</li>
<li>Atualização de Interface da tela de créditos.</li>
<li>Criação de pacote de instalação para versão 2.0 compativeis com Ubuntu, Mint, Debian, RedHat, OpenSuse, Slackware, Fedora, CentOS e baseados nessas distros.</li>
<li>Atualização do Readme e das capturas de tela na documentação do GitHub e do site.</li></h3>
</div>
</body>
</html>
13 changes: 13 additions & 0 deletions assets/dates/premios.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
10 Vitórias do Player 1 x Computador
100 Vitórias do Player 1 x Computador
1000 Vitórias do Player 1 x Computador

100 Empates

100 Partidas
250 Partidas
500 Partidas
1000 Partidas


NÃO EM PRATICA!
26 changes: 0 additions & 26 deletions assets/dates/rascunho.txt

This file was deleted.

Binary file added assets/rewards/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/rewards/progress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/rewards/welcome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debian/opentictactoe.deb
Binary file not shown.
Binary file added bin/Fedora - RedHat - CentOS/opentictactoe.rpm
Binary file not shown.
Binary file added bin/Suse/opentictactoe.rpm
Binary file not shown.
Binary file removed bin/Ubuntu & Mint/opentictactoe.deb
Binary file not shown.
Binary file added bin/slackware/opentictactoe.tgz
Binary file not shown.
Binary file not shown.

0 comments on commit df4df36

Please sign in to comment.