I have a fairly strong graphics/music background but when it comes to coding I find my brain to be a bit of a blunt object so I apologize in advance for being a little slow to grasp certain concepts.
This is going to be for a 2d tile editor for a HD remake of an old game.
I'm using sprite3d with alpha blending
I don't know that all these steps are necessary, it's just my current understanding of how it can work. If there is a better way you have my full attention.
What would be an efficient way to create a load tile loop that:
1) loads tiles(with completely different names but in animated but numbered sequences)(all png) from a subfolder. Only files with numbers in their names will used be for animated tiles. (I'm guessing some kind of pointer system to track the last file and Isfile() to check if it exists)
2) uses the filename of the tile to create a variable name for the sprite and gives it a number #PB_Any I guess and then save that to a (linked list? using a structure)
3) sets up both the LoadSprite and CreateSprite3d in the loop
and pastes them to a bitplane which is then displayed or perhaps saved as a series of larger sprites onscreen which then have their images swapped out as the map is moved.
I want it to be as quick as it can be but I also don't want to give up my beloved alpha blending because of all the layering and custom fx possibilities. I've been looking at neotoma's HGE Wrapper which looks awesome but it's a little beyond me just yet. As I fairly recently left Dark Basic for this(a real programming language).(sorry , but for all it's simplicity there were some just stupid workarounds in that syntax, the exes were huge and they were so painfully slow)
I'd like to create a tile editor and then use that to load the animation frames and tiles and then save a data file of the various settings such as tiles.xxx which I guess is the best solution since all this doesn't really 'need' to be automated. I still need to learn how to create files to load and save from and know what actually is saved in them.
Here is some of what I have been playing around with so far
Code: Select all
For count=1 To 495
image.s = Right(Str(count),3)+".PNG"
image.s = "tiles/tile"+image.s
LoadSprite(100+count,image.s,#PB_Sprite_AlphaBlending | #PB_Sprite_Texture) : CreateSprite3D(100+count,100+count)
Next
I know this is a bit all over the place, I'm sure I'll come back later and clarify this when I've had my coffee.

And no I'm not one of those idiots asking for you to write my program for me. I'm a completely different kind of idiot.

Any productive/constructive advice you can give me would be appreciated.
Also I'm in Berlin, Germany so if anyone is in town and willing I would love to buy you coffee and pick your brain. I'd be glad to put together some graphics/sfx/music in exchange for some help if anyone has time.