![]() ![]() It is a chain of data that can be added to / taken from at any point throughout the program. I will begin by explaining the basics of a linked list. The only requirement is a good understanding of The purpose of this article is not so much to explain the workings of a linked list, but to teach exactly how they can be used in a game environment. ![]() ![]() What amazed me at the time was that of all the tutorials I came across, of all the explanations I looked up upon, not a single one showed me how to put these alien 'linked lists' to practical use. So I googled it, reviewed the results, and started on a template that I still use in just about every application I create to this day. At the time, I was totally newb and had no idea what a pointer really was, let alone a linked list. Throughout the game play?" By objects, I mean 'game objects' - enemies, bullets, weapons etc. One of the first problems I ever encountered as a beginning programmer was this: "How can I store an undefinable, ever changing number of objects that I must create and destroy at unknown moments ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |