Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Game Template With Full Integrated Newton For Dummies

Author
Message
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 2nd Aug 2006 01:21 Edited at: 2nd Aug 2006 01:38
As the topic says, this is not a game but a game template with easy Newton included.(Total 2000 more or less lines)
Needs:
DBPro Upgrade 6.2b
Newton 1.32b

What You can do:
free Object,image..etc commands.
variable wrapping between defined min&max values
variable wrapping ping pong style between defined min&max values
Distance finding between objects, cameras, positions, 2d stuff
Angle finding between objects cameras, 2d stuff
Finding if an 3d obj, cam, 2d mouse, sprite, pixel..etc in a defined zone
Finding if mouse is in a sprite, drawing, text zone
(Zone can be rectangle, triangle, circle)
Bitmap Fonts, creating,writing, effects..etc
Some Sprite Effects
2D Hud made out of 3d objects with animation
Easy create&play animated sprite functions
Easy Billboards and aligning them to any surface
Objects multitexturing (blend mapping)
Terrain creation
Vegetation creation over the terrain (Can easily be turned into a full eco-system creation, the tips for this is in the code)
Very Easy Newton environment set up and rigid body creations.
Easy Timers and how to use them. (Triggering events..etc)
and some more...

Tip:
If you cant understand a functions usage while examining the code, just check the appropriate functions code and you might get help there.

All i ask is credits in your creations if all Or any part of this code is used. And an e-mail notification to tamer(@)eskisehirli.net(without brackets) about your creation.
Have Fun.

And some comments would be appreciated..

Attachments

Login to view attachments
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd Aug 2006 00:58
Even though I think I'm too good to use this, I think it's too good to be ignored, so I'll give it a 5 star. Good on you.

CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 3rd Aug 2006 19:18
well, zotaster i believe you still can learn from this code.
thanks anyways
Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 9th Aug 2006 17:18 Edited at: 9th Aug 2006 17:19
Nice work. I believe I will find this most useful in my future projects.

The music doesn't work right. Sometimes when I change the volumn I hear it for a second or two, but then it stops again.

I was googling about for "CuCuMBeR" and "newton" after stumbling up the Newton driving example you did. 25 results appeared, so I still have some searching to do. I'm curious what else you have come up with. Do you have a website somewhere listing all your code in one place?

The code is well laid out, and very easy to understand.

Together with the smoke example you recently released, one could easily make a game where they drive a truck or other vehical around, make it fall off a cliff, and then produce realistic fire on it, and release very nice smoke effects rising up from it.

The last sane human being in a world gone mad.
If you were a cockroach, what type of cockroach would you be?
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 9th Aug 2006 19:58
Wolf Dreamer:
Music plays when the mouse is over the slider box, probably you are moving your mouse too fast that it gets out of the bounding box..
if you want newton specific codes, you just have to search in the codebase and the main DBPro forum as "newton", and you will see some of mine there.

And here is a short list that ive sent in the forums..but theres alot more lost in other peoples threads and im searching them for myself too :p

2d Smoke
Shaderless Water
Plant maps (or anything else)
Good for Depression Attention you need to be 18++ and sense of humor :p
Level Maker (this one sucks)
Bitmap Fonts
Day Night cycle
Specular Mapping
Newton Curtain
Car Physics
Ingame Menu
Billboards
3d hud
Overview Map
WayPoint Creator (Really useful)
Ballistic Trajectory
3d Smoke
Pong Game
Sine Waves
Newton programming tutorial
x file exporting frm 3d max
Rain
Skybox in 1 minute (with bryce)
Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 9th Aug 2006 21:49
If you release the mouse button, it stops. If you move off of it at all, it stops. You have to be directly over it at all times, and holding the mouse button down. Even then, when you switch up to 100% quickly, it sometimes stops.

But it was an example of a slider box, and for that purpose was rather well. I can easily just have the music going constantly, as one would in a game, and when the bar is moved, it just updates the volumn variable. Or perhaps it has to stop the music, and restart it with the new information, since it'd be inefficient to have it constantly checking on a variable throughout the game to make sure nothing has changed.

----
I clicked on the Good for Depression link, and found it erased, and the thread locked.

You can get a free invision forum up and running in minutes, if you don't like censorship. Or post over at mine. Its a bit dead these days, but a few people still roam about.

The last sane human being in a world gone mad.
If you were a cockroach, what type of cockroach would you be?
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 15th Aug 2006 08:32
Do you mind if I make a small plug-in with some of these functions in it? The gui and what not would be great things for people to have,and if its in a plug-in its easier for people to use

Woohoo. DP is finally released!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 15th Aug 2006 08:49
Quote: "Very Easy Newton environment set up and rigid body creations."

Yay! I cant use newton at all.

Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 15th Aug 2006 09:25
Easier to use is always a good thing. And I don't think he minds you using it for whatever you want.

What sort of plugin are you talking about? A .dll?

--
And note that the thus named "bunny shooter.dbpro" has no bunnies to shoot. I was hoping for some nice fluffy bunny rabbits to blast to pieces, hopefully with as much blood and guts as possible.

The last sane human being in a world gone mad.
If you were a cockroach, what type of cockroach would you be?
Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 15th Aug 2006 09:55
If you want to make it easier to use, I have a suggestion.

At the moment, there is a lot of stuff going on in seperate files included in the project. Having seperate files for things you never need to look at, such as collections of functions, makes perfect sense. But when they have code you will have to edit, it becomes a bother to search through, find what you need, and switch back and forth.

Also, if someone could add in some cute little bunny rabbits to run over and shoot up, that'd be great.

The last sane human being in a world gone mad.
If you were a cockroach, what type of cockroach would you be?
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 15th Aug 2006 10:05
Quote: "What sort of plugin are you talking about? A .dll?"


Yup. It'd be a dll you put into the plugins-user file. I'm getting together a list of functions I'm gonna include right now actually. I'm just gathering some ones I find useful from random places. And I always believe free is good,especially when I didn't make half the code

Woohoo. DP is finally released!
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 15th Aug 2006 17:56 Edited at: 15th Aug 2006 17:57
You can do whatever you want with the code as long as you mention me and notify me about your application.

About the bunnies, i had to delete them to keep the code as the base and less complicated..but you can find the bunny images i use myself in the "Ingame Menu" link shown few posts above.. wouldnt be too hard to make plains with the animated bunny image textures and blast them off...
good luck
Lover of games
19
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 5th Oct 2006 14:07
For me the bunny shooter demo doesn't work.....Why is that? i get a black screen then windows error pops up saying that the application has encountered a problem and that it needs to close

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack

Login to post a reply

Server time is: 2024-11-23 03:30:34
Your offset time is: 2024-11-23 03:30:34