当前注册人数155278人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Basics of Tetris in VB.NET 2005

VB.NET 2005实现的俄罗斯方块(Tetris)源代码

2008年03月02日
VB (VB 8.0), VB, Windows, Windows (WinXP, Vista), .NET (.NET 2.0), .NET, VS, Visual Studio (VS2005), Dev
这是一个VB.NET语言实现的俄罗斯方块游戏源代码,作者在文章里详细介绍了游戏过程中的每个可能。这个小游戏可以两个人同时玩。
 
相关知识
'move lines down by moving only the points of the objects

    For i As Integer = 19 To 0 Step -1
        If (counter(i) = 10) Then
            For Each shp As Shape In boardPieces
                Dim moveDown As Boolean = False
                Dim pointsToMove As New Collection(Of Point)
                For Each pnt As Point In shp.Points
                    If (pnt.Y > i) Then
                        pointsToMove.Add(pnt)
                    End If
                Next
                For Each pnt As Point In pointsToMove
                    shp.MovePointDown(pnt)
                Next
                'If (moveDown And shp.WillCollide(NewDirection.down) = False) Then

                '    shp.MoveDown()

                'End If

                shp.IsFrozen = True
            Next
        End If
    Next
源代码原文下载:
Basics of Tetris in VB.NET 2005 A remake of the classic Tetris game in a modern language

源码图片

从本站下载附件及源代码(1个附件,已经成功下载298次)

最值得关注的外文源代码

Gridview Control with print and preview features
A .Net Tetris game in c# using GDI+
A simple way to snap a form to screen borders
SuperMail.NET, a bulk emailing app using System.Net.Mail, MS Access, and My.Settings
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论32次,此处显示最近20次评论! 查看所有评论

jingdou56  2010年01月11日
怎么下不了啊! 哪位好心人发到我邮箱里 …… 谢谢了! 急! 594862972@qq.com
lifeiscold  2009年10月24日
挺特别的,多谢喽
Frank  2009年06月12日
bucuobucuo
小麻雀  2009年06月07日
谢谢你
爱你臭臭  2009年05月31日
谢谢你,朋友
ginger  2009年05月04日
好东西!@
skital  2009年03月13日
不错
narutod88  2009年03月02日
acea  2009年02月24日
好东西啊
acea  2009年02月24日
hehe学习
narnia2008  2009年01月26日
谢谢
xuzhenhua  2008年12月26日
谢谢!
学习  2008年11月07日
学习中
loveloveball  2008年10月23日
可以发到我的邮箱吗?有哪位大侠可以发到我的邮箱 loveloveball@126.com 谢谢啊
loveloveball  2008年10月22日
下不了啊,可能是我不会下
MaxDD  2008年08月20日
波波  2008年08月04日
某某  2008年07月23日
gaogao  2008年06月01日
应会很好的吧
lys  2008年05月24日
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明
京ICP备08011023号