Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LF2 GM Progress Thread
#70
(07-05-2014, 06:05 PM)Bamboori Wrote:  so the entire data handling will be done via .ini files.
.txt and .bin would work as well, but i'd need to parse everything, whereas in ini files i can read out variables way easier.

....just as i was writing down my current method i realized it could be done way easier :D

right now i would have to create a dummy object for every possible object/background/char etc.
ill see what i can manage to come up with.

right now my method would be:
  • a set of lets say 1000 dummy objects, each named 0-999.
  • for every 'id' there would only be a path for the .ini file.
  • in the .ini file there would be an identifier section, which then would copy the type of the data (background/char etc) to the corresponding dummy object.
that would also mean that the 'id' would be limited to exactly 0-999.

im not too sure whether i will include backgrounds in this as they are coded differently altogether.
im not really sure about backgrounds at all yet tbh :D
Looks promising! Not really sure what you meant by "create a dummy object for every possible", but that sounds more like allocating an array of your object's type for all the objects that are going to be loaded; and that's how it was done with LF2 as well. But let me share my thoughts :P:
1-Allocate an array of type "object" for the game objects, another array of type "bg" for the bgs, and a 3rd one of the type "object_copy" that stores info about objects on the screen.
2-The "object" array will store the actual objects that are loaded fir the game; including the frames, sounds and the sprites.
3-The "object_copy" array, however, will store data and info about objects on the screen (its current frame, x_y_z_position, the current HP, MP, x_y_z_velocity, the key clicks buffer..etc).
4-In your object[xyz].update() function, set a parameter of type "object_copy" to pass the data of that object on the screen; You surely don't want to load bandit's sprites and stuff 3 times in order to have 3 of them on the screen. You will just load it once, and then create 3 instances of "object_copy" that stores each one's position, hp and etc.

Goood Luck! (finally getting to the fun part, eh?)

Edit: Plus I think that actually specifying the ids like that makes more sense, since an id is supposed to act like the "address" of an object/oranything. Plus it can force modifiers to be more organized.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:


