NES megaman game written in python - open code

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
NES megaman game written in python - open code
by on (#113589)
Hi,

I hope this is nesdev forum related,

but I made a NES megaman game in python and pygame (http://pygame.org)

It provides for an easy to extend codebase using inheritance of gameobjects (e.g. AI, enemies, Heatman, ...)

There's a first level with code for HeatMan and ToadMan

Here's the link : https://github.com/zork9/pygame-pyMM

You can download it with the following shell command : git clone https://github.com/zork9/pygame-pyMM.git

pygame exists for windows and linux, you can install it in ubuntu with the python-pygame package.

Here are 2 screenshots from the first level :

Image

Image

Now if someone pursues the impossible task of getting pygame on the snes that'd be great.

Enjoy,
bubble
Re: NES megaman game written in python - open code
by on (#113594)
bubble.rogue wrote:
Now if someone pursues the impossible task of getting pygame on the snes that'd be great.

That task would indeed be utterly impossible, not just "impossible as in hard as hell" like many other often requested projects, such as porting Mega Man 9 or 10 to NES, or porting SNES games to Mega Drive or vice versa.
Re: NES megaman game written in python - open code
by on (#113595)
Yeah, Super NES can't do hi-res sprites. That's why my own Pygame projects (Wrecking Ball Boy and FHBG remake) render to an offscreen Surface 256 pixels wide and upscale that to the screen.
Re: NES megaman game written in python - open code
by on (#113676)
Someone began working on a python compiler for NES:
https://github.com/gutomaia/pyNES

I personally never got it to install or compile correctly but maybe someone familiar with Python (you) could use it. Still would have to write your own routines or reimplement what you used from pygame but it'd be a REAL NES game :)
Re: NES megaman game written in python - open code
by on (#113678)
slobu wrote:
Someone began working on a python compiler for NES:
https://github.com/gutomaia/pyNES

It's not really a compiler. It's just a cute hack where the (Python) code that you write actually generates 6502 assembly through the library routines that are called. This approach is severely limited.
Re: NES megaman game written in python - open code
by on (#113729)
Thanks for the clarification TheFox. I think ZX Basic for the SMS used a similar technique. Limited, hack-ey, but if it lets higher level language game makers create.. I say.. oh, poo! Both the pynes and ZX Basic for SMS guys seems to be stalled :p