Earok's Monkey Demos
Submitted by Earok on Sun, 08/21/2011 - 13:04A collection of four demos written in the Monkey language, including Monkey source code, pretranslated HTML5 versions (all platforms) and precompiled C++ versions (Windows only).
Includes:
- Draw textured polygons demo.
- Super Mario Kart style Mode 7 demo.
- Six degrees of freedom demo.
- 3D Heightmapped terrain demo.
- Advanced Raycaster demo.
- Enhanced Joystick support. (HTML5 on Chrome, XNA, GLFW on Windows Only)






Comments
You Rock Dude awesome demos.
Thanks mate, much appreciated, and welcome to the site!
That mode 7 demo is nice :)! It would be awesome to remake F-Zero using monkey :)!!
Cheers Neuro, I'd love to see an F-Zero remake in Monkey, too - though my preference would be for F-Zero X ;)
Actually, now i'm wondering if it were to be possible to have animations on those image maps :)?
Certainly, and there's a couple of different ways you could do it.
Say, hypothetically you were doing a game set on an island, and the island was surrounded by animated waves. Since the map is just an image, you could have multiple different maps with the same island but with the waves in a different position, and change frames every so often.
Also, you could draw the water and the waves as the 'bottom layer', and the draw the land over top with transparencies.
So i guess you would be replacing the maps with different frames of waves images then? Also, how would we go about adding collision detection to the map itself? Or have another sort of "collision map" layer?
Yes, replacing the maps with different frames would work.
As far as collision detection goes, that's a bit trickier. I think, in Monkey the best you could do is manually define the collision boundaries on the map in code or text files.
The ideal scenerio would be to make a 'collision map' image which isn't actually drawn onscreen but is used by the game to determine where the collision boundaries are, but currently I don't think you can 'read' the RGB values of the pixels in Monkey.
gr8t demos m8
have you ever played alien legacy? the terrain demo looks a lot like it
the six degrees of freedom is great but the rotation gets a bit squirrelly if I rotate in 2 axes at the same time.
Does it use quats to rotate? That would fix all those issues
Thanks Slenkar,
Yes, the six degrees demo does indeed use Quaternions, infact most of the Quaternion code is based on the Blitz3D source. The reason why the backdrop gets a bit messed up when rotating is because I'm "faking" the 3D backdrops, since I can't render a proper textured skybox. I'm basically just drawing images directly to the screen and rotating them by the roll of the camera, which flips when you pitch past the north and south poles.
I haven't seen Alien Legacy, though it looks like the flight scenes might be rendered with a similar concept. The demo was inspired by the Novalogic Comanche games of the early 90s.
Post new comment