Now with music: http://www.ragnemalm.se/lightweight/...with-music.zip
and a video: http://www.ragnemalm.se/lightweight/twobitclip.mov
(A bit weak sound, short part of a race.)
I tried making a Windows port today. Big surprise, it is always harder than you expect. I use Unix file handling calls (FpOpen, FpRead etc) for TGA loading and OBJ loading, and replacing them with standard Pascal calls turned out to be pretty hopeless. FpRead just doesn't map well on Read, not even BlockRead. I might have done something wrong but BlockRead messed up my data badly.
So I should probably give up the portability ambitions for now. Really a pity since that is a major reason for using OpenGL. A Linux port would be much easier though.
Too bad about the conversion. But, thanks for putting up the video.
Speaking of my conversion, there were two problems: I did try to remap the file functions, and was partially successful, but then we have the other problem: Playing sounds. I use QuickTime on the Mac, and although QuickTime exists for Win32, it won't help for Linux and I never used it on Windows, so there can be any number of problems.
What do the rest of you use to play music under Windows?
There is always SDL DLLs, and freepascal comes with SDL units already.
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Aren't there any extensions to OpenAL for playing music?
OpenAL works out of the box for sound effects, but if you want play stuff like ogg files you need some extra units and dlls I think.
See here for a C++ tutorial on ogg streaming:
http://www.devmaster.net/articles/op...ls/lesson8.php
There is a Delphi translation at the bottom of the page
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
I used bass for my entry. It's free for non commercial games, which makes it a great choice for competitions like the one we had.
Bookmarks