| |
Engine Thread (version 0-33-17), last executable: NCFC DEMO
Guinea |
|
6
![Administrator Badge [A]](https://archive.mfgg.net/html/badges/admin.gif) ![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Sprite Comp Runner Up Badge (1) [*]](https://archive.mfgg.net/html/badges/scr1.gif) ![Drawing Comp Runner Up Badge (1) [*]](https://archive.mfgg.net/html/badges/dcr1.gif) ![Drawing Comp Top 5 Badge (3) [*]](https://archive.mfgg.net/html/badges/dct3.gif)
![Minigame Comp Winner Badge (5+) [*]](https://archive.mfgg.net/html/badges/mcg5.gif) ![Minigame Comp Runner Up Badge (3) [*]](https://archive.mfgg.net/html/badges/mcr3.gif) ![Minigame Comp Third Place Badge (4) [*]](https://archive.mfgg.net/html/badges/mct4.gif) ![MFGG Awards 2006 Winner [*]](https://archive.mfgg.net/html/badges/award06.gif) ![MFGG Awards 2007 Winner [*]](https://archive.mfgg.net/html/badges/award07.gif)
![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Alex @ Sep 3 2009, 04:10 PM) | | How does that work? |
It involves an array and assigning identification numbers to each item, and then checking that ID on startup. If the ID is already marked with "true" then you delete the item. Hello made an engine iirc that does this in a very simplified way.
Anyway, so that it's possible to deal with huge levels, I have created functions to store 1-bit values in arrays, which makes it possible (in theory) to have an array with not 32000 indices, but with 64 times that. Due to how GM is made and some experiments I made, I don't think it's possible to use all 64 bits of a real value bit for bit, so I use only 32 for now.
(Oh well I doubt we'll ever have rooms with more than 32000 enemies, coins, items etc, but whatever. This can be used for other stuff aswell, like event switches and such that you'd want to really save in a file, and then you could have a file that's 32 times smaller than what GM would give you by default.)
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0702 ] [ 14 queries used ] [ GZIP Enabled ] [ Server Load: 0.77 ]
| |