OK, TDK
It was my mistake.
I scroll downed, and there was DBP below.
This is a DBP version.
Set Display Mode 800,600,16
Sync On: CLS 0
Sync Rate 60
Hide Mouse
Set Text Opaque
BasePosX = 400
Text BasePosX,580,"M"
MaxBullets = 20
Dim FiredBullet(MaxBullets)
Dim BulletPosX(MaxBullets)
Dim BulletPosY(MaxBullets)
Rem Main Program Loop
Do
If Leftkey()=1 Then Dec BasePosX,8
If BasePosX<0 Then BasePosX=0
If Rightkey()=1 Then Inc BasePosX,8
If BasePosX>788 Then BasePosX=788
CLS
Text BasePosX,580,"M": Sync
If Spacekey()=1 Then Gosub AddBullet
If BulletCount > 0 Then Gosub MoveBullet
Text 0,0,"Bullets On Screen: "+Str$(BulletCount)+" "
Sleep 40
Loop
MoveBullet:
For N = 1 To MaxBullets
If FiredBullet(N)=1
BulletPosY(N)=BulletPosY(N)-20
Text BulletPosX(N),BulletPosY(N),"|"
Rem Check For Bullet Going Off Top Of Screen Here And Deal With It
If BulletPosY(N) <= 0
FiredBullet(N) = 0
Dec BulletCount
Endif
Rem Check For Hit Enemy Here And Deal With It
Endif
Next N
Sync
Return
AddBullet:
For N = 1 To MaxBullets
If FiredBullet(N)=0
FiredBullet(N)=1
BulletPosX(N) = BasePosX + 5
BulletPosY(N) = 580-16
Inc BulletCount
Exit
Endif
Next N
Return
I like a tutorial of TDK.
Therefore a code wants you to work well.
In comparison with DBC and
A command of DBP is the same.
And commands of DBP are different.
Even if it is a small difference, a program code does not work well.
Will you make a tutorial for exclusive use of DBP?
Thus a person does not make a mistake.