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

Programming word games?


Programming word games?

Postby egarayblas » Oct 22, 2003 @ 3:31pm

I'm actually considering a simple word game in my spare time while working on a bigger project. :) I was just wondering, what's the best method to store all those words that I will use in my game? Will I be better off learning ADO CE and storing everything in a database? Or use a resource file? Or just use a plain "external" text file? Any advice from those who have experience working w/ these kinds of games?

Thanks in advance!

Erick
-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby Dan East » Oct 22, 2003 @ 4:33pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby andyclap » Oct 22, 2003 @ 4:38pm

User avatar
andyclap
pm Member
 
Posts: 62
Joined: Aug 5, 2002 @ 1:32pm


Postby mlepage » Oct 22, 2003 @ 11:47pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby egarayblas » Oct 23, 2003 @ 3:26am

Dan: Thanks for the tip. You're right, I think I'm better off just using my own format.

Andyclap: What you mentioned is very interesting. I'll try to research on that from the net. Got any quick links where I can start with btw? Thanks!
-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby okku » Oct 23, 2003 @ 7:29am

okku
pm Member
 
Posts: 58
Joined: Nov 11, 2002 @ 8:51am
Location: Sweden


Postby andyclap » Oct 23, 2003 @ 10:32am

User avatar
andyclap
pm Member
 
Posts: 62
Joined: Aug 5, 2002 @ 1:32pm


Postby refractor » Oct 23, 2003 @ 12:26pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby mlepage » Oct 23, 2003 @ 4:30pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby refractor » Oct 23, 2003 @ 4:37pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby mlepage » Oct 23, 2003 @ 4:52pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby egarayblas » Oct 25, 2003 @ 2:01am

Guys, in line with this topic, how do you efficiently parse a short word into separate letters? For example I have a TCHAR variable containing the word "BOY", how do I parse it such that I can have it like my_char[0] = "B", my_char[1] = "O", my_char[2] = "Y"? Mine is working but I'm not sure I'm doing it right and there maybe a simpler way to go about this. Thanks!
-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby mlepage » Oct 25, 2003 @ 4:03am

I would just use std::basic_string<_TCHAR>.

Then, str[0] is the first _TCHAR, str[1] is the second, and so on.

Further, you have all the standard string algorithms (like searching and replacing) at your disposal.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Oct 27, 2003 @ 8:42am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


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