Hi,
Ok first i want to say that i have my Darkbasic Pro is out of the dust (finally) and i stared to get interested in it again. Now i actually never did much whit it. I just know the basics. I have programmed before in qbasic and visual basic so i know what variables are and arrays and stuff.
Now i want to start off whit a small game, i'm not someone that is willing to write a whole RPG first off, ok i want to create an RPG but first i want to learn a few tricks and tweaks whit other things. Maybe in a year or 2 i could start creating an engine for an RPG while i'm still doing other projects and learning stuff.
Ok now for my questions:
This is what i have a.t.m. it is not much actully some 3D stuff only
rem setting up screen
set display mode 800,600,16
autocam off
rem create paddle
make object box 1,3,1,1
position object 1,0,0,-10
rem create ball
make object sphere 2,1
position object 2,0,0,2
position camera 0,20,-10
point camera 0,0,0
rem create the walls
make object box 3,1,3,45
position object 3,-14,0,-5
make object box 4,32,3,1
position object 4,2,0,17
suspend for key
rem load the level
rem temp level (going to change into a system)
rem loading a file whit level properties
It took me a while to get those 2 'walls' there. Now i wanted to ask is should i rather use a matrix and up some walls or can i better continue screwing around whit a third wall. I really dont know anything about collisions a.t.m. so i dont know whats the most easy thing to use for collisions.
Then i would have to think about the 'ball' pshycics i'm really stumbled there anything i could use? i thought about newzvalue but i'm really lost there, the ball needs accel, whit it bounces of the paddle/brick/wall it needs to bounce back the other way and so on. I really need some help here.
Another thing i'm asking myself is should i include all function into my main file or is it better to use one other file for all my functions and declare the variables at the start of my code. Or is it better to set functions of the same type like movment right movment left movment and so on in one file and include it into the code. Then create another file for lets say a level loading function and include it again. I dont know whats the best way. I think it wont be an issue here as i'm prolly not going to have lots of functions here but i'm also asking this for future projects as in an rpg i imagne there are going to be a lot of functions.
anyway thanks for reading and helping me out.