Skip to content

Pseudo 3D road example in C (mostly) for Sega Genesis using SGDK.

License

Notifications You must be signed in to change notification settings

radioation/MegaDriving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 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

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.

About

Pseudo 3D road example in C (mostly) for Sega Genesis using SGDK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published