Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2012, 10:35 AM
Uncanny Uncanny is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 Uncanny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 30 sec
Reputation Power: 0
Creating A Game In C. Basic Save Question

So, me and a friend of mine want to create a reaaaally basic Text Adventure in C.

The plan is simple, there will be a whole lot of text, dialogues, etc and the player will have to make decisions that will determine the route of the story. We wont have any visuals and it will pretty much look like a PnP RPG, maybe without the luck factor dices provide.

My first question is if there is a way to have the program save the player's progression. If so, what libraries do I need to use and what commands.

Im not sure if what im asking for is achievable, but thanks in advance.

Reply With Quote
  #2  
Old October 9th, 2012, 11:06 AM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Oct 2003
Posts: 3,129 MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 22 h 57 m 20 sec
Reputation Power: 1736
Try take a look at c write and read text file

Reply With Quote
  #3  
Old October 9th, 2012, 12:22 PM
Uncanny Uncanny is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 Uncanny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 30 sec
Reputation Power: 0
I only get results for C#, not C... Is there a way to make a small program that will track down the progress of main and be able continue the main from where it ended last time if I execute it?

Reply With Quote
  #4  
Old October 10th, 2012, 11:02 AM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Oct 2003
Posts: 3,129 MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 22 h 57 m 20 sec
Reputation Power: 1736
As I see it, it will be better to save the information to a file.
Try have a look at these pages:
http://www.go4expert.com/forums/showthread.php?t=2977
http://forum.codecall.net/topic/51524-reading-and-writing-files-in-c/#axzz28udlPTSE

Reply With Quote
  #5  
Old October 10th, 2012, 01:06 PM
Uncanny Uncanny is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 Uncanny User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 30 sec
Reputation Power: 0
YES! This is what I was looking for. Ill search deeply into the matter.

Now, I also need a way to roll a dice. I prefer to discover the way by myself but Im fully unaware of possible commands that will give randomized numbers as results. Is there a way to program a roll of a dice in C?

Thanks, once again, in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Creating A Game In C. Basic Save Question

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap