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 / [DBPro, no media] Small Game: Don't Hit The Blocks!

Author
Message
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jan 2007 03:14 Edited at: 18th Jan 2007 12:57
Okay. This is a small game I made, and basically you control a ball with the mouse (it goes to the mouse) and the objective is to cruise around not hit any blocks, surviving for as long as you can. If you hit a block, then you lose. Also, the ball speeds up overtime, so see how long you can last! Your ball will drop blocks (they disappear after a long time) and you can't hit those either. You can jump, but you have limited jumps and you gain a new jump every 50 points.

The code is very disorganized because this was originally going to be something else. Anyway, it uses shadow shading so you'll shader support, I think. The shadows can be turned off though. You will need no media, so you can just copy, paste, and run. Good luck!



Here are some screenshots. Maybe I'll add the ability to change the time of day later (no time now)


This one has motion blur. If you don't like it you can turn it off via the variable at the top of the code.




This is before the blur kicks in.




And, here's the code:


Version-- 1.0







Version-- 1.1- Includes Time Of Day Settings + a score bug fix




Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jan 2007 14:34 Edited at: 13th Jan 2007 19:05
Has anyone tried it yet?

EDIT: If you have tried it, comments and sugguestions are much appreciated.

lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 13th Jan 2007 19:23
Just tried version 1.1. After I chose daytime, the computer slowed down and froze. After I rebooted I looked at the code but couldn't find anything that would cause a major slow down or freeze. The screen shots look cool and description sounds like it would be fun, but I'm a little hesitant to try running it again.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Jan 2007 23:10 Edited at: 13th Jan 2007 23:25
Thanks for trying it!

That's really weird! Does your computer not support shadow mapping? You can turn it off w/ the variable at the top.


If anyone else has this problem tell me! In the meantime I'll test it on another computer.

EDIT: I just tested it on another computer and it ran slowly (the computer can't support shaders) but didn't freeze.

Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 16th Jan 2007 03:01
awesome mini game

really cool, i think the points and time was stacking tho after each death, sorry idk if its supposed to

gj
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 18th Jan 2007 12:58
Thanks! Yeah I fixed the time stacking thing, there's a new version 1.1 now.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Apr 2007 23:53
*Bump*

Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 2nd Apr 2007 17:31
Nice game

Although, the motionblur thingy was set to 1, it didn't show up here.
My gfxcard = Geforce 7600GS.

Current project: MiRevu Visual Gaming Engine
thread: http://forum.thegamecreators.com/?m=forum_view&t=103073&b=8
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 2nd Apr 2007 18:47
That's odd. Maybe you didn't score high enough? It kicks in later on.

Login to post a reply

Server time is: 2024-11-22 19:13:15
Your offset time is: 2024-11-22 19:13:15