Browsing this Thread:
1 Anonymous Users
|
Re: Example 8: StarsXY.e
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
The program contained a small event-handling bug, which has now been fixed.
Posted on: 2011/4/28 23:14
|
|||
|
||||
|
Example 8: StarsXY.e
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Here is the Eighth example of the next release of PortablE:
Example 8: StarsXY.e This is the first of several pretty "stars" examples. They are not so much examples of the graphics module as they are examples of general PortablE code, and what can be achieved with a little bit of clever maths. This example shows stars moving across the screen (in the X/Y plane), with depth parallax, in 87 lines of E code. Although it is fairly well optimised, I have avoided a few obvious optimisations to keep the code clearer. NOTE: On AROS the starfield can look wrong on some emulators (I suspect due to incorrect emulation of CPU features used by the Rnd() function). NOTE: On MorphOS it may run a little slowly, due frame-skipping having been disabled (hopefully I can re-enable it once I track-down the bug causing crashes). An unmoving screen shot doesn't really give you much idea what to expect, but here is one anyway: ![]()
Posted on: 2011/3/4 9:49
|
|||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.





