3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Password protect your game - DEMO  (Read 1598 times)

« on: January 26, 2010, 08:37:25 PM »
Not sure if this has been done before. Figured I'd have a go anyway! Just read the following details and then run the attached project.

-The demo reads the ascii value of each character in the entered username (must be length 5 by default)

-It then performs a chosen function on these values to determine the required password. By default I've used a very basic "ceasar cipher" to simply shift each value by 3. This function should be made more complex to increase security (edit "script-password")

-If the entered password is correct, "ACCEPTED" will be displayed and an exitfade will then lead to your main project. Otherwise "DENIED" will be displayed and the project will exit.

e.g try
username:"hello"
password:"khoor"

If you're lost, check an ascii table to see how each character is being shifted by 3:
http://www.asciitable.com/

If anyone wants to improve it, that'd be cool- I didn't spend too much time on it so it's not that efficiently scripted.
« Reply #1 on: January 27, 2010, 08:31:39 AM »
WOW!  :o

Nice!  ;D
james116, the 3D Rad n00b.
Age: 13
Full games made: 1 (and counting :D)
Website: Coming soon!
« Reply #2 on: February 05, 2010, 01:31:19 PM »
Perfect, but i still don�t understand how to change username :-( I know just how to change posword :-)
I�m from outer space...
« Reply #3 on: February 06, 2010, 01:50:53 AM »
You don't need to do anything to change the username. The password is determined by the set pattern, by default (password=username+3) hence any username can be used as long as the corresponding password is correct. I gave hello:khoor as an example but you could also have fgths:ijwkv or aaaaa:ddddd. All you need to do is therefore change the formula to something a bit less obvious that adding 3 letters. Optionally change the password length to strengthen it.
Understand?
« Reply #4 on: February 07, 2010, 02:08:19 AM »
Yeah  ;) ! Thank you very mutch!   :)
I�m from outer space...
« Reply #5 on: February 14, 2010, 04:24:54 PM »
Can u help me im trying to make a game where u have ur own username like inneed 4 speed games but i have no clue how u make it to where u can type it in tho
Sup
« Reply #6 on: February 14, 2010, 04:34:10 PM »
Well which part in the demo don't you understand? Surely you can just copy it across to your own project.
I'd probably create a sprite 'frame' around the textprint to make it look cool...
Pages: [1]