RE: [Plib-devel] TuxKart on Win32 works fine
Brought to you by:
sjbaker
From: Vallevand, M. K <Mar...@UN...> - 2000-07-11 15:46:30
|
> > "Vallevand, Mark K" wrote: > > > > I ported TuxKart to Win32 last night. It was pretty easy. It > > is very runable at 640x480 with accelerated OpenGL on a P2-333. > > > > I found a bunch of typical unix-isms and window-isms in the code. > > This is a common one that doesn't work in windows: > > > > for ( int i = 0; i < foo; i++ ) blah(); > > for ( int i = 0; i < foo; i++ ) moreblah(); > > Well, it *does* work in Windoze - it just doesn't work with MSVC++. > CygWin has no problems with it. Correct. I made a series of MSVC++ changes. Not just Win32. > > If you'd care to post your fixes to a web site somewhere - I'll > merge them into the current stuff. Alternatively, if you'd like > CVS access - let me know what your sourceforge userid is and I'll > "make it so". > > > The GLUT game mode doesn't work as advertised on my system, so I > > hacked it to run in a window like non-win32 systems. I want to > > investigate this more. It *should* work. > > Yes - I'm not too sure about that code - it doesn't work > well on all Linux systems either. I made a simple change that works will for me. I don't supply the game mode string and just let the game mode code use its defaults. > > > Also, the joystick code misbehaves if you have a broken joystick > > driver. My WinNT joystick driver stopped reporting buttons. All > > buttons are set. It might be the port HW. I tried other sticks. > > Anyway, after unplugging the joystick, everything works fine. > > That's strange - the joystick code is just PLIB - and that's > reported to work OK for FGFS and Tux_AQFH under Windoze. > > Does the PLIB joystick test program exhibit the same symptoms? I haven't tried it, but I have tried the NT joystick setup, and, yes, it fails, too. It looks like either all buttons are lit. > > > I'll clean up my changes and put them, a DevStudio workspace and > > project, and an executable Win32 Tuxkart on a website later. Maybe > > tonight or this weekend. > > OK. > http://vallevand.homepage.com/tuxkart/tuxcart.exe http://vallevand.homepage.com/tuxkart/tuxkart-0.0.3-msvc.tar.gz But, I forgot to include the workspace and project files. But you can see the code. > -- > Steve Baker Regards. Mark K Vallevand ma...@rs... Outside of a dog, a book is man's best friend. Inside of a dog, its too dark to read. - Groucho |