Understanding Blitz3d with 2d

Blitz3D Forums/Blitz3D Beginners Area/Understanding Blitz3d with 2d

Captain Wicker (crazy hillbilly)(Posted 2011) [#1]
Would it be easier to make a 3d or 2d game with Blitz3D?
And how and where to start the project off at?


Yasha(Posted 2011) [#2]
Probably 2D.

I'd say they're actually about the same in terms of difficulty to understand (the whole point of the 3D engine is after all to make 3D easy), but it takes a bit more work to make a 3D game simply because you need something to fill the space.

However, 2D and 3D drawing are quite different fundamentally, so you should investigate both in due course so you know how they're done.

On the other hand, how new are you to programming? If you're really not confident, you might want to stick to very simple 2D graphics and text, and learn the ins and outs of the language before you get to thinking about art assets and so on. How much do you know already?


Hotshot2005(Posted 2011) [#3]
well done for posting questions :)

keep going :)


Captain Wicker (crazy hillbilly)(Posted 2011) [#4]
how do loops work? and how to set them up?


Hotshot2005(Posted 2011) [#5]
;
; This is the Comments
;
; Type anythings you like in comments
;

Const Screen_Width =640
Const Screen_Height=480
Const Depth        =16
Const Window_Mode  =2    ; Change to 0 for FULL SCREEN
Const Press_Escape =1    

; To setup Screen
Graphics Screen_Width,Screen_Height,Depth,Window_Mode

; You can Change Whatever Positions you want :)
Position_X=100
Position_Y=100

; this is the Loop until the User quit it :)
Repeat
      Text Position_X,Position_y,"HELLO WORLD,Captain Wicker !!!"
      Flip
Until KeyDown(Press_Escape) ; Press ESCAPE when you have seen Enough ! :)
End


or this one

;
; This is the Comments
;
; Type anythings you like in comments
;

Const Screen_Width =640
Const Screen_Height=480
Const Depth        =16
Const Window_Mode  =2    ; Change to 0 for FULL SCREEN
Const Press_Escape =1    

; To setup Screen
Graphics Screen_Width,Screen_Height,Depth,Window_Mode

; You can Change Whatever Positions you want :)
Position_X=100
Position_Y=100

; this is the Loop until the User quit it :)
While Not KeyDown(Press_Escape) ; Press ESCAPE when you have seen Enough!:)
      Text Position_X,Position_y,"HELLO WORLD,Captain Wicker !!!"
      Flip
Wend  
End


or

;
; This is the Comments
;
; Type anythings you like in comments
;

Const Screen_Width =640
Const Screen_Height=480
Const Depth        =16
Const Window_Mode  =2    ; Change to 0 for FULL SCREEN
Const Press_Escape =1    

; To setup Screen
Graphics Screen_Width,Screen_Height,Depth,Window_Mode

; You can Change Whatever Positions you want :)
Position_X=100
Position_Y=100

; this is the Loop until the User quit it :)
Repeat
      If KeyDown(Press_Escape) Then End
      Hello_World()
      Flip
Forever

Function Hello_World()         
         Text Position_X,Position_y,"HELLO WORLD,Captain Wicker !!!"
End Function


there you go and enjoy it :)

Last edited 2011


Captain Wicker (crazy hillbilly)(Posted 2011) [#6]
Thats pretty cool!
Thanks!


Ross C(Posted 2011) [#7]
You obviously have your FOR NEXT loops as well:

For x = 1 to 10
   Print"Yeah!"
Next



andy_mc(Posted 2011) [#8]
Also, can I just put in a link here for my youtube Blitz2D videos:
http://www.youtube.com/amcadam26

I cover the basics of 2D graphics building up a simply space invaders style game over ten short easy to understand videos.


Hotshot2005(Posted 2011) [#9]
;
; This is the Comments
;
; Type anythings you like in comments
;

Const Screen_Width =640
Const Screen_Height=480
Const Depth        =16
Const Window_Mode  =2    ; Change to 0 for FULL SCREEN
Const Press_Escape =1    

; To setup Screen
Graphics Screen_Width,Screen_Height,Depth,Window_Mode

      Restore WORD_DATA
      For x = 1 To 5
          Read WORD$
          Print WORD$
      Next
      Flip
      Text 100,200,"PRESS ANY KEYS TO QUIT!"
WaitKey

.WORD_DATA
Data "SORRY Ross C, I didnt really mean"
Data " Blitz 3D is for beginner but what "
Data " I mean is that Blitz 3D is good for"
Data " him as beginner!" 
Data "Someone got to start someone where :)"


Last edited 2011


Captain Wicker (crazy hillbilly)(Posted 2011) [#10]
are 3d games more popular than 2d?
Nice tutorials I must say!

And would GIMP be of use for the 2d graphics? I like to work with gimp.

I use a Win7 64bit notebook and a WinXP 32bit Desktop PC. Does is make any difference how the program works? (Blitz3D)

Im going shopping so it will be a while before I can read the responses.


En929(Posted 2011) [#11]
Captain, I think 2D games or 3D games can be popular depending on the game.


Captain Wicker (crazy hillbilly)(Posted 2011) [#12]
I have a demo almost complete on my site. But it wasn't coded in blitz. Is it possible to make the same program in bb3d and would the graphics look just as good as in my video? Just Curious

I agree with you En929 Take Mario games for example. Most of those games back in the 80s and early 90s Mario was 2d and also very popular.
I have a copy of the official b3d programming manual. Would this be of use with this? Silly Question LOL


Captain Wicker (crazy hillbilly)(Posted 2011) [#13]
Wow B3d is great! Just loaded my player into the runtime window.
B3D is way better than DB! I see now.


Captain Wicker (crazy hillbilly)(Posted 2011) [#14]
How do I make the camera stay behind the object (player)?
In 3d not 2d

Last edited 2011


Yasha(Posted 2011) [#15]
Four examples from the Archives:

http://www.blitzbasic.com/codearcs/codearcs.php?code=2375
http://www.blitzbasic.com/codearcs/codearcs.php?code=1083
http://www.blitzbasic.com/codearcs/codearcs.php?code=97
http://www.blitzbasic.com/codearcs/codearcs.php?code=2724

The Code Archives (link at the top of the page if you're in the Community tab) are your best resource for finding useful snippets. Most things in them are public domain (i.e. free to use for all purposes).

Anyway, this is probably quite a complex task for a beginner, so do compare all four approaches to find the common elements.


Hotshot2005(Posted 2011) [#16]

B3D is way better than DB! I see now.



SMILE - Too Dammm Right! :)

Last edited 2011


Ross C(Posted 2011) [#17]
Remember, it's not about saying what one is better. What one suits you as a programmer? Blitz certainly gives you more flexiblity, but DBPro is packed with features. Try not to go around saying X is better than Y :)


Captain Wicker (crazy hillbilly)(Posted 2011) [#18]
How do I get my player to play the animation while it moves and not while it doesn't move?