Skip to content

SGDK OhSat tutorial for a small pong game as a learning tool for programming mega-drive (genesis) video-game console.

Notifications You must be signed in to change notification settings

Sophia-Cristina/SGDK-OhSat-MegaPong-Tutorial-Commented

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGDK-OhSat-MegaPong-Tutorial-Commented

THIS IS JUST MY FINISHED "HOMEWORK" AT PROGRAMMING A GENESIS GAME WITH SGDK:

https://github.com/Stephane-D/SGDK

I followed and wrote in my style the following tutorial by OhSat:

https://www.ohsat.com/tutorial/megapong/megapong-1/

I got the most important texts (based on my view-point) of the tutorials and commented each line so you can know what the SGDK functions does!

THE ROM FILE IS IN THE FOLDER "out" AS: 'rom.bin'

SETUP CODEBLOCK FOR SGDK:

https://www.youtube.com/watch?v=cDEGpLxKDK0

FIX CODEBLOCK COMPILER ERROR:

https://www.youtube.com/watch?v=17RazgwROAg

#################################################

#################################################

#################################################

COMPILING WITH CODE::BLOCK, THE RESULTS ARE THOSE (4 WARNINGS):

||=== Build: default in MegaPongOhSatTutorial (compiler: SGDK Compiler) ===|

hello.c|133|warning: data definition has no type or storage class|

hello.c|133|warning: type defaults to 'int' in declaration of 'game_on' [-Wimplicit-int]|

hello.c||In function 'startGame':|

hello.c|157|warning: implicit declaration of function 'updateScoreDisplay' [-Wimplicit-function-declaration]|

hello.c|177|warning: conflicting types for 'updateScoreDisplay'|

hello.c|157|note: previous implicit declaration of 'updateScoreDisplay' was here|

||=== Build finished: 0 error(s), 4 warning(s) (0 minute(s), 10 second(s)) ===|

#################################################

#################################################

#################################################

About

SGDK OhSat tutorial for a small pong game as a learning tool for programming mega-drive (genesis) video-game console.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published