School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 308,426 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,240 people online right now. Registration is fast and FREE... Join Now!




My Game Project in SDL

 

My Game Project in SDL, A Tic Tac To

nirvanarupali

31 Jul, 2009 - 06:50 PM
Post #1

D.I.C Stomach
Group Icon

Joined: 1 Aug, 2007
Posts: 1,085



Thanked: 9 times
Dream Kudos: 375
My Contributions
I went back my TicTacTo codes in C++ which has written 2 years ago.And then I realized to use SDL on it. The program is finished with the help of the SDL tutorial, loading bitmaps, manipulating bitmaps, and etc. It is working properly and it is nice. Then I extend it, I had able to make it 6x6 rows and column but the winning still 3 combinations, until the problems arises. I had able to tract the scores of both players but the problem is I really don't know how to output text to my SDL surface, where I can display the real time scores.

Questions:

1. Is is possible in SDL to output text to the SDL screen or surface? How?

2. So far, all the bitmaps are stored in separate folder, everytime the program runs, it will load. My question is, Is it possible that this will be included during compilation without worrying that these bitmaps can be deleted by a player,? and if this is accendentally deleted the programl fails.

I ask this because, I have seen a Chess Program from GNU, although I didn't see the source codes, but it is only a single executable. For sure this is not SDL right, because, it doesn't use SDL.dll to run.

Your help is highly appreciated. Thank you.

This post has been edited by nirvanarupali: 31 Jul, 2009 - 06:53 PM

User is offlineProfile CardPM
+Quote Post


Posts in this topic

Fast ReplyReply to this topicStart new topic

Time is now: 11/24/09 01:41PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month