AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Game: ManyTetris - Customizable Pocket Tetris
Goto page 1, 2, 3  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Thu Dec 11, 2008 5:33 pm    Post subject: Game: ManyTetris - Customizable Pocket Tetris Reply with quote

ManyTetris 0.17

This is the result of complete boredom... Smile
I once had a handheld tetris game, which had many variants of tetris inside, with many different pieces.
It was monochrome.

So, I have created this little script.
It is completely non graphic (i.e. there are no bitmaps) - all is done by color GUI elements.

The nice thing about it (to me anyways) is that you can quite easily create additional games, by creating a new game template file.

In this template, you can define some variables of the game + define the piece shapes.

I have added some minimal sounds for completeness.
Also, some options (colors etc) are configurable in the INI.

Download this ZIP archive for source + readme + sounds + some game variations.
_________________
Sector-Seven - Freeware tools built with AutoHotkey


Last edited by Icarus on Sat Jun 18, 2011 10:23 pm; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Thu Dec 11, 2008 7:55 pm    Post subject: Reply with quote

Very nice. Very Happy
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Hezzu_guest
Guest





PostPosted: Thu Dec 11, 2008 10:25 pm    Post subject: Reply with quote

I still have that tetris

It's was so cash because it showed to the world that some things could be changed

And I could say you are brought that thought back to life
Back to top
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Thu Dec 11, 2008 10:36 pm    Post subject: Reply with quote

Heh Smile
I am not sure it is the same one, back then there were many tetris games - it was popular.

Mine looked something like this, in black.

The writings are familiar, so I may had the exact model.

If you still have it - maybe you can tell me if I missed any piece shape (or added one that did not exist).
Check the Deluxe Tetris template - this was supposed to be a replica of that game, as I remember it.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Z_Gecko
Guest





PostPosted: Fri Dec 12, 2008 1:49 pm    Post subject: Reply with quote

Very nice,
Thanks.

Here ist the first "mod":
Code:
; ChaoTris.txt - ManyTetris.ahk Game-File
; ; is a comment
; # is a directive (middle spaces allowed, trailing spaces not allowed)
; Empty line is ignored
; All the rest, piece definition where
; = is a piece state separator (when rotated)
; * is a beginning of a new piece

#Rows 21
#Cols 7
#BoxSize 28
#DropSpeed         200
#DropSpeedIncrease 10
#MaxDropSpeed      900

+
*

+-
-+
=
-+
+-
*

+-
-+
=
+-
+-
=
-+
+-
=
++
--
=
+-
-+
=
-+
-+
=
-+
+-
=
--
++
*

++
*

-++-
=
++++
*

-
-
-
+
=
-
-
+
+
=
-
+
+
+
=
+
+
+
+
*

-+-
++-
-+-
=
-+-
-+-
-+-
=
-+-
-++
-+-
=
-+-
-+-
-+-
*

++
++
=
+-
+-
*

+-+
+-+
+-+
=
+++
---
+++
*

+--
-+-
--+
=
-+-
-+-
-+-
=
--+
-+-
+--
=
---
+++
---
*

---
-+-
---
=
+++
+-+
+++
*

+++
+-+
+-+
=
+++
--+
+++
=
+-+
+-+
+++
=
+++
+--
+++
*

-+-
+-+
---
=
-+-
--+
-+-
=
---
+-+
-+-
=
-+-
+--
-+-
*

+-
--
=
++
--
=
++
-+
=
++
++
=
+-
++
=
+-
+-
*

---+---
--++---
=
+++++++
-------
*

-+-
+-+
-+-
=
+-+
-+-
+-+
*

-----
+++++
-----
=
++---
-+++-
---++
=
--+--
-+++-
--+--
=
---++
-+++-
++---
*
+---
++--
=
+---
+++-
=
+---
++++
*

---+
--++
=
---+
-+++
=
---+
++++
*

---+
++++
---+
=
--+-
++++
--+-
=
-+--
++++
-+--
=
+---
++++
+---
*
--+++--
-++-++-
++---++
=
-------
-+++++-
+++-+++
=
-------
-------
+++++++
*

-+
+-
-+
=
+-
-+
+-
*

---
---
--+
=
---
-++
--+
=
---
++-
+--
=
-+-
-+-
-+-
=
---
-++
-++
=
+--
-++
--+
=
+-+
-+-
-+-
*

----
-+-+
=
--+-
-+-+
=
+++-
-+-+
=
+-+-
-+--
*

---
+++
=
+-+
+++
=
+++
+++
=
+++
+-+
=
+++
---
*

+
*

-
+
-
=
+
-
+
*

+-+
+++
+-+
=
+++
-+-
+++
*

---
---
+--
=
---
-+-
+--
=
--+
-+-
+--
*

