Literal
This article is a stub. You can help improve Game Design Novice by expanding it.

A literal is a piece of data which is directly typed into your games source code, rather than being obtained from a source such as the user's keyboard or being read from a file.

print 42 + 42
print "Bob"
numbOfMonkeys = 42
nameOfMonkey = "Bob"

In the example above, all instances of 42 and Bob are literals.

Related Pages

Backlinks

These pages link back to this page. You may find them helpful.

Links

Ask a Question

Ask a question about literals.

Categories: Programming
page_revision: 6, last_edited: 1236455205|%e %b %Y, %H:%M %Z (%O ago)