by Jonas Ask (13 Submissions)
Category: Games
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)
Nothing, really, it simulates a basic traffic system. AI tell the cars to keep on route and make them turn at random when they reach a junction. This prog shows how to easy juse arrays in combination with bilblt to make STRATEGY GAME-ENGINES.
API DeclarationsPublic Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Public Declare Function GetTickCount Lib "kernel32.dll" () As Long
Download Traffic Simulator (17 KB)