473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Developing Games

I want to develop a PacMan type Game in Graphics Mode 640x480 in C++.
But it is too slow when I tested just unfinihed program. Sometimes
it's slow in between the game. I have 2.4GHz Intel Processor and 256
RAM, not the limitation of my machine. Please tell me the method,
perhaps I have to use direct Hardware Interrupt for video output. If
anyone can provide me the game tutorials in c++ using ASM or........
My email is ra21vi<at>rediffmail.com

/---- Hey Guys, check this emal provider which offers 1GB mail
space----/
Jul 22 '05 #1
4 1768
Mysterious wrote:
I want to develop a PacMan type Game in Graphics Mode 640x480 in C++.
But it is too slow when I tested just unfinihed program. Sometimes
it's slow in between the game. I have 2.4GHz Intel Processor and 256
RAM, not the limitation of my machine. Please tell me the method,
perhaps I have to use direct Hardware Interrupt for video output. If
anyone can provide me the game tutorials in c++ using ASM or........
My email is ra21vi<at>rediffmail.com

/---- Hey Guys, check this emal provider which offers 1GB mail
space----/


C++ provides no support for graphics, therefore graphics are off-topic here.
Try asking over at gamedev.net. Hint: SDL.

- Pete
Jul 22 '05 #2
Mysterious wrote:
I want to develop a PacMan type Game in Graphics Mode 640x480 in C++.
But it is too slow when I tested just unfinihed program. Sometimes
it's slow in between the game. I have 2.4GHz Intel Processor and 256
RAM, not the limitation of my machine. Please tell me the method,
perhaps I have to use direct Hardware Interrupt for video output. If
anyone can provide me the game tutorials in c++ using ASM or........
My email is ra21vi<at>rediffmail.com

/---- Hey Guys, check this emal provider which offers 1GB mail
space----/


This is unfortunately off topic for C++, but you should really just look
around. There is a LOT of stuff on game programming, google for "game
programming tutorial" should get you started pretty well.

As was mentioned, http://www.libsdl.org is a good place to start for
some fast library code.
Some more thoughts: Find out what flags your compiler uses to optimize
and try those.

ASM is compiler dependant, general books on ASM programming are
available though. I don't think a lot of people use ASM much anymore,
you might try this only as a last resort.

Find out how to profile your code. Post up the results here. C++
optimization might be on topic, and I'd love to see some people here
make suggestions for a real world example myself.

Also check out OpenGL, and DirectX. These are not portable, but if you
need raw speed (you shouldn't for pacman) you'll eventually have to
learn these APIs.

That's all I can think of for now...

Jul 22 '05 #3
Mysterious wrote:

I want to develop a PacMan type Game in Graphics Mode 640x480 in C++.
But it is too slow when I tested just unfinihed program. Sometimes
it's slow in between the game. I have 2.4GHz Intel Processor and 256
RAM, not the limitation of my machine. Please tell me the method,
perhaps I have to use direct Hardware Interrupt for video output. If
anyone can provide me the game tutorials in c++ using ASM or........
My email is ra21vi<at>rediffmail.com


There seems to be a serious problem on how you do things.
If 2.5 Mhz CPU's didn't have a problem with PacMan 25 years
ago, then your 2.5 Ghz CPU (which is 1000 times faster!) shouldn't
have any problem.

I'm quite sure that there is absolutely no need to dig down
to Hardware Interrupts just for programming a PacMan game.

Use a profiler to figure out where all the time goes.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #4
"Karl Heinz Buchegger" <kb******@gascad.at> wrote in message
news:40**************@gascad.at...
Mysterious wrote:

I want to develop a PacMan type Game in Graphics Mode 640x480 in C++.


There's a book in on games programming that has the final product as a
Pac-Mac (tm) style game. It's current, in that I've seen it at technical
book stores, and even in mainstream bookstores like Barnes & Nobles (in the
USA). You can even sit and read it there, and have a latte and biscotti.

--
Mabden
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Nick Mudge | last post by:
Hi, I am learning PHP, but it can be kind of boring. Are there any games where you use PHP programming to play the game? This way you learn how to use PHP and it is fun. Does anybody know? ...
23
by: eeykay | last post by:
Hello All, I am trying to convince my client to use Python in his new product. He is worried about the license issues. Can somebody there to point me any good commercial applications developed...
2
by: Developwebsites | last post by:
I have found a few games made in js and in comparison to Java and Flash games, they load much faster. no plug in or java enabled crap needed. java games take much too long to load, I only play...
761
by: Neo-LISPer | last post by:
Hey Recently, I researched using C++ for game programming and here is what I found: C++ game developers spend a lot of their time debugging corrupted memory. Few, if any, compilers offer...
4
by: ώε↮øй | last post by:
I have the whole group of .NET 2003 platforms sitting here from a dream I have of building some simple web based games (much like on msn zone) Any guidance as to where I start and what I need to...
45
by: Gaijinco | last post by:
Hi my name is Carlos Obregón and I'm currently a profesor of C/C++ programming at the CUMD in Bogotá Colombia. This last term I ask my students to develop an implementation of the minesweeper...
0
by: Jared Goralnick | last post by:
Hi, I'm in the process of developing some high-level specs for an application. Some of the functionality of this application involves intercepting Windows access to certain applications or...
4
by: viper888 | last post by:
Hi to all, I'm the newly appointed network administrator in our office, and upon scanning all the PCs that are connected to the network, (by the way we're using a windows 2000 server) almost all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.