forums

TNT Basic Forums > Games In Progress
Simple 3D World
< Last Thread     Next Thread >
Author
Thread        Post A Reply

03-05-2007 02:17

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

My brother and I started this last night.
There are no goals, just a simple map to run around in.

Controls:
Movement: Arrows
Jump: Space
Shift: Run

Screenshot:


Download (1.7mb)

Note: If you don't want to play it in fullscreen, hold space before the game runs.

Enjoy,
Jacob

03-05-2007 02:42

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

Update

You can now create your own maps!

When the game starts up press left or right to select objects and click to draw it, or press space to draw the default map.
When you're done, press enter.

Same downlod link and controls as above: Download 1.7mb

Enjoy,
Jacob

03-05-2007 02:56

Posted by:
swagIT

Location:
Great Wet North (Vancouver)

Find more posts by swagIT

Hey Jacob - can't seem to get it to work? Ran it on both Panther and Tiger - just got a scrunch of wee images in the top left of the screen.....

=(

03-05-2007 02:58

Posted by:
swagIT

Location:
Great Wet North (Vancouver)

Find more posts by swagIT

Nveremind - got it - maybe I should read your notes before I run things! LOL

VERY cool!

03-05-2007 03:14

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

I forgot to mention that you can hold down apple/mac to erase while editing the map.

03-05-2007 05:29

Posted by:
appleide

Click Here to Email appleide   Find more posts by appleide

I never knew you could do that in TNTbasic. very Cool indeed!

03-20-2007 00:33

Posted by:
Hendo

Location:
Barrie, Ontario

Click Here to Email Hendo   Find more posts by Hendo

will you post the source code? many people including myself would love to see how this is done! :)

03-20-2007 01:08

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

It's not commented well, but here is the 3D World source code.

Have fun :)

03-20-2007 01:10

Posted by:
Hendo

Location:
Barrie, Ontario

Click Here to Email Hendo   Find more posts by Hendo

awsome! thanks so much:D

03-20-2007 06:56

Posted by:
Tim

Location:
New Zealand

Find more posts by Tim

:( I cant get to run...

all I get is the an image in the corner and some dots that seem to move with the mouse...

03-20-2007 07:01

Posted by:
Tim

Location:
New Zealand

Find more posts by Tim

oh those instructions, my bad! Thats cool, well done mate!

03-20-2007 10:32

Posted by:
Hendo

Location:
Barrie, Ontario

Click Here to Email Hendo   Find more posts by Hendo

as if you figured out how to do that...so.much.math...ack! i hate math lol. man that is some complex coding, holy crap...i could'nt code that/even decipher that if my life depended on it.

03-20-2007 14:42

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

Have you ever gotten on top of the trees?

03-20-2007 15:10

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

|-- i could'nt decipher that if my life depended on it. --|

It's way easier to understand than it looks. :)

Go down to the collisions (line 148),
first that for loop loops through all the sprites/objects (maxobj is the total amout of objects),
then it tests the objects type (t[obj]),
now since I wanted cylinder I have to test y's distance seperately (y is the height off ground, vertical),
so since z is depth and x is horizontal position, those are tested together;
okay, the variable dir is the degrees (0-360) from the object/bush/tree to you, this is needed so that when you run too far into the bush, you are pushed back out in the direction you came from.

04-16-2007 09:50

Posted by:
Orteil

Location:
Somewhere in France

Find more posts by Orteil

Dude, you're a genius.

Can I / we use your code to build some games with it ?

04-16-2007 13:27

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

Sure, and if you want, I can convert it from a game to a game engine with a level editor, or if you'd like to use TMAPs, it's easier to do that, but not as good of quality (ex. you might not be able to make walls close enough so that you can't get through)

Anyway, thanks for your interest!

04-16-2007 14:34

Posted by:
Orteil

Location:
Somewhere in France

Find more posts by Orteil

Yep, a full game engine would be fine and I would definetely call you a genius.

If you want to see some of my crappy stuffs there are a couple in the Directory section.
I'm currently making all alone a (french) browser-based MMORPG (Karabir).

Did you do some other games ?

04-16-2007 16:49

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

Most of the game I made can be found in the game pack in my website: http://tntbasicfiles.sitesled.com (currently 38 games)
My brother helped me out on the math parts, so it's not all my work.

I'll get it ready and post here when it's done.

04-16-2007 19:49

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

TNT3D

Here is the most basic skeleton of the engine: TNT3D.sit
I added a few functions and erased everything (exept images) that made it a game.

I will add colisions (cone, sphere, box, cylinder) and whatever you suggest soon.

04-18-2007 15:36

Posted by:
Orteil

Location:
Somewhere in France

Find more posts by Orteil

Dude, I downloaded your games; some are pure crap (graphically most of the time) but a few are very nice and playable. My favourite is Fledgling, though there's a little bug with the keys (they can go through the doors and you can't reach them anymore !) and the boars (I got stuck on the ground, each time I tried to fly there was a big brown beast that made me fly down). I like this game anyway : makes me feel cooool and relaaax.
Technically your games are awesome. In the game I'm working on I'm having problems with the code and maths so I prefer working on the pictures :)

Please keep up TNTbasic development (I guess you're in the staff, right ?) as well as the 3D engine (could you try to make some kind of Mode 7 for the ground and sky ?).

Also, can someone explain me how does the "scale sprite" moan command work ? I can't see anything logical happening to my sprites !

04-18-2007 16:53

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

"there's a little bug with the keys (they can go through the doors and you can't reach them anymore!)"
The first factory/keys level is only for learning what keys go to what color. If you look closely, each key is a little diferent. All you have to do is keep banging on the door while holding the keys and after about ten bangs, if the door didn't open, then you most likely aren't carrying that key.

"and the boars (I got stuck on the ground, each time I tried to fly there was a big brown beast that made me fly down)."
You can "eat" the boars by holding down Mac when that happens.

"(I guess you're in the staff, right?)"
No, I just code for fun. And I'm pretty much done making 2D games now, I don't know what the future TNT Basic will have to offer, but I want to make 3D ones now. So I can't really do anything to keep it up.

"(could you try to make some kind of Mode 7 for the ground and sky?)."
If it's what I'm thinking (using the fill poly command for each pixel on a different canvas, then using copy image), then probably no because the game would run way too slow.

Personally, I don't use moan at all. I guess I got used to not using it, and now looking at it, I don't see that it is better that not using it.

P.S. I've noticed some people from other countries on this forum put a space before a ? or !. There's no space there in English.

04-19-2007 08:15

Posted by:
Orteil

Location:
Somewhere in France

Find more posts by Orteil

Dude, I had the bird's mouth wide open when I was playing and a boar disappeared right in front of me, I thought it was a bug because I couldn't make it again.
OK, I'll try to keep my ? and ! stuck to my words!
A full 3D node would be fine in TNTbasic. I hope they'll keep the development, there hasn't been any update for a little while now.

I found out the moan stuff a few weeks ago - I worked without before. But it can be pretty useful because you don't need to apply some Set Sprite Rotation with a loop when you want it to rotate endlessly, or stuffs like that.

04-19-2007 11:31

Posted by:
Jacob

Location:
San Francisco, CA

Click Here to Email Jacob   Find more posts by Jacob

Some comments on the games

In Adventure, hold down shift while the game is starting to see the story.

Did you win Fledgling?
Games you can win or finish are: Cooney, Fledgling, Break Free, CocoCrunch, Equine Race, Fishy, Water Drop, and Berry Patch.

04-21-2007 18:09

Posted by:
Orteil

Location:
Somewhere in France

Find more posts by Orteil

I finished em all (after I slightly edited the code, I must admit - the bees in Coony are pretty annoying things...). Only in Equine Race I couldn't win the race, they're too fast (and clever - they jump with the perfect good timing).

I'm currently working on a big game, I'll try and post a demo soon.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.