Game clipping - terrain

If you have completed an application and wish to share the complete source/project files with everyone then please post it in here. Source-code files only, no tutorials.
7 posts Page 1 of 1
Contributors
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Game clipping - terrain
CodenStuff
Hello,

A few months ago I made a game called BJungle from code I was messing with while experimenting trying to figure out the different ways you could make a game in VB without using directx and a billion lines of code lol.

I will try to add a tutorial on it soon but for the time being I created a quick project on how I detected the level terrain for the game so the character moves with the ground and platforms..jumps..and stops when it hits the ground.

In this demo I made a simple level bitmap and used a dark green color to show the floor and platforms in the air and the "GetTerrainPixel" function has been set to detect the green color on the map and uses that to signal if the character is touching the ground or not. Its not a lot of code and perhaps a little messy but hey it works and thats all that matters :lol:

Ive commented the code a little bit so you know whats doing what and ill try to do a tutorial soon but you should be able to suss it out easy enough.

Image
GameClipping.zip
Arrow keys to move and space to jump.

This is for those of you who want to try make some fun little games cooll;
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: Game clipping - terrain
Filip
nice :D
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

Re: Game clipping - terrain
Danny
great!
User avatar
RunarM
Hardcore Programmer
Hardcore Programmer
Posts: 508
Joined: Wed Nov 18, 2009 11:33 pm

Re: Game clipping - terrain
RunarM
My face is literally like ":O" right now, this will help me a lot!

-RunarM
Just another day in my life.
http://www.codexvideos.com
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: Game clipping - terrain
Dummy1912
nice one cns
maybe if he can shoot must be cool :)

its just or hes flying to the sky :lol:
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

Re: Game clipping - terrain
Danny
.... why complaining about people who write only great thanks and other stuff?
User avatar
CleverBoy
VIP - Donator
VIP - Donator
Posts: 395
Joined: Mon Dec 06, 2010 8:29 pm

Re: Game clipping - terrain
CleverBoy
actually i was trying to make a game like Super Mario, and this is the answer for my codes help :)

Thank you ;)
Code'N'Stuff
OneTeam..OneDream
Join ABSplash Team & Earn $$
ABSplash Site - Workpad - (VB) Custom Buttons 2 ways
7 posts Page 1 of 1
Return to “Source-Code”