|
Post by jason on Nov 9, 2005 11:31:34 GMT -5
where can i get the source for this racing car demo
|
|
|
Post by Tom Not logged in on Nov 9, 2005 19:47:31 GMT -5
where can i get the source for this racing car demo Hi, It's on the demo page (scroll to the bottom). www.basic4gl.net/demos.htmThe source code part being RacingGame.gb -Tom
|
|
|
Post by oliver on Dec 17, 2005 7:49:58 GMT -5
|
|
|
Post by olliver on Dec 17, 2005 7:52:18 GMT -5
this bit dosernt work why is this and can u please post the code for it
|
|
|
Post by oliver on Dec 17, 2005 7:53:00 GMT -5
when i said this bit i ment this bit
dim active dim index dim name$ dim color#(2) dim SPlayerInput input dim SObject &object dim SRoadPos pos dim vel#(3) endstruc struc BGM_ModelPtr dim BGM_Model &model endstruc struc SCollisionTest dim SCollisionCircle circle dim vel# (3) endstruc struc SCollisionResult dim collision dim SCollisionCircle &circle dim normal# (3) endstruc
' Data dim SGridSquare gridSquares (gridSize)(gridSize) dim SRoadBit roadBits (maxRoadBits) dim SRoadSegment roadSegments (maxRoadBits / segmentLength + 1) dim SObject objects (maxObjects) dim SCar cars (maxCars) dim SCollisionCircle circles (maxCircles), SCollisionHull hulls (maxHulls) dim maxPlayers
dim roadBitCount, roadSegmentCount, objectCount, carCount, circleCount, hullCount
' Settings dim joystick, playerIndex', netConnection, pregame, updateDone dim name$, color# (2) ' Name and colour for network dim mapSeed, gameSeed dim netFrame, netUpdateTimeStamp
' Working variables dim SGridSquare &gridSquare, SRoadBit &roadBit, SRoadSegment &roadSegment dim SObject &object, SCar &car, SRoadPos pos, SCollisionCircle &circle, SCollisionHull &hull dim SPlayerInput &input, SPlayerInput tempInput dim x, y, x1, y1, x2, y2, j, k, count, angle#, left# (3), right# (3), prevLeft# (3), prevRight# (3) dim viewposition# (3)(3), xAxisTurn#, yAxisTurn#, xAxisMove#, yAxisMove#, centre#(3) dim startPosition# (3)(3), point#(3), temp, v1#(3), v2#(3), v3#(3), v4#(3), counter, temp# dim a$, string$, camera, SCollisionTest collisionTest, SCollisionResult collisionResult dim matrix#(3)(3) dim carIndex, packetType camera = 1
' Physics working variables dim relVel# (3), friction#, target#, length#, accelleration#
' Textures dim roadTex, groundTex
' Sprites dim steeringSprite
' Models dim BGM_Model &treeModel, BGM_Model &jeepModel, BGM_Model &checkPointModel dim BGM_ModelPtr houseModel (3)
'------------------------------------------------------------------------------ ' Subroutines goto Start2
FindSquare: ' Input: point# = point in space ' Output: x, y = square coordinates ' gridSquare = grid square x = point# (0) / squareSize# y = point# (2) / squareSize# if x < 0 then x = 0 endif if y < 0 then y = 0 endif if x > gridSize then x = gridSize endif if y > gridSize then y = gridSize endif &gridSquare = &gridSquares (x)(y) return
|
|
|
Post by Tom Mulgrew on Dec 18, 2005 0:52:02 GMT -5
Hi,
The racing demo should be fixed now. You'll need to download it again from the demos section.
Cheers, -Tom
|
|