Messages In This Thread
LF2 GM Progress Thread - by Bamboori - 05-14-2014, 10:35 PM
RE: LF2 GM Progress Thread - by Gad - 05-15-2014, 10:29 AM
RE: LF2 GM Progress Thread - by Som1Lse - 05-15-2014, 08:58 PM
RE: LF2 GM Progress Thread - by Rhino.Freak - 05-15-2014, 10:47 AM
RE: LF2 GM Progress Thread - by Bamboori - 05-15-2014, 01:03 PM
RE: LF2 GM Progress Thread - by A-Man - 05-15-2014, 01:35 PM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-15-2014, 03:26 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-15-2014, 09:29 PM
RE: LF2 GM Progress Thread - by A-Man - 05-16-2014, 04:28 AM
RE: LF2 GM Progress Thread - by Bamboori - 05-16-2014, 10:32 AM
RE: LF2 GM Progress Thread - by Bamboori - 05-17-2014, 08:30 PM
RE: LF2 GM Progress Thread - by STM1993 - 05-17-2014, 09:24 PM
RE: LF2 GM Progress Thread - by Dragon5 - 05-17-2014, 10:36 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-17-2014, 11:39 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-19-2014, 10:56 AM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-19-2014, 12:59 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-19-2014, 01:13 PM
RE: LF2 GM Progress Thread - by A-Man - 05-19-2014, 02:44 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-19-2014, 03:07 PM
RE: LF2 GM Progress Thread - by A-Man - 05-19-2014, 03:17 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-19-2014, 05:31 PM
RE: LF2 GM Progress Thread - by A-Man - 05-20-2014, 09:28 AM
RE: LF2 GM Progress Thread - by Bamboori - 05-20-2014, 11:15 AM
RE: LF2 GM Progress Thread - by Silverthorn - 05-20-2014, 03:08 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-20-2014, 03:24 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-21-2014, 11:31 PM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-22-2014, 02:12 PM
RE: LF2 GM Progress Thread - by A-Man - 05-22-2014, 05:54 PM
RE: LF2 GM Progress Thread - by STM1993 - 05-22-2014, 05:58 PM
RE: LF2 GM Progress Thread - by A-Man - 05-22-2014, 06:02 PM
RE: LF2 GM Progress Thread - by STM1993 - 05-22-2014, 06:09 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-22-2014, 06:04 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-22-2014, 06:13 PM
RE: LF2 GM Progress Thread - by Dragon5 - 05-22-2014, 06:36 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-22-2014, 06:42 PM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-22-2014, 06:52 PM
RE: LF2 GM Progress Thread - by Bamboori - 05-22-2014, 08:14 PM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-22-2014, 08:29 PM
RE: LF2 GM Progress Thread - by Rhino.Freak - 05-24-2014, 04:19 AM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-24-2014, 06:46 AM
RE: LF2 GM Progress Thread - by Bamboori - 05-24-2014, 09:35 AM
RE: LF2 GM Progress Thread - by Jahvansi - 05-24-2014, 11:25 AM
RE: LF2 GM Progress Thread - by Bamboori - 05-24-2014, 01:59 PM
RE: LF2 GM Progress Thread - by AmadisLFE - 05-25-2014, 03:19 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-08-2014, 08:13 PM
RE: LF2 GM Progress Thread - by A-Man - 06-09-2014, 03:45 PM
RE: LF2 GM Progress Thread - by Gad - 06-08-2014, 09:39 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-08-2014, 11:02 PM
RE: LF2 GM Progress Thread - by Ramond - 06-09-2014, 08:54 AM
RE: LF2 GM Progress Thread - by Bamboori - 06-09-2014, 04:58 PM
RE: LF2 GM Progress Thread - by Jahvansi - 06-10-2014, 02:35 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-10-2014, 04:36 PM
RE: LF2 GM Progress Thread - by ThrillerBeat - 06-15-2014, 05:40 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-16-2014, 09:42 PM
RE: LF2 GM Progress Thread - by ThrillerBeat - 06-17-2014, 02:27 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-18-2014, 01:48 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-25-2014, 02:39 PM
RE: LF2 GM Progress Thread - by Ramond - 06-25-2014, 03:32 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-25-2014, 03:34 PM
RE: LF2 GM Progress Thread - by Gad - 06-26-2014, 05:03 PM
RE: LF2 GM Progress Thread - by A-Man - 06-26-2014, 05:59 PM
RE: LF2 GM Progress Thread - by Bamboori - 06-26-2014, 07:22 PM
RE: LF2 GM Progress Thread - by Eddie - 06-27-2014, 12:59 PM
RE: LF2 GM Progress Thread - by Bamboori - 07-03-2014, 10:40 PM
RE: LF2 GM Progress Thread - by A-Man - 07-04-2014, 08:27 AM
RE: LF2 GM Progress Thread - by Bamboori - 07-04-2014, 09:23 AM
RE: LF2 GM Progress Thread - by Bamboori - 07-05-2014, 06:05 PM
RE: LF2 GM Progress Thread - by A-Man - 07-05-2014, 06:32 PM
RE: LF2 GM Progress Thread - by Silverthorn - 07-05-2014, 06:13 PM
RE: LF2 GM Progress Thread - by Bamboori - 07-05-2014, 06:56 PM
RE: LF2 GM Progress Thread - by Bamboori - 07-09-2014, 08:59 PM
RE: LF2 GM Progress Thread - by A-Man - 07-09-2014, 09:16 PM
RE: LF2 GM Progress Thread - by Bamboori - 07-09-2014, 10:35 PM
RE: LF2 GM Progress Thread - by Bamboori - 07-23-2014, 01:30 PM
RE: LF2 GM Progress Thread - by A-Man - 07-23-2014, 02:01 PM
RE: LF2 GM Progress Thread - by Gad - 07-23-2014, 04:38 PM
RE: LF2 GM Progress Thread - by Bamboori - 07-23-2014, 03:16 PM



Users browsing this thread: 31 Guest(s)