Jump to content
  • Advertisement
Sign in to follow this  
FierceTiger

New Project

This topic is 5030 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!