New demo uploaded: Voxel demo screen

All aspects of programming on the Commander X16.
Post Reply
DrTypo
Posts: 18
Joined: Sat Apr 10, 2021 9:13 pm

New demo uploaded: Voxel demo screen

Post by DrTypo »




Voxel demo screen




View File






This is a simple voxel demo written in 65c02 assembly. It has been tested in the r38 emulator.

Press W A S D to move around.

Press SPACE to quit.

 






 
Ed Minchau
Posts: 508
Joined: Sat Jul 11, 2020 3:30 pm

New demo uploaded: Voxel demo screen

Post by Ed Minchau »


This is astonishing.  I get the feeling we've only barely scratched the surface of what this little computer can do.

DrTypo
Posts: 18
Joined: Sat Apr 10, 2021 9:13 pm

New demo uploaded: Voxel demo screen

Post by DrTypo »


Yes, the X16 is a very stimulating machine! And I'm not a 65c02 guru. I've written voxel engines on the Atari Falcon and Jaguar, and also in x86-64 assembly. But I'm new to this 8bit business. I started a couple of weeks ago with the excellent Youtube tutorials from Matt. So there may well be a few clever optimizations that could be done.

 

 

DrTypo
Posts: 18
Joined: Sat Apr 10, 2021 9:13 pm

New demo uploaded: Voxel demo screen

Post by DrTypo »


Here is the source code.

voxel.zip contains the 65c02 assembly source code with the necessary data files (tables, heightmap). You can assemble it using the cc65 tools. There is a .bat file for Windows users to assemble the thing.

simpleVoxel.zip is the tables generator. It computes the tables and displays a test render. You can't move around. This is a VS2017 C++ solution. It relies on the OneLoneCoder Pixel Game Engine to display the render. This game engine fits in a single header file. If you want to easily make games on a modern machine in C++ you should check it out!

 


voxel.zip
simpleVoxel.zip
ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

New demo uploaded: Voxel demo screen

Post by ZeroByte »



1 hour ago, DrTypo said:




It relies on the OneLoneCoder Pixel Game Engine



I watch his channel - his series on the NES Emulator from scratch was very enlightening. He uses that game engine for everything! ?

Post Reply