Flux rss

Introduction to Dark Basic

Published by jad05, last update on Wednesday September 24, 2008 07:05:02 PM by jad05

Introduction to Dark Basic






What is Dark Basic?


Dark Basic is an object oriented programming language that allows you to create and personalize games, slideshows or other applications. You don’t need to be an expert in software programming to be able to understand and use Dark Basic as it is provided with a set of simple commands, suitable for any beginner.


You can get a free trial version of the program from the following link: http://darkbasic.thegamecreators.com/

Step 1: How to start?


You will be prompted to enter all the commands in a window in order to create your own environment or whatever game you have in mind. Hence, the first thing required is to know what you want the screen to display. You can use the sample below in order to display a window entitled EDPLN 2 Freeware SE and that will enable your mouse use but disable the ESC key.


set window on
set window layout 1,1,1
set window title "System backup copy (1.1)"
show window
show mouse
disable escapekey
sync on
gosub start
end

Step 2: How to create a simple menu?


Creating a simple menu will allow the user to use and go through the program. Hence, you can use the codes below to create a basic menu with the command ‘A’ to Save, ‘B’ to define a filter, ‘C’ to choose a way out of the game or environment and ‘Q’ to quit the game.


start:
rem Definition defaults
$ access = 'E: \ "
rem Start the main loop
do
cls 0

To replace print text on the screen (and not to print)
print "Utility Backups."
print ""
print "to save A, B to define a filter, C to change the output path, Q to exit."

rem Request a value to the user and saves it as $ key
input "Choose the action to do and press Enter>", $ key

rem analysis of data received
if key $ <> "A" and $ key <> "a" and key $ <> "B" and key $ <> "b" and key $ <> "C" and key $ <> "c" and key $ <> "Q" and key $ <> "q" then print "Please choose a valid choice." : Sleep 2000: GOSUB start
rem The previous line displays an error message for 2 seconds and then back to the beginning if the election is invalid.
rem I have not forgotten in the previous line to analyze the upper and lower case.
rem Another solution would have been $ key turning in capitalization to shorten the code.

rem Now that the analysis is done, use the data.
It will replace begin to see if the first choice was made:

if $ key = "a" or $ key = "A" then save GOSUB
rem If the choice was A or A, then we will save.

if $ key = "b" or $ key = "B" then GOSUB option1
Similarly to replace B, you arrive at the sub-menu option1

if $ key = "c" or $ key = "C" then GOSUB option2
Similarly rem for C to reach the submenu option2

if $ key = "q" or $ key = "Q" then end
rem Here, we saw that if the choice was to leave, leave the program without warning.

rem Now that diversions were made, it closes the loop for security (which will save us, you should see it if you run this code when we have finished).
loop
return

Key Features of Dark Basic

  • Automated Double Buffering
  • Full-Screen Display Modes
  • Gamma Control
  • Mouse, Keyboard and Gaming controller input.
  • Force-Feedback Control
  • System Handling
  • File Handling
  • Video Animation Control
  • Audio Control
  • Super-Fast 2D blitting
  • Mirror, Stretch, Blur and Fade
  • Screen-Sized and animated sprites
  • Transparency
  • Fast pixel perfect Collision
  • 2D Drawing Functions
  • Landscape Terraforming
  • Built-in 3D Primitives
  • Polygon Collision Detection
  • Full Model Manipulation
  • Model Animation
  • Ambient lighting
  • Directional Lighting
  • Texture filtering
  • Alpha blending
  • Fogging
