An open API service indexing awesome lists of open source software.

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.

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.