Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Hmm i need some help

Author
Message
Templar
19
Years of Service
User Offline
Joined: 27th Mar 2005
Location:
Posted: 29th Mar 2005 03:48
I am new to darkbasic pro,but i know some basic.
I woud like to start simple game,any ideas?
How did you started?
Any help is ok.
Thnx in advance!
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 30th Mar 2005 06:49
I made pong, then moved on to breakout, and then attempted snake.

Part of solving the problem is actually noticing that the problem is there in the first place

Gilden
20
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 30th Mar 2005 07:11
Hello,

I am new to darkbasicpro also, but I would like to try and help you. I find that I learn DarkBasic best if I make a tutorial for myself. I would like to give you a tutorial on creating a game environment. Something needed for and game.

I dont know the best way to teach it so I will just write it as code.

`*******************************************************************
`ENVIRONMENT TUTORIAL
`*******************************************************************

`HOW TO SET UP THE ENVIRONMENT

`Start a new document and follow the basic instructions to see how
a program environment is created.
`This is a list of what you will learn:

`* Screen refresh rate
`* Game display settings
`* Transparency color
`* Mouse commands
`* Camera controls
`* Basic if loop
`* Set default colors
`* Organize your work





`*******************************************************************
`WRITE YOUR PROGRAM
`*******************************************************************

`Without looking at the code you just learned as much as possible, write a program that does the following:

`* Screen refresh rate
Turn on manuel sync and set the sync rate to 20.

`* Game display settings
Set your game display settings for a computer that has
640,480 resolution and can only have 16 bit colors.

`* Transparency color
Your boss what's your program set to black as the
transparency color.

`* Mouse commands
Turn off the mouse so you can make your own.
Disable the escape key but keep it commented so the command
is not active.

`* Camera controls
Turn the camera off to manuel.

`* Basic if loop
Create a basic if loop that will check the computer's video
card then set the display mode. You may need to reorganize
your lines of code you have already typed to make it work.

`* Set default colors
Set the default colors of white, black, red, green, and blue.
Give them only one letter variable names. Starting with the
first letter of the color.

`* Organize your work so it looks clean and presentable
Compile program to see if it runs

I hope this helps. There could be minor errors in my code but it seems all correct to me.

There is something that I cannot figure out also. Please help me if you know someone or you figure it out yourself. I want to make a blinking cursor using two picture files. I thought I could do it by hiding and showing the paisted pictures so it looks like they are blinking. That does not work though and whenever I use the wait command it pauses the whole program.

*I guess I have two problems. How do you use the wait key without it pauseing the whole program?

*How do you create a looping animation using two pictures?

Simple problems sorry I am such a beginner,

Thankyou,
Gilden
timthepig
19
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 30th Mar 2005 08:12
I made a tappy button game called Fat Ninja, and Now I'm doing a fps\driving\trading game which is going okay - as every element needs to be developed. Though this depends on how quickly you can pick up DBP(have you done programming before of any kind?).
Gilden
20
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 30th Mar 2005 10:26
Every time I post a message it seems to take two hours before it shows. In answer to your question timthepig, I'm taking graphic art in colledge so I can make all my art for games, but I cannot program very well.

That is the reason I wanted to use DBP. So far I have only leared the basics. Set up environment, menu, intro, buttons, import music & sound. Besides that I don't know nothing fancy

I'm glad to see that you were able to make some games already.

Gilden

Login to post a reply

Server time is: 2024-09-23 17:27:16
Your offset time is: 2024-09-23 17:27:16