Programming languages - Instructions The instruction is the key element in the computer as it tells the processor which action should be performed. The instructions which are to be executed are indicated in the source file and the computer goes from one instruction to the next... en.kioskea.net/langages/instruction.php3
Base64 encoding The concept of Base64 encoding entails using US-ASCII (non-accented) characters to encode any sort of data in 8-bit form. Email protocols were originally designed to send messages in plain text only. But as email systems vary greatly, transferring... en.kioskea.net/base/base64.php3
Download Visual Basic Express Edition Visual Basic 2008 Express is the free version of Visual Basic 2008, containing all the basic features of the software. Perfect to learn or develop small software with VB.Net. en.kioskea.net/telecharger/telecharger-104-visual-basic-express-edition
Basic MS-Dos commandsBasic MS-Dos commands Here is a list of basic commands that you can use in a DOS prompt (e.g. a using a boot disk). To have additional information about these commands, type /? after entering the command in the DOS prompt... en.kioskea.net/faq/sujet-567-basic-ms-dos-commands
Starting with visual basicStarting with visual basic Visual Basic is a programming tool designed by Microsoft for its Component Object Model (COM). This tool can be used to create applications for windows, web, mobile devices etc.The latest version of Visual basic... en.kioskea.net/faq/sujet-305-starting-with-visual-basic
Formatting articles of the knowledge baseFormatting articles of the knowledge base /!\Be careful /!\ : Don't do a copy/paste of a tip found on another website : First of all, it's unuseful since the same tip is twice on internet. Moreover it's possible that there's a copyright on... en.kioskea.net/faq/sujet-63-formatting-articles-of-the-knowledge-base
Pretty Basic Excel Macro HelpHello, I am writing a macro (which will be used to create a VB6 program) in Excel 2003. The spreadsheet Update_Log is a database with 9 user input columns and 7 columns which are calculated by formulas based on user input. I need to create a macro... en.kioskea.net/forum/affich-15106-pretty-basic-excel-macro-help
Move files from windows to Unix in Visual basHi , I want to move files from Windows to Unix , can i do it with Visual Basic programming or Access . Please let me know , as i have to transfer files. en.kioskea.net/forum/affich-14131-move-files-from-windows-to-unix-in-visual-bas
Visual basic and accessHello, well anyone can tell me the difference between visual basic and access because the two for what i have heard can do the same ? whose the best and what about vb.net? en.kioskea.net/forum/affich-19366-visual-basic-and-access
Download Visual Basic 6 Runtime (VB6 DLL)vbrun60sp5.exe is a self-extracting executable file that installs versions of the Microsoft Visual Basic run-time files required by all applications created with Visual Basic 6.0. The files include the fixes shipped with Visual Studio 6.0 Service Pack... en.kioskea.net/telecharger/telecharger-284-visual-basic-6-runtime-vb6-dll
Download Basic InvoicingBasic Invoicing is a secure database which can be opened only with the billing software LTC. It is designed for a particular purpose or for small companies with more than 3000 clients. The application includes a login system that protects access to... en.kioskea.net/telecharger/telecharger-1227-basic-invoicing
Download StockWave Basic EditionStockWave Basic Edition is a software analysis of the Monte Carlo method. It includes 800 shares: the United Kingdom, United States, EU, AUS, IND and offers access to historical data. The program offers a simple to use and online help of more than 200... en.kioskea.net/telecharger/telecharger-1298-stockwave-basic-edition
US military blocks Google from mapping basesVisitors stand in front Google logos at a Google stand at a fair in 2007. The US Defense Department said Thursday it was forbidding Google from filming and depicting in detail its military bases, after officials found precise imagery of a Texas base... en.kioskea.net/actualites/us-military-blocks-google-from-mapping-bases-10187-actualite.php3
Obama combats darker side of Internet politicsPresidential candidate Barack Obama speaks at a town hall meeting in Wisconsin. Obama has shown the stunning power of the Internet for political fundraising. Now he is fighting its darker side as a vehicle for "smears" against his bid for the White... en.kioskea.net/actualites/obama-combats-darker-side-of-internet-politics-10445-actualite.php3
Google looking at Malaysian base: reportMalaysian Prime Minister Abdullah Ahmad Badawi talks during a session at the World Economic Forum in Davos, on January 25. US search-engine giant Google is interested in setting up a base in Malaysia, according to Badawi. US search-engine giant... en.kioskea.net/actualites/google-looking-at-malaysian-base-report-10028-actualite.php3
Internet technologies - Ethernet Ethernet (also known as IEEE 802.3 standard) is a data transmission standard for local area networks based on the following principle: All machines on an Ethernet network are connected to the same communication line, made up of cylindrical cables... en.kioskea.net/technologies/ethernet.php3
Internet - Telnet protocol The Telnet protocol is a standard internet protocol enabling terminals and applications to interface over the Internet. This protocol provides the basic rules making it possible to link a client (system composed of a display and keyboard) to a... en.kioskea.net/internet/telnet.php3
Introduction to object-oriented programming Extract from "Understanding Active X and OLE" by David Chappel "In the last 35 years, designers of computer hardware have gone from designing machines the size of a hangar to thin notebooks based on minuscule microprocessors. In the same period,... en.kioskea.net/poo/poointro.php3