O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Programming Basics: Variables, Data Types, and Scope

There are many commands in DarkBASIC, and some are very easy to understand, while many are more complicated. But in order to understand those commands you will need to learn about variables. Programming is more than just knowing all the commands. You need to understand how to use variables and learn the basic data types. This chapter explains everything you need to know about variables—what they are, how they are defined, and how they are used. Data types are next. There are numerous data types to cover, including integer, decimal, and string.

The first thing aspiring programmers often discover is that programming looks really complicated. The truth is, computer programs are made ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required