---
+++
---
=
+--
-+-
--+
=
-+-
-+-
-+-
=
--+
-+-
+--
*

+++
---
-+-
=
+--
---
-+-
=
--+
---
-+-
*

+
*

+
*

+
Back to top
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Fri Dec 12, 2008 2:36 pm    Post subject: Reply with quote

Z_Gecko wrote:
Very nice,
Thanks.

Here ist the first "mod":


LOL!
Thats a very nice mod.
I was wondering if I would see some game templates here, but I did not expect that the first one would exploit the rotation states so nicely as you did.

Going to play the "Z_Gecko Wicked Mod" (dot txt)

Smile

EDIT:
Did you intentionally make the speeds like this?
Starts with 200ms sleep, then from the second piece on, it will use 900ms constantly.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Z_Gecko
Guest





PostPosted: Sat Dec 13, 2008 1:29 am    Post subject: Reply with quote

Quote:
EDIT:
Did you intentionally make the speeds like this?
Starts with 200ms sleep, then from the second piece on, it will use 900ms constantly.

No. Shocked
I totally misunderstood the meanings of this values. And was always wondering why it produced that behaviour. Now i know. Embarassed
Back to top
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Sat Dec 13, 2008 2:45 am    Post subject: Reply with quote

Icarus, that is very professionally done! Exclamation Surprised I happily relinquish the title of "Best self-contained AHK game produced to date." You've earned it. I love the option to make my own pieces (and so easily too).

One suggestion (from playing a lot of Tetris over the years) - it can be handy to have the drop button (down arrow) execute a "push" when it's just tapped. Meaning it only drops the piece one row per press and doesn't drop the piece all the way to the bottom until it's been held for a second or two. This prevents an accidental down press from ruining a game, and is useful for sliding one piece under the edge of another in slower levels.

Congratulations. The script is wonderful! Cool
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Sat Dec 13, 2008 9:27 am    Post subject: Reply with quote

jaco0646 wrote:
Icarus, that is very professionally done!

Hey, thanks buddy! Smile
I am glad you find it amusing.
If you have created your own game, you can post it here if you want - I can put it in the ZIP package,

Quote:

One suggestion (from playing a lot of Tetris over the years) - it can be handy to have the drop button (down arrow) execute a "push" when it's just tapped. Meaning it only drops the piece one row per press and doesn't drop the piece all the way to the bottom until it's been held for a second or two.


You mean you prefer a soft drop instead of the implemented hard drop. I hear you.
Done.

Will post the updated package up in the first post in a few minutes.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Sat Dec 13, 2008 9:30 am    Post subject: Reply with quote

Version 0.13 is up:
  • Added : Some games (thanks Z_Gecko for ChaoTris).
  • Added : If last played game is no longer found (file deleted/renamed), we will load the first found game.
  • Changed: The start button will now have a fixed size.
  • Changed: Hard drop to soft drop (thanks jaco0646)

_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Obi-Wahn



Joined: 20 Apr 2006
Posts: 75
Location: Vienna

PostPosted: Sat Dec 13, 2008 1:44 pm    Post subject: Reply with quote

Hi there!
Nice Game. I like it very. But today, while playing, there are 2 situations where I have questions:

1.) While playing, the dropdownlist changes every time the selection. It doesn't jam the game, but it's a litle bit annoying.

2.) While playing ChaoTris, from time to time error messages appear:


Any ideas?

BTW: After confirming the message, the "Block" doesn't fall further, but you can play, when forcing the Block to drop (holding Arrow Down)
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Sat Dec 13, 2008 1:46 pm    Post subject: Reply with quote

Hold on, taking a look.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Sat Dec 13, 2008 1:58 pm    Post subject: Reply with quote

Found the bug caused by ChaoTris.
Fixed, will be uploaded soon.

I was unable to reproduce your drop down list issue.
You are saying it changes while you are playing?
The code seem to handle it.
What OS are you using?
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Obi-Wahn



Joined: 20 Apr 2006
Posts: 75
Location: Vienna

PostPosted: Sat Dec 13, 2008 2:03 pm    Post subject: Reply with quote

Yeah, it changes while acting with the arrow keys. For me, it looks like Focus stays on the ddl control.

Im using Windows XP Sp3.

Thanks for Bugfix.
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Sat Dec 13, 2008 2:07 pm    Post subject: Reply with quote

Thats weird... Since all the arrow keys are mapped to do something else, they are not supposed to effect the GUI.

I am assuming that if you change the focus (press TAB to move the focus to the Start button) this does not happen. Right?

In any case, in the new version I am moving the focus away from the DDL on startup.

Uploading in a few mins.

Thanks for reporting, and I am glad you like it Smile
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group