View Full Version : AS3 Data Structures.
grandpaw broon
February 22nd, 2009, 05:19 PM
http://lab.polygonal.de/ds/
Hi all,
I am interested in games development so these must be of some use?
However i cant find anything on these structures. Many of the tutorials i read about games (in C) go on about "add it to the stack" and stuff. No idea what it means but obviously its a data structure.
Does anyone know where i can find more information on this stuff? Perhaps a book (not have to be AS3 related).
Thanks all.
senocular
February 22nd, 2009, 05:52 PM
data structures are just objects to store data in. There are a number of different kinds, probably the most common being an array.
Different languages have different kinds of data structures. If you've heard of one you don't know anything about, you should be able to google it. I doubt there's any book that covers just this topic; it's not that extensive.
marroon
February 22nd, 2009, 06:04 PM
That is stuff that would be covered in any intro to computer science course, so you could look for a intro CS course book. I can't recommend a particular book since I learned from lectures + google + wikipedia.
http://en.wikipedia.org/wiki/Stack_(data_structure)
Favardin
February 22nd, 2009, 06:57 PM
http://lab.polygonal.de/ds/
Hi all,
I am interested in games development so these must be of some use?
However i cant find anything on these structures. Many of the tutorials i read about games (in C) go on about "add it to the stack" and stuff. No idea what it means but obviously its a data structure.
Does anyone know where i can find more information on this stuff? Perhaps a book (not have to be AS3 related).
Thanks all.
Don't use them -- you don't seem to know much about data structures, so programming your own is a good opportunity to get to know them. Have a look at the abstract ideas (search on Wikipedia, the articles there are pretty good) and try to come up with an own implementation. The basic structures you should know are:
Array, Linked List, Stack, Queue, Set
After that you should try the following, a little more complicated structures:
Binary Tree, Tree, Heap, Hashmap
You should really look into them, a common phrase among programmers/computer scientists is
"Programming = Algorithms + Data Structures" (I couldn't find where it originated)
If you have some questions about the above, feel free to ask, I'll try to help.
grandpaw broon
February 22nd, 2009, 07:26 PM
Hey guys,
Thanks for your responses.
More recently i have been looking at larger applications and often i get lost in code. I will google around for more information and i dare say ill ressurect this post nearer the time.
Cheers
superbok
March 11th, 2009, 02:06 AM
Here's a good reference which has info on all the classes in the polygonal library :)
http://www.amazon.com/Structures-Programmers-Premier-Press-Development/dp/1931841942/ref=si3_rdr_bb_product
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.