Modula-2 Technology
Create
a 3-dimensional world with JJ3D (created by
Jan Lemeire & Joris Borms;
it uses
Wimdows)
Create Windows
applications instead of working with the (good) old Graph library:
- Use WimDows v1.8,
created
by
Wim
Devesse. Also
available at The
Official
Wimdows-site.
- Opgelet: de eerste maal dat je compileert
geeft XDS je een out-of-heap fout. Gewoon nog eens opnieuw compileren.
- Indien er nog problemen opduiken,
gelieve dit te melden aan Wim of Jan.
- Zet de files gewoon bij je
andere files of installeer Wimdows bij je XDS:
- Copieer Wimdows.lib naar de lib/x86 folder onder je XDS folder.
- Copieer Wimdows.sym naar de sym/x86 folder onder je XDS folder.
- Copieer Wimdows.def naar de def folder onder je XDS folder (dit is enkel ter
documentatie).
- Verander de xc.tem file die je in de bin folder van je XDS folder vindt (open deze met
bijvoorbeeld Notepad):
- voeg de volgende lijn toe onder de lijn !"%s\n","import32"#"lib" (iets voorbij halverwege de file)
!
"%s\n","Wimdows"#"lib
Much
more
difficult: Create Windows apllications with the complete Windows API
- example: see
Samples/Mand/ in your XDS directory
- see also the Wimdows
code: Wimdows.mod.
- the Windows.def from
the XDS/Def/Win32 directory is the complete Microsoft Win32 API, here
you'll find all Modula-2 versions of the API.
- documentation:
Add
sound to your program:
- Optie 1: Wim Devesse's Music library, bruikbaar voor het afspelen van mp3's en midi
files. Lees de bijgeleverde readme file voor instructies
- Optie 2: Gebruik de 'good
old' StandardSound
library:
- With InitSound pass TRUE for asynchronous
playing:
- synchronous: the program waits until the
sound has finished. You can't do anything else
- asynchronous playing: the sound is played
in the background and the program continues
- TestSound.mod for
testing
- Follow the 6 steps to
add sound to your program.
Read/write from/to files
with FIO
- Put your settings in text
files! This way, you can change the settings of your program without
recompiling!
- Sample code (simple and complex example) can be found here!
Use our StandardMenu
library to quickly create good-looking menus (uses Wimdows)
- Simple procedures to create and draw buttons, and to get player
input
- Download contains a file with examples on
how to use
Timing
functions
- Use these functions to
add timing to your code which is independent from the calculation time
of your program
- Useful to create clocks
which are synchronous with the real-world time
- Create
timings which are not affected by the speed of your computer!
- Download
here! (Thanks to Samuel Van Erps)
Use freely our standard
library with common procedures (updated for Wimdows):
- cardinal and string
procedures
- random numbers generator
- timing & delays
procedures ...
- procedures to draw
an arrow, a square, etc
- Download
Use
of
the
mouse (If you don't use Wimdows):
- for XDS 2.32 (de onze,
die van de computerlokalen), in combination with the Graph
library:
- for XDS 2.45, there is a XDS
library, see example
Add
bitmaps
(If you don't use Wimdows):
- Download
- Follow the 5 steps to
create your own bitmaps.
- You can even import
bitmap files, but only 16-coloured (use Save As... in Paint to
create these files)
Talk with the external world through yor PC's serial port: see the watertower.
Use program arguments at runtime.
Create
your
own
libraries:
see XDS
documentation
back to top