KaMiGoku Posted January 30, 2020 Share Posted January 30, 2020 Hi guys I think about create simple tetris game.And I have problem don't know how do that if there are three blocks next to each other, it should be displayed message you win.If you have idea it i will be greatfull for help. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 30, 2020 Moderators Share Posted January 30, 2020 (edited) @KaMiGoku We love to see people writing their own games in AutoIt. Please share what you have tried thus far, and we can help from that point. Edit: Also, please always search the forum, you may find what you're looking for without having to post. Below, for example, is a tetris game made some years back. It may give you some ideas. Edited January 30, 2020 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
KaMiGoku Posted January 30, 2020 Author Share Posted January 30, 2020 Overall I was thinking about dividing screen on area.Oh yes https://imgur.com/a/mbNcpW2 And do it this way. #include <MsgBoxConstants.au3> ;Simple Collision System $red = 0xED1C24 ;Colour red $block1 ;block1 area $block2 ;block2 area $block3 ;block3 area if $block1 + $block2 + block3 = 0xED1C24 Then MsgBox($MB_SYSTEMMODAL, "Tetris", "You Win!") Else EndIf Link to comment Share on other sites More sharing options...
KaMiGoku Posted January 30, 2020 Author Share Posted January 30, 2020 (edited) Ok I was looking at this script and I have a question can you tell me what lines is the script responsible for removing blocks next to each other? Edited January 30, 2020 by KaMiGoku Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now