• Advertisement
Sign in to follow this  

New Project

This topic is 4793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I m starting another game project with vb, I've decided to try to recreate tetris. If anyone has any ideas that might be able to help my case I'd appreciate it.

Share this post


Link to post
Share on other sites
Advertisement
Ideas..?
You have falling blocks, I thought that was all it was!
Well, how are you going to draw the blocks? For simple coloured blocks you could be lazy and use the line command to fill squares ( Line(topLeftX, topLeftY)-(btmRightX, btmRightY),Colour,BF ) - for textured blocks you could move up to BitBlt to splat image data from one hDC onto another.
I assume you know how to "double buffer" in VB to stop flicker? Let's say you were drawing to a picture box "renderArea". Set the "AutoRedraw" property to true, then do this:

renderArea.Cls ' Clear the screen
'
' Draw stuff
'
renderArea.Refresh ' Force the picture box to appear

Could you be a bit more specific on what you need to know?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement