CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 35
  1. #16
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Help with Tetris

    Hello again Jaco!

    I'm from Vereeniging, quite close to Sasolburg etc.

    I am stumped, honestly, truly stumped

    Only thing I can think of is your ( I shudder to say ) Graphics card, perhaps??

    Join a Discussion on Multithreaded Programming

  2. #17
    Join Date
    Apr 2010
    Posts
    14

    Re: Help with Tetris

    Quote Originally Posted by HanneSThEGreaT View Post
    Hello again Jaco!

    I'm from Vereeniging, quite close to Sasolburg etc.

    I am stumped, honestly, truly stumped

    Only thing I can think of is your ( I shudder to say ) Graphics card, perhaps??

    Join a Discussion on Multithreaded Programming
    Eish...

  3. #18
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Help with Tetris

    vs 2008 and windows 7. Seems as if fixedTetris, after vs2008 conversion behave the same as for Jakoe.
    ''''''''''''''''''''''''''''''''''''''EDIT''''''''''''''''''''''''
    I admit I did not read the articles, just take the fixed code an tried. As it did nothing, I entered code.
    Saw a timer named "tmrTet" not enabled (and no code for it)
    Saw the paint event, with a call to a splash routine. It seemed that first run actually noved something, then everithing stppped and there was no way to made it move again.
    ''''''''''''''''EDit II '''''''''''''''''''''''
    rebuilt as release, launced, and the Jetris appeared for a small fraction of second on monitor, then disappeared and there has been no way to get it back. I am quite sure that if I restart the machine I could see it again.
    Last edited by Cimperiali; April 16th, 2010 at 06:42 PM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  4. #19
    Join Date
    Apr 2010
    Posts
    14

    Question Re: Help with Tetris

    Quote Originally Posted by Cimperiali View Post
    vs 2008 and windows 7. Seems as if fixedTetris, after vs2008 conversion behave the same as for Jakoe.
    ''''''''''''''''''''''''''''''''''''''EDIT''''''''''''''''''''''''
    I admit I did not read the articles, just take the fixed code an tried. As it did nothing, I entered code.
    Saw a timer named "tmrTet" not enabled (and no code for it)
    Saw the paint event, with a call to a splash routine. It seemed that first run actually noved something, then everithing stppped and there was no way to made it move again.
    ''''''''''''''''EDit II '''''''''''''''''''''''
    rebuilt as release, launced, and the Jetris appeared for a small fraction of second on monitor, then disappeared and there has been no way to get it back. I am quite sure that if I restart the machine I could see it again.
    i see that if i leave the game running for a few minutes, the Jetris does evnntualy apper.

  5. #20
    Join Date
    Apr 2010
    Posts
    14

    Re: Help with Tetris

    Quote Originally Posted by HanneSThEGreaT View Post
    Hello Jaco - are your frm South Africa BTW? Jaco is quite a common name here

    I haven't helped much! You have actually helped me by discovering these issues, so I must thank you!

    I'm still investigating this, we'll get it sorted - do not worry
    Hi Hannes

    Me again

    don't worry about the other problems i wrote abut, i got them, ha ha

    i see now that if i can run the game and i minimize it and then resore it, the word appears.

    just thought i'd let u know

    Have a gr8 day

  6. #21
    Join Date
    Apr 2010
    Posts
    14

    Exclamation Re: Help with Tetris

    Quote Originally Posted by Jakoe View Post
    Hi Hannes

    Me again

    don't worry about the other problems i wrote abut, i got them, ha ha

    i see now that if i can run the game and i minimize it and then resore it, the word appears.

    just thought i'd let u know

    Have a gr8 day
    Good day Hannes

    Afrikaans.

    Sorry to hear about the hand, I hope it doesn’t hurt too much, and thanx for your reply.

    Can you maybe find my problem, I struggle to figure out why he blocks move if I click my mouse.

    My blocks just flips in one direction but, that is how it should be.

    And I want to do something that make the blocks move with the mouse cursor, better than now.

    I also saw that with your and my game, the row doesn’t get cleared when it’s full.

    Do you have any ideas for me, pls.

    Jaco
    Attached Files Attached Files

  7. #22
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Cool Re: Help with Tetris

    Hello Jaco!

    Afrikaans.

    Jip, my hand is vrek seer!

    That will teach me to think I'm still 18! LOL!

    Anyways, I know about the rows not clearing part - that will be addressed in the 4th part - which will now take a little longer to complete because of my hand.

    I have downloaded your version, and I'll check it out

    Thanx for your continued interest!

    Hannes
    Last edited by HanneSThEGreaT; April 22nd, 2010 at 08:54 AM.

  8. #23
    Join Date
    Apr 2010
    Posts
    14

    Re: Help with Tetris

    Quote Originally Posted by HanneSThEGreaT View Post
    Hello Jaco!

    Afrikaans.

    Jip, my hand is vrek seer!

    That will teach me to think I'm still 18! LOL!

    Anyways, I know about the rows not clearing part - that will be addressed in the 4th part - which will now take a little longer to complete because of my hand.

    I have downloaded your version, and I'll check it out

    Thanx for your continued interest!

    Hannes
    Thank you Hannes

    I'm enjoying the project very much.

    Jaco

  9. #24
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Smile Re: Help with Tetris

    Hello Jaco.

    It seems as if one of my display objects that I created got a bit confused. The only way I could get the issue concerning the SplashScreen fixed was to add another panel on top of the Game panel. Then I had to do the following in the code :

    Declare a Splash rectangle :

    Code:
        Private rctSplash As Rectangle
    In the Setup function edit the necessary line to look like :

    Code:
            scrSplash = New clsTetDisplay(pnlSplash, rctSplash)
    In the form's KeyDown event, change the "Q" case to :

    Code:
                    Case "Q" 'Stop, Reset Everything
                        tmrTet.Stop()
                        SetUp()
                        Splash()
                        pnlSplash.Visible = True
    And edit the "RETURN" case to include the following :

    Code:
                        pnlSplash.Visible = False
    That's it.

    I am including a revised version of my Tetris here. There are other issues as we know, but let us take it one at time, after this we do the next issue

    Lekker dag!

    Hannes
    Last edited by HanneSThEGreaT; April 28th, 2010 at 07:38 AM.

  10. #25
    Join Date
    Apr 2010
    Posts
    14

    Cool Re: Help with Tetris

    Quote Originally Posted by HanneSThEGreaT View Post
    Hello Jaco.

    It seems as if one of my display objects that I created got a bit confused. The only way I could get the issue concerning the SplashScreen fixed was to add another panel on top of the Game panel. Then I had to do the following in the code :

    Declare a Splash rectangle :

    Code:
        Private rctSplash As Rectangle
    In the Setup function edit the necessary line to look like :

    Code:
            scrSplash = New clsTetDisplay(pnlSplash, rctSplash)
    In the form's KeyDown event, change the "Q" case to :

    Code:
                    Case "Q" 'Stop, Reset Everything
                        tmrTet.Stop()
                        SetUp()
                        Splash()
                        pnlSplash.Visible = True
    And edit the "RETURN" case to include the following :

    Code:
                        pnlSplash.Visible = False
    That's it.

    I am including a revised version of my Tetris here. There are other issues as we know, but let us take it one at time, after this we do the next issue

    Lekker dag!

    Hannes
    Hi Hannes,

    Hope your weekend was lekke.

    Thanx for the code,

    Unfortunately it doesn't help, but i had this feeling just now, and added the setUp sub to the frmTet load event.

    And there it was. Amazingly

    I guess that's fixed huh

    Enjoy your day
    Jaco

  11. #26
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Help with Tetris

    Hi Jaco!

    Yep, it was, hope yours was good too.

    Strange, on my machine it didn't want to work, even when I added Setup to Load...

    My last resort was to basically add another panel. there is just something small giving issues, but it's OK, if it is fixed. I should say that I have tested this on Windows 7, so Windows 7 might have been the whole problam afterall, hmm..

    Working on the other issues

    Have a great evening

  12. #27
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Help with Tetris

    Ah hah! Windows 7 is the culprit!! I have always loved Windows 7, but now this love for Windows 7 is starting to fade away - it is giving us too many unecessary unexpected behaviours!

    I did a small test, with adding the call tro Setup inside load on my XP machine ( at work ) and voila!

    It is very disappointing from Windows 7 to say the least, really I expected better ( with all the improvements in Graphics etc. ) It is as if it concentrates more on newer .NET Frameworks ( 2008, 2010 ), than the older ones - bad Windows 7, bad!

    Anyways, the splash screen issue has literally taken my whole weekend, and it was even more difficult with my broken hand!

    Thanx Jaco, for all your feedback, I'll buy you a six pack Castles one day when this nightmare of a project, has been completed

    Now, off to the next victim on my list for Tetris...

  13. #28
    Join Date
    Apr 2010
    Posts
    14

    Smile Re: Help with Tetris

    Quote Originally Posted by HanneSThEGreaT View Post
    Ah hah! Windows 7 is the culprit!! I have always loved Windows 7, but now this love for Windows 7 is starting to fade away - it is giving us too many unecessary unexpected behaviours!

    I did a small test, with adding the call tro Setup inside load on my XP machine ( at work ) and voila!

    It is very disappointing from Windows 7 to say the least, really I expected better ( with all the improvements in Graphics etc. ) It is as if it concentrates more on newer .NET Frameworks ( 2008, 2010 ), than the older ones - bad Windows 7, bad!

    Anyways, the splash screen issue has literally taken my whole weekend, and it was even more difficult with my broken hand!

    Thanx Jaco, for all your feedback, I'll buy you a six pack Castles one day when this nightmare of a project, has been completed

    Now, off to the next victim on my list for Tetris...
    **** Windows 7

    thanks to you, i would like it if you can guide me through the process of completing my Jetris. Anyway, i'll hold you to the six pack

    Speak to you soon.

    Jaco

  14. #29
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Help with Tetris

    Hannes, nothing but the blank form appears on Win7/VS2010. It upgrades successfully, but complains about no Form1. I changed the form to frmTet to get it to show up.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  15. #30
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Talking Re: Help with Tetris

    Hello Jaco!

    Well tis public holiday we had yesterday turned out to be fruitful

    I have fixed the issue of the rows ( when full ) not updating the scores, levels and to disappear to let the other rows drop down.



    Amazing what rest can do....

    I am attaching the latest version here, just have a look at the DropDown and IsLocEmpty functions inside clsTetGrid.

    Off to the next issue

    Lekker dag!
    Last edited by HanneSThEGreaT; June 14th, 2010 at 05:46 AM.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured