Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

VB.NET "GravityTests" - Open Source

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,050
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 28, 2008

http://www.BncApps.com
This is an open source example on how to handle multiple shape objects, basic gravity and collisions in Visual Basics.NET. This can further be extended to work as a game (One has already been started, once it is finished it too will be posted on the blog). It is released open source on my Blog with full instructions.

Get the source code, binary, and documentation at http://www.BncApps.com

BncApps.com is a blog dedicated to releasing open source applications as well as games. Programming tutorials for many different programming languages are also posted and suggestions are accepted!


I know its blinking, It does blink in the application but not as much. On some computers it blinks more than others. This is just a proof of concept, it can probably be tweaked to run smoother.

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (Bncplix)

  • Ok first of all, epic fail with the drawing method, but im not goint to be an average troll, heres some help: 'Create a picture box on ur form (300 x 300) and a timer set interval 1 - 20, u decide and enabled = true Imports System.Drawing.Imaging Public Class Form1 Dim output As New Bitmap(300, 300) Dim e As Graphics = Graphics.FromImage(output) Sub drawScreen() handles Timer1.tick picturebox1.image = output End Sub End Class Work out the movement by your self. But IMAGE = QUICKER THAN FORM!
  • Yeah I could have double bufferd it by drawing to a seperate image then drawing that on, it is much faster, and i use that method in Java.

    This was coded well over a year ago, since then i have learned a whole lot more and yes i do know my method was bad, there are much better ways like you said.

    Havent touched VB for probably a 10 months or so now, mainly now its just PHP, Java and sometimes C#

  • wouldn't it help if for every one object you drew, two came out, but one is invisible, the invisible one moves a bit lower than the other one, becomes visible then the other one goes invisible. Repeat

  • Not to mention the video delay of the recorder

  • Ipersonality, using multiple controls limits how many I can draw. Each will have to have their own code. And it will probably still blink. Sometime in the summer if I have time I will seee if I can fix it

  • You can create that dynamically way, so the blinking would go away! Not by drawing, but dynamically, with code!

  • umm i am making it all dynamically through code, check out the source which can be found on the site in the link on the siebar

    i probably can fix it now that i know how to double buffer in java but i just dont have time

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • @Bncplix seems pretty good for the movement speed of your mouse and the numbers above

  • Change the Default Setting on the main form 'DoubleBuffered' to true, that wil reduce the flickering :]

  • nice flashing with those squares... maybe try to draw them into a buffer first and then show in form

  • No, just use my method /\, and then draw a clear square over it then draw object slightly lower down

    'Clears ur screen

    e.FillRectangle(Brushes.White, 0, 0, 300, 300)

    msg me for more help...ive had alot of practice with GDI

  • ummm... very slow!!!

    i create a 2D phisic engine (only square object) in vb net with collision and a special "portal" like the game half life 2: Portal and it go much fast !!!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more