This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Level Locking/unlocking question


Level Locking/unlocking question

Postby gevans2000 » Oct 25, 2003 @ 7:01pm

gevans2000
pm Member
 
Posts: 45
Joined: Jun 11, 2003 @ 6:02pm
Location: London UK


Postby sponge » Oct 25, 2003 @ 8:32pm

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby gevans2000 » Oct 26, 2003 @ 12:22am

Any suggestions on a good, simple to use library to use for encryption?
gevans2000
pm Member
 
Posts: 45
Joined: Jun 11, 2003 @ 6:02pm
Location: London UK


Postby superman » Oct 26, 2003 @ 1:32am

A simple function that takes a number ( the level that can be started at ), converts it to an octal, hex, or any other odd base, and then replaces the digits with predefined characters should be more than enough. That way you don't have to deal with an entire library.

ex: Level 10
Octal: 12
replace 1's with +'s, 2's with %, 3's with c's, 4's with p's, etc.
Final string: +%

Then, reverse the process to get the last level the player can start at. atoi and itoa can convert to and from different bases, so that will make your programming job a lot simpler. That "encription" would be enough to stop most users.


...or, you could just go with a regular encryption algorithm...
"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Postby DillRye » Oct 26, 2003 @ 6:34am

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby gevans2000 » Oct 26, 2003 @ 4:46pm

gevans2000
pm Member
 
Posts: 45
Joined: Jun 11, 2003 @ 6:02pm
Location: London UK


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron