Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
49 user(s) are online (37 user(s) are browsing Forum)

Members: 0
Guests: 49

more...


Browsing this Thread:   1 Anonymous Users






Re: Example 8: StarsXY.e
#3
Home away from home
Home away from home


See User information
This example has been updated for the new r6 beta release of PortablE. Should now work well on AROS & MorphOS (as well as AmigaOS4).

Posted on: 2011/10/28 10:32
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Example 8: StarsXY.e
#2
Home away from home
Home away from home


See User information
The program contained a small event-handling bug, which has now been fixed.

Posted on: 2011/4/28 23:14
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Example 8: StarsXY.e
#1
Home away from home
Home away from home


See User information
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:
Resized Image

Posted on: 2011/3/4 9:49
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 







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.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project