Report as inappropriate.

Avatar-1940_thumb

Builderboy2005 presents ...

2009/4/14

Formula 0

I stumpled upon a graphic method of creating 3D racers known as Mode 7. I managed to implement it into java very nicely, although the quality isn't the absolute best.
Right now I have made maps 1, 3, and 5, which are easy, medium, and hard.
There will be difficulty settings for the Ai as well

-Functioning speedometer, and steering wheel, which accurately reflect velocity and turning acceleration
-Added a nice Menu, which lets you choose a map and customise your car!
-Click on you car to change your color (Although you really can't see it while driving!)
-First aplication of my new Physics engine! :D

14838 views / 44 in the last 7 days

31 votes | 0 in the last 7 days

Tags: simulation demo with-source 3d racer

This scenario is a member of: Scenario showcase, 3D


open in greenfoot
Your browser is ignoring the <APPLET> tag.
Avatar_thumbDonaldDuck

2010/10/31

Haha, while I was figuring out the controls, the Ai smashed into me and knocked the dice down :(
No_avatardkshdws

2010/12/3

Your stuff is amazing! do you think you could help me with something for my intro class project? I am creating a game of chance foot race. I have 5 racers numbered 1-5, the player picks the one he wants to win and then the race begins. I do not want to use keyControl (which is how I have it currently working. Her is what I am using: public void begin() { int randomLuckyNumber = Greenfoot.getRandomNumber(5); if(Greenfoot.mouseClicked(this)){ Greenfoot.getRandomNumber(5); if((randomLuckyNumber+1) == luckyNumber){ move(); this being the start button. I want racers 1-5 to move randomly until there is a winner. But this will only give me one random number per click, I just want to click and begin the random numbers 1-5 to continue repeatedly. Any input would be greatly appreciated. Thanks!
Humphreybogart-1_thumbdelmar

2010/12/12

I had to give you a "like" just for the fact that the dice fall off when you get bumped... - classic.
Spinjump1wvStudios

2011/1/11

How would you add a custom map? I prepared images, but I don't understand how to set the starting point. That's the only thing I can't figure out.
Avatar-1940Builderboy2005

2011/1/12

I'm glad you are showing such interest in my project :) First make sure you understand which colors in which images do what. For the m# images, this is the texture file. For the R# image files, these are the masks and the colors are as follows: Black: Solid Cyan: Solid for enemy (for help driving) green: start blue: 1/3 point yellow: 2/3 point White: empty Start positions are set in the racetrack() constructor (by bad code convention :P) and are located in the X/Yar array and the X?Ybr for your opponent. I also believe the rotation always starts looking the same direction as well, so you will need to take that into account, or feel free to change the code to add whatever functionality you want! If you wanted, you could even email me some of the maps you made and I can put them up in this scenario along with your name and thanks :)
Spinjump1wvStudios

2011/1/12

It's really cool that this could be remade in Greenfoot. The one complaint I have is that you didn't really leave any comments in your code, and it's kind of hard to figure out what's going on, at least for me. I love this engine.
Avatar-1940Builderboy2005

2011/1/13

Yeah thats probably one of the largest downsides of the way I code XD I tend to not comment at all or a lot, and my variable names are pretty cryptic. But i'm glad you like it :) Have you checked out some of my other 3D engines such as Castle Storm 2? (I would not recommend Castle Storm 1 at all, since it was written when my coding was even more horrible).
Images-3_thumbDragonKeeper

2011/1/14

that was awesome. I am new to green foot so it shocks me someone could do that
Spinjump1wvStudios

2011/1/14

I did check them out. Amazing. I just started working with java, but it's pretty easy, and I thought I was pretty good. Then there YOU go and make 3-D engines. :P Keep up the good work so I can plagiarize your code XD jk jk jk
No_avatar_thumbValera

2011/9/2

Cool!!!but how you do it?

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No_avatar_thumb No_avatar_thumb No_avatar_thumb Spinjump1_thumb 20386216_thumb No_avatar_thumb Greenfoot2_thumb Sli_thumb Image_xxxl_thumb Person_thumb Logo_thumb Brain_thumb Percy_jackson_thumb Images-3_thumb Humphreybogart-1_thumb 05061912-320_thumb Math_table_thumb No_avatar_thumb No_avatar_thumb Freddie_2_thumb