Page 1 of 2 12>
Topic Options
#114583 - 2004-02-23 10:29 AM KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hi all,

I'd like to share my latest game with you (well, it's not really mine, but heavily inspired by Alexej Pajitnov's famous Tetris® )
Taking advantage of the brand new .KeyPreview property it requires

KiXforms 2.3.0 beta 4

Game download

Screenshot:



Enjoy


Edited by Jochen (2004-03-01 07:59 AM)
_________________________



Top
#114584 - 2004-02-23 11:28 AM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh...
been wasting about an hour of worktime now and still the speed is lame.
have to keep pushing down button as it does not speed up
also, how many rounds do I have to go to get rid of novice status?
at level 15 now and me still novice
_________________________
!

download KiXnet

Top
#114585 - 2004-02-23 11:40 AM Re: KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
In Novice Mode it increases only every 3rd level, and the mode will stay in the chosen state(valid for all difficulties). The other two modes will increase speed with every completed level.
You'll have to choose a harder mode


Edited by Jochen (2004-02-23 11:42 AM)
_________________________



Top
#114586 - 2004-02-23 02:05 PM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok!
just didn't know I can change the mode by click... thought it would gradually change or something

novice seems to get lot more scores though
_________________________
!

download KiXnet

Top
#114587 - 2004-02-23 09:55 PM Re: KiXtris - Arcade days revisited
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
This brings back memories! i think it was a tetris kix script that was the birth place of the very first kixforms idea

Is that right shawn?

Quote:

Hi all,

I'd like to share my latest game with you (well, it's not really mine, but heavily inspired by Alexej Pajitnov's famous Tetris® )
Taking advantage of the brand new .KeyPreview property it requires

KiXforms 2.3.0 beta 4

Game download

Screenshot:
Enjoy




Top
#114588 - 2004-02-23 10:02 PM Re: KiXtris - Arcade days revisited
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
ah hA!

an extreamly slow day.......

Top
#114589 - 2004-02-23 10:13 PM Re: KiXtris - Arcade days revisited
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
very nice and very similar to the original game.

just a problem : twice this afternoon, the record form didn't appear at the end and I had to kill the process. I'm not sure that this form comes on top !!!...

for my first day with kixtris, my record is about 35000
(with tetris, my record is negative because the program uses a 16 bits signed counter)
_________________________
Christophe

Top
#114590 - 2004-02-24 08:05 AM Re: KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Christophe,

yeah, I had the same problems but only running this on NT, on W2K it works as expected.
I kinda suspect .Dispose to cause this, not sure though.

Did it fail on NT for you ?
_________________________



Top
#114591 - 2004-02-24 11:37 AM Re: KiXtris - Arcade days revisited
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
yes, i am using an NT 4 workstation.

it's very disappointing to do a high score and can't save it !!!
_________________________
Christophe

Top
#114592 - 2004-02-24 12:41 PM Re: KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm,

sorry for that. But as it only seems to fail randomly and only on NT I think it's not the code that makes it fail

_________________________



Top
#114593 - 2004-02-24 01:36 PM Re: KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Christophe,

think I got this behavior fixed now

replace line 488 with this one

Code:
    dim $s, $txt, $pos, $i, $j, $frmHSTable



and remove line 567



_________________________



Top
#114594 - 2004-02-24 03:35 PM Re: KiXtris - Arcade days revisited
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Brilliant.
Top
#114595 - 2004-02-25 05:46 PM Re: KiXtris - Arcade days revisited
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
thank's

i made some tests and i had replaced the line 567 by
$frmHSTable = nothing
that solved my problem.

to be sure the high score form to be visible, i added too
$frmHsTable.TopMost = 1

now i can save my scores,
Beginner=94687 for the fun
Intermediate=47304 for test
Expert=47833 (my favorite level)
_________________________
Christophe

Top
#114596 - 2004-02-25 09:47 PM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm, think I shall do some testing with expert mode too.
jochen, what about updating the source?
done that or are we required to tweak it?
_________________________
!

download KiXnet

Top
#114597 - 2004-02-25 09:53 PM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, next comment.
the game speed totally different on different Hardware and OS.
at work the expert mode with XP machine was really sloooow and at home with my laptop I hardly can keep up.
_________________________
!

download KiXnet

Top
#114598 - 2004-02-25 09:58 PM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, found out what it was.
this bloody compaq-keyboard is too slow.
I have keep hitting it around 2-5 times before get any movement to the blocks.
_________________________
!

download KiXnet

Top
#114599 - 2004-02-26 08:04 AM Re: KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
lol,

ja, I already thought that this could be impossibly caused by da code as it is timer driven

For the source. I will apply Christophe's findings and send to Rod.
Will update you as soon it's hosted ...


Quote:

Expert=47833 (my favorite level)




you're a KiXtris Pro !!
_________________________



Top
#114600 - 2004-02-26 09:40 AM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
1) how do I view the highscores?
2) why does the highscore box freeze without showing anything after applying your "fixes"?
_________________________
!

download KiXnet

Top
#114601 - 2004-02-26 09:57 AM Re: KiXtris - Arcade days revisited
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
1) there's no manual way implemented. It just pops up when Game is over.
2) You must have screwed something. It works ok here now


try it with this :

Code:
function Game_Over()

dim $s, $txt, $pos, $i, $j, $frmHSTable
$GameActive = 0
$_ = Form_Options_Skill($diff)
$tmrBricks.Enabled = 0
$lblStatus.Text = "Game Over"

$frmHsTable = createobject("Kixtart.Form")
$frmHSTable.TopMost = 1
$frmHsTable.Size = 275,235
$frmHsTable.Location = $form.Left + ($form.ClientWidth / 2 - $frmHsTable.ClientWidth / 2),
$form.Top + ($form.ClientHeight / 2 - $frmHsTable.ClientHeight / 2)

$tabSkills = $frmHsTable.Controls.TabControl("",5,5,$frmHsTable.ClientWidth-10,$frmHsTable.ClientHeight-43)

$btnOK = $frmHsTable.Controls.ToolButton("OK",$frmHsTable.ClientWidth/2+15,$frmHsTable.Clientheight-30,75,23)
$btnOK.OnClick = "$$frmHsTable.Hide"

$btnReset = $frmHsTable.Controls.ToolButton("Reset Highscore",$frmHsTable.ClientWidth/2-90,$frmHsTable.Clientheight-30,90,23)
$btnReset.OnClick = "Game_ResetHighScores($$tabSkills.SelectedIndex+1,1)"

$pos = Game_CheckHighScore($Score)
if $pos
$btnReset.Enabled = 0
select
case $pos = 1
$frmHsTable.Text = "Congratulations - 1st Place"
case $pos < 4
$frmHsTable.Text = "Well done - You rank " + $HSRanks[$pos-1]
case 1
$frmHsTable.Text = "Not bad - You rank " + $HSRanks[$pos-1]
endselect
if $pos < 5
for $i = 5 to $pos + 1 step -1
$HS[$Diff-1][2*$i-2] = $HS[$Diff-1][2*$i-4]
$HS[$Diff-1][2*$i-1] = $HS[$Diff-1][2*$i-3]
next
endif
$HS[$Diff-1][2*$pos-2] = $Score
$HS[$Diff-1][2*$pos-1] = ""
else
$frmHsTable.Text = "Your Score : " + $Score
$btnOK.Default = 1
endif

for $i = 0 to 2
$_ = execute("$$tab" + $HSini[$i] + " = $$tabSkills.TabPages.Add(substr('" + $HSini[$i] + "',3,len(" + $HSini[$i] + ")))")
$_ = execute("$$lvw" + $HSini[$i] + " = $$tab" + $HSini[$i] + ".ListView('',40,35,300,200)")
$_ = execute("$$lvw" + $HSini[$i] + ".FontSize = 10")
$_ = execute("$$lvw" + $HSini[$i] + ".Enabled = 0")
$_ = execute("$$lvw" + $HSini[$i] + ".View = 1")
$_ = execute("$$lvw" + $HSini[$i] + ".BorderStyle = 0")
$_ = execute("$$lvw" + $HSini[$i] + ".HeaderStyle = 0")
$_ = execute("$$lvw" + $HSini[$i] + ".BackColor = $$frmHsTable.BackColor")
$_ = execute("$$_ = $$lvw" + $HSini[$i] + ".Columns.Add('',30,0)")
$_ = execute("$$_ = $$lvw" + $HSini[$i] + ".Columns.Add('',65,1)")
$_ = execute("$$_ = $$lvw" + $HSini[$i] + ".Columns.Add('',90,0)")
for $j = 0 to 4
$_ = execute("$$item$j" + $HSini[$i] + " = $$lvw" + $HSini[$i] + ".Items.Add('" + $HSRanks[$j] + "')")
$_ = execute("$$item$j" + $HSini[$i] + ".SubItems(1).Text = '" + $HS[$i][2*$j] + "'")
$_ = execute("$$item$j" + $HSini[$i] + ".SubItems(2).Text = '" + $HS[$i][1+2*$j] + "'")
next
next

$tabSkills.SelectedIndex = $Diff - 1

if $pos
$_ = execute("$$lblName = $$tab" + $HSini[$Diff-1] + ".Label('',10,10,130,15)")
$_ = execute("$$lblName.ForeColor = 'Kixtart'")
$_ = execute("$$lblName.Text = 'Please enter your name ...'")
$_ = execute("$$txtName = $$tab" + $HSini[$Diff-1] + ".TextBox('',$$lblName.Right+5,7,100,20)")
$txtName.BackColor = $frmHsTable.BackColor
$txtName.OnLostFocus = "Game_UpdateHighscores($$pos)"
$txtName.OnKeyDown = "if $$txtName.KeyCode=13 Game_UpdateHighscores($$pos) endif"
$txtName.SetFocus
endif

$frmHsTable.Show
while $frmHsTable.Visible
$_ = execute($frmHsTable.DoEvents)
loop
$frmHSTable = 'nothing'
endfunction



Edited by Jochen (2004-02-26 10:00 AM)
_________________________



Top
#114602 - 2004-02-26 10:14 AM Re: KiXtris - Arcade days revisited
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it seemed to have something to do with me opening other docs while playing as now it didn't happen.
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.081 seconds in which 0.032 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org