https://github.com/radioation/megadriving
Pseudo 3D road example in C (mostly) for Sega Genesis using SGDK.
https://github.com/radioation/megadriving
sega-genesis sgdk
Last synced: 4 months ago
JSON representation
Pseudo 3D road example in C (mostly) for Sega Genesis using SGDK.
- Host: GitHub
- URL: https://github.com/radioation/megadriving
- Owner: radioation
- License: mit
- Created: 2021-10-30T05:14:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-21T04:29:04.000Z (over 2 years ago)
- Last Synced: 2025-04-05T14:35:09.061Z (7 months ago)
- Topics: sega-genesis, sgdk
- Language: C
- Homepage:
- Size: 223 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mega Driving
The code has been updated to compile with SGDK 1.80. Earlier versions of SGDK will
likely not work.
I've been teaching myself SGDK for fun. This repository contains *experimental* code I've
written for fake 3D roads and other Pseudo3D effects.
## Lou's Pseudo 3D Roads
The code in the "lou" folder was
written based on [Lou's Pseudo 3d Page](http://www.extentofthejam.com/pseudo/). It's
provided here as an example of one possible way to implement pseudo 3d with SGDK. I am in
no way saying that this is the best way to implement pseudo-3d roads. There are likely
bugs and I haven't tried to optimize the code yet.
I had hoped to write this entirely in C. Unfortunately, I wasn't able to pull off the color
cycling used on the grass and road in C. So the code is a mix of C and some assembly code.
The code has been tested on [BlastEM and Real Hardware](https://youtu.be/p99XATFhSpo)
### TODO
* Improve steering code.
* Look into smoothing road side object and car motion in the Y direction.
* Add readme.md files to explain the code in each example.
* Look at making my own fixed-point implementation for more decimal
## Spacer
I decided to try adapting my road code to the pseudo 3d effect seen in Space Harrier.