Yeah James' git repository here is the one we're using. I was talking to Josh about an hour ago & he seems to have done a lot of work & got a version of 2.5.8 running with a few items missing such as the Plugin Interface, IDE & Joystick support.
Does the current version still require Microsoft Visual C++ to be used to create Standalone Executables like the description in this post? Or did you find a way to create them using MinGW?
Post by Darkjester on May 25, 2012 20:18:46 GMT -5
The attachment of my previous post contains the "working version" matthew mentioned earlier, my goals with the project is to update a few things, add a few language aspects, such as function pointers, some bug fixes. I want to create an easily compiled source release that could be used to make a cross platform version quickly, as well as a crossplatform ide that retains the ease of use of the original basic4gl, also tom you are correct about making some libraries external i believe this is the easiest way to make things portable as modules can be recompiled as well as simplify the main code. cheers! -josh
So is the goal for standalone exe's: * just get the existing Windows-only code running? * Or to try to come up with a cross-platform way?
And does the git repository contain the latest version? Because I'd prefer to check it out from there (it just makes coordinating and tracking changes much easier).
As for the MS Visual C++ thing, that was a really ancient method. It was replaced with the Windows Resources method a few years back, which is not specific to MSVC, but still only works on Windows.
your correct tom, everything up to the point of creation will be crossplatform, but for each platform the last step will be implement on and individual basis. Im hoping to update the repository tomarrow after i fix the rest of the functions in the current build. -darkjester
Ah I wasn't aware that it had been replaced completed with the Windows Resources method. I've done some searching & found a question on Stack Overflow where someone was looking for a similar method on Linux. There's also some good information on Embedding a file in an Executable here on the Linux Journal so it looks like it's doable.
Here is a newer version of my port of the sprite library: maps are implemented, too.
I added a new concept: animation sequences.
A sprite can have many sequence, so you can use the same sprite to perform many actions (walk, jump, swim, climb and so on).
A sequence can be defined with SprAddAnimation sprite, begin, end, start: the sequence can be actived by SprSetAnimation sprite, 1. The animation won't show anymore all frames of the sprite: it will cycle between begin and end (but the first cycle will start from start): let's say we have a sequence of frames: 1-10: walk 11-15: dive 15-25: swim
with commands: SprAddAnimation sprite,1,10,1 we have a sequence that show a walking sprite
SprAddAnimation sprite,15,25,10 we have a sprite that will dive, and then swim! To make the sprite walk, we will call:
To make it jump in water: SprAddAnimation sprite,2
it will show the dive only once, and then will cycle the swim animation forever.
Oh, yes: SprAddAnimation sprite,0
will disable any animation sequence.
Also, sequences can be used in maps, too! When you define a map array, in fact, now you can use negative numbers, too: a positive number will define a tile (as usually), while a negative number will define a sequence... so animated tiles are possible, too! The "start" parameter allows to have tiles with the same animation, but different sync (imagine a tile map with water... with animated waves!)
Yes it would matthew, ive been thinking about that :3 im having troubles uploading to the Git, any ideas i just cant seem to grasp how it works i suppose, progress thus far, managed to decode majority of code, have all the compiler vm code fully up-to-date FOR sure this time! working on removing some libraries to simplify the base, im gonna upload a zip tomarrow! anybody stoked! its been a long time coming..
Post by Darkjester on Jun 10, 2012 22:37:09 GMT -5
So i know i said a few days ago i was gonna upload a zip on to here with my current work which would finally enable everyone to start debugging, until i experienced some file corruption so it looks like tomarrows or tuesdays gonna be the day since i have to reconstruct some files, after that new features will be easier to add and modify- darkjester
Last Edit: Jun 11, 2012 2:18:16 GMT -5 by Darkjester
Now with transparency (if the image has no alpha channel, you can use SetImageTransparentCol), page sprites (in freebasic, you can usually have many pages in a graphic mode: with this library, you can display your fb screen in opengl... and also use more than one screen, like in the Amiga), HQ4X zoom (with ZoomImage, you can zoom pixel art images with a very high quality and smooth result) and isometric maps (a variant of tilemap: it cannot be turned, but it allows overlapping tiles, and also have a height map; maybe I should also implement some special sprites to be used in isometric maps...)
Last Edit: Jun 12, 2012 17:19:02 GMT -5 by angros47