Page 1 of 1

Mini-Ski - a CX16 skiing game - V 1.2

Posted: Tue Dec 19, 2023 2:15 pm
by mwiedmann
With Winter nearly upon us, have some skiing fun in my new "Mini-Ski" game written in C for the CX16. See if you can get the best time in various downhill modes where you navigate flags, gates, or just open mountain skiing. Use ramps to jump over obstacles and watch out for the trees, rocks, and ski lift poles!
  • 4 courses
  • 4 game lengths that combine the courses together in different ways
  • Flags, Gates, and Open skiing modes
  • 640x480 (full view) and 320x240 (zoomed view) graphics modes
  • Music and SFX (be sure to unmute the web emulator!)
  • Saved high score list for each mode/course combo
  • Keyboard and joystick support
Ski-cx16-image.jpg
Ski-cx16-image.jpg (485.88 KiB) Viewed 9376 times
EDIT: V1.2 has the correct joystick fix now. You can use either the keyboard or joystick 1. Also includes the proper credits for the "Tiny Ski" graphics from Kenny.

Try It Now!

Code repo: https://github.com/mwiedmann/ski-cx16

Re: Mini-Ski - a CX16 skiing game

Posted: Fri Dec 22, 2023 6:13 pm
by Xiphod
Cute winter game!

Works on hardware - except: I couldn't get the gamepad/joystick to work for it. I could only use the keyboard (pressing "Z" as "the A button").

I verified the controller is working in SYSTEM\CONTEST.PRG and other software titles (I'm using gamepad port #1).

Didn't try in the emulator yet. Game is still playable and looks and sounds great (320x240 zoomed mode is neat), but just had that gamepad issue.

Re: Mini-Ski - a CX16 skiing game

Posted: Sat Dec 23, 2023 3:55 pm
by mwiedmann
Ok thanks for the info! Interesting, I'm using the joystick.h functionality of cc65 for getting joystick input. Not sure why that wouldn't work on hardware? I'll ask around and see what the deal is.

EDIT: Ok, I turns out I misunderstood how the joystick.h support works. I was always reading from the keyboard emulated joystick. I thought this would ALSO read the real joystick if you had one. I updated the code to read BOTH. I don't have a joystick (or CX16 hardware) so let me know if this update works. I updated the included ski.zip and the Try it Now link.

Thanks again for telling me!

Re: Mini-Ski - a CX16 skiing game - V 1.1

Posted: Sat Dec 23, 2023 10:51 pm
by Xiphod
It's a little better :) "A" button is working. But: (on R46 hardware)

- on main (first) menu, up/down both go to next menu item. That's fine, except on the next menu, pressing up/down (on gamepad) actually do let you select up or down.

- during gameplay, left/right isn't moving the ski character. (I can still use keyboard left/right to move)

- at end game score scene, gamepad up/down select letters, but start or buttons don't move to next character (so still have to use the keyboard)

Re: Mini-Ski - a CX16 skiing game - V 1.2

Posted: Mon Dec 25, 2023 3:32 pm
by mwiedmann
Dang, thanks for testing again. Sorry, I'm working a little blind here as I can't get my gamepad to work with the emulator (something with me using a Mac). I have a more generic joystick fix in the game now (V 1.2) that takes input from BOTH the keyboard and joystick. Should be good to go now.

I updated the zip and Try it Now links with V1.2. Thanks again for your help.