Here is the fifth example of the next release of PortablE: Example 5: SOTBScroll.e This is a pretty "Shadow Of The Beast's" like scroller. It is based upon a DarkBASIC demo by Frederic Cordier, with music taken from the AmiDARK version. However, I was able to drastically simplify the code thanks to PortablE's "wrapped sprites". Wrapped sprites make parallax scrolling (& scrolling backgrounds in general) very easy to do - no need for complex & error prone maths. I have also included the source code for the original DarkBASIC demo, and a direct "NoSprites" PortablE port of that. Further examples will be forthcoming! And don't forget the earlier examples: Example 1: ShootEmUp.e Example 2: SimpleModPlayer.e Example 3: ToySpaceshipSprite1.e Example 4: ToySpaceshipSprite2.e Please note that examples with music need the ptplay.library installed. You can get it from here: aminet.net/package/util/libs/ptplaylib_os4 (OS4) aminet.net/package/mus/play/PTPlayLibrary (OS3 & MOS) As a reminder: I have released a "full preview" of the next version of the PortablE programming language. It is now aimed at beginners & those new to the E language. Previous releases of PortablE were aimed at existing AmigaE users, and those familiar with AmigaOS programming. But after more than a year of development, PortablE is much easier for beginners to pick-up & play with: * It now comes with some nice modules for graphics, sound, music & GUIs. These require no knowledge of AmigaOS programming, and were inspired by the simplicity of BASIC languages like AMOS. * It comes with full documentation for all of these modules, along with smaller & bigger examples. The preview release does not include these examples, but instead I will be show-casing one of these examples every few days. * The documentation has been revamped to be more beginner friendly, and the PortablE installer has been made easier to use. If you still get stuck, then let me know, and I will see what I can do :-) * In addition to that, I have made available a large collection of my own useful modules (in the CSH folder), which you can use if you want. These are not properly documented yet, but I will look at documenting them where there is interest. * There are also various other improvements, and a lot of bug fixes. * As usual it supports Amiga OS4, OS3, AROS, MorphOS & Windows. However (1) the new graphics module does not yet work on Amiga OS3, (2) the new modules do not yet work on Windows, and (3) MorphOS support is still experimental. You can download it from PortablE's home page.
Thu, 2011-02-17 13:59#1
The fifth PortablE example (a SOTB-like scroller) + MORE!