Does any body know of a tutorial or source for a..

Community Forums/General Help/Does any body know of a tutorial or source for a..

Pop(Posted 2010) [#1]
Does anybody know of a tutorial or source for a top-down shooter
I’ve been looking for 1 for blitz

all I’m looking for
are...
1 gun for base for the others
walk and aiming
basic enemies(health doesn’t need to be included)


Ross C(Posted 2010) [#2]
That's a fair amount of stuff, and I don't think anyone would have that. Your talking about pathfinding, AI, the basic framework of a FPS. Good luck on your search though :)


Kryzon(Posted 2010) [#3]
You didn't specify which Blitz product you are looking for such code.

Whichever it is, I would suggest searching for separate samples in the code archives that have at least one feature that you want to implement, so you can study it.
Later on you can join them all and make your game engine. It's going to be really hard finding one big source having it all done; a "full product".


_PJ_(Posted 2010) [#4]
With Ross & Kryzon's comments in mind, I would see how far you get on your own, either by getting stuck in coding, or simply drafting out a kinda flow-chart of how you think the game should be programmed, then, when you get to a bit that you really are stuck on, look up for that specific help, or of course, come back and ask about the particular issue.

You referred to 'walking and aiming', or 'basic enemies', that's quite generalised, but the essence of what you're referring to seems simple enough, there are a lot of contributary factors such as Ross mentioned about Pathfinding and AI that make the details a lot more complicated.

For example:

Here's a very simple top-down movement thing (For Blitz3D) :
Graphics3D 800,600,32,6
SetBuffer BackBuffer()

AmbientLight 160,160,160

CreateScene()

Player=CreateCone(4)
ScaleMesh Player,1,2,1
RotateMesh Player,90,0,0
EntityColor Player,192,32,32

Light=CreateLight()
PositionEntity light,0,10,-5,1
PointEntity light,Player

Cam=CreateCamera(Player)
MoveEntity Cam,0,32,0
PointEntity Cam,Player

MoveMouse 400,300

While (Not(KeyDown(1)))
	MoveEntity Player,KeyDown(205)-KeyDown(203),0,KeyDown(200)-KeyDown(208)
	TurnEntity Player,0,0-MouseXSpeed(),0,True

	RotateEntity Cam,EntityPitch(Cam,1),0,EntityRoll(Cam,1),1
	
	UpdateWorld
	RenderWorld
	Flip
Wend


Function CreateScene()
	Local Walls
	Local Count
	For Count=1 To 10
		Walls=CreateCube()
		PositionEntity Walls,Rand(-5,-5),0,Rand(-50,-5)
		ScaleMesh Walls,3,2,1
		TurnEntity Walls,0,(MilliSecs() Mod 2)*90,0,1
		EntityColor walls,32,32,128
	Next	

	For Count=1 To 10
		Walls=CreateCube()
		PositionEntity Walls,Rand(5,50),0,Rand(5,50)
		ScaleMesh Walls,1,2,3
		TurnEntity Walls,0,(MilliSecs() Mod 2)*90,0,1
		EntityColor walls,32,32,128
	Next	

	Local Ground=CreatePlane(16)
	EntityColor Ground,16,16,32
End Function


Last edited 2010


_Skully(Posted 2010) [#5]
Look for game frameworks that work with the product you have.. they provide this type of functionality