Forum: Posting Games Mar 12th, 2006 |
| Replies: 3,140 Views: 153,447 Re: 3 word story ...To have strange....
(Can't believe this is still going, i havent been to the site in nearly a year due to uni commitments..... :) ) |
Forum: C++ Apr 7th, 2005 |
| Replies: 3 Views: 2,841 Re: drawing - stickman with array Have an array of chars and draw it!
eg:
char array[] = { "+", "+", "+", "+", "+",
"+", "0", "+", "0", "+",
"+", "+", "^", "+", "+",
... |
Forum: C++ Apr 7th, 2005 |
| Replies: 3 Views: 2,841 Re: drawing - stickman with array Have an array of chars and draw it!
eg:
char array[] = { "+", "+", "+", "+", "+",
"+", "0", "+", "0", "+",
"+", "+", "^", "+", "+",
... |
Forum: C Apr 7th, 2005 |
| Replies: 5 Views: 1,649 Re: Using sprites... You want to load them into a one dimension array really as then each array index represents a frame of animation. This could be done using windows functions quite easily (BitBlt function and the... |
Forum: Game Development Mar 23rd, 2005 |
| Replies: 17 Views: 4,428 |
Forum: C++ Mar 23rd, 2005 |
| Replies: 45 Views: 31,942 |
Forum: C Mar 23rd, 2005 |
| Replies: 4 Views: 1,195 Re: desperate! having serious issuses ibmackin have you tried any code at all, if so post it. The forum rules say we dont do homework for you, but we will have a go at fixing mistakes in homework you HAVE ALREADY DONE! |:) |
Forum: C Mar 20th, 2005 |
| Replies: 4 Views: 3,390 Re: Calendar Creator Sorry for the late reply Ive been away at uni working hard! As for drawing the calendar why not have a nested loop to draw the whole lot?
char days[] = { "S", "M", "T", "W", "T", "F", "S" }; //... |
Forum: C++ Mar 20th, 2005 |
| Replies: 3 Views: 2,270 Re: Why compiler complants error when compile. or in full "std::vector", but there is still a danger that the struct name will cause errors. Easy just to do
namespace my_vector
{
struct vector // might as well class it
{
double... |
Forum: C++ Mar 20th, 2005 |
| Replies: 1 Views: 3,526 |
Forum: C Mar 20th, 2005 |
| Replies: 3 Views: 1,997 Re: Windows programming task Sorry I re-read the question. Your instructor is asking you to do a 'fake 3d' lighting effect (I was going to show you a 'real' techniqe!). He / She has said that colour must fade depending on... |
Forum: C Mar 20th, 2005 |
| Replies: 3 Views: 1,997 Re: Windows programming task Well for a start to make an ellipse appear like a ball you need to make a CIRCLE not an ellipse, then depending on the angle of the light you need to do some VERY basic lighting algorithms ASSUMING... |
Forum: C Mar 20th, 2005 |
| Replies: 4 Views: 1,555 |
Forum: C++ Mar 20th, 2005 |
| Replies: 54 Views: 47,934 Re: C and C++ Timesaving Tips Seeing as this thread is about timesaving what about inheritance? Its a good time saver especially for the masses intent on game creation.
Say you make a class such as
class CBASE_ENTITY
{
// code... |
Forum: Motherboards, CPUs and RAM Mar 20th, 2005 |
| Replies: 3 Views: 2,042 Re: sharing ram with video Video ram is Video ram, you cant expand Video mem into RAM as far as I know. OpenGL and DirectX (The most common card techs) 'almost' do this by using system ram if the vid mem runs out, the two... |
Forum: C++ Mar 20th, 2005 |
| Replies: 11 Views: 11,245 |
Forum: C++ Mar 20th, 2005 |
| Replies: 2 Views: 1,988 Re: Two-way class communication Another way might be to define two classes with everything private (-constructors) and put the other classes functions as friends? the use of the static keyword could help as static fields dont... |
Forum: C Mar 20th, 2005 |
| Replies: 1 Views: 1,544 Re: Trouble with pointers in card game. What exact problem are you having at the moment with it? If you generate random numbers 1 - 13 to generate random cards all you need to do is have a seperate fields to store the value and the ID in.... |
Forum: C Mar 16th, 2005 |
| Replies: 4 Views: 3,390 Re: Calendar Creator Well looping would be a simple way to draw it! Does this have to be a console app? Many Win32 Functions are available for arranging text or characters at co-ordinates on a window.... |
Forum: C++ Mar 16th, 2005 |
| Replies: 1 Views: 2,733 Re: Problem with basic templates on GCC not sure what is wrong there! However this code (untested) should work
#include <iostream> // std::cout
#include <string> // std::string
#include <cstdlib> // system
template <class t> class... |
Forum: C++ Mar 16th, 2005 |
| Replies: 9 Views: 3,768 |
Forum: C++ Mar 5th, 2005 |
| Replies: 6 Views: 3,951 |
Forum: C++ Mar 5th, 2005 |
| Replies: 8 Views: 38,259 |
Forum: C++ Mar 5th, 2005 |
| Replies: 13 Views: 10,602 Re: Graphics in Pixel,Mode13h:Part 1 Lost times of how many times i have said this (it is posted 3 or 4 times ABOVE people!) but just to refresh...
THE MODE 13H CODE USES 16 BIT ASSEMBLY COMMANDS (16 bit interrupts is the... |
Forum: C++ Mar 5th, 2005 |
| Replies: 3 Views: 2,235 Re: loop and class problem If you must use char * (c-style) strings then define them as
char *string1;
char *string2;
string1 = (char*) new char[length + 1]; // allocate memory for a string of a given length. the + 1 is for... |
Forum: Visual Basic 4 / 5 / 6 Mar 5th, 2005 |
| Replies: 7 Views: 15,850 Re: Integer to string then 2 listbox Just a few for you
cstr() ' convert to string
ccur() ' convert to curreny
clng() ' convert to long
cint() ' convert to integer
cdbl() ' convert to double
and theres probably a few more if you... |
Forum: C++ Mar 5th, 2005 |
| Replies: 6 Views: 3,951 Re: adding to a string std::string also works well
ie
std::string str1 = "string 1 goes here";
std::string str2 = "string 2 goes here";
str1 += str2; // add str2 to str1 |
Forum: C++ Mar 5th, 2005 |
| Replies: 2 Views: 2,896 |
Forum: C++ Mar 4th, 2005 |
| Replies: 1 Views: 2,176 Re: Linked Lists stresses search the code snippets. There are many examples there. strcmp is probably being passed / is returning invalid data. If you want strings why not use the string class?
also strcmp needs const char *... |
Forum: Game Development Mar 4th, 2005 |
| Replies: 2 Views: 2,196 |
Forum: Game Development Mar 4th, 2005 |
| Replies: 1 Views: 2,718 Re: I need help - Opengl SDK there is a directx sdk of about 2 - 3 megs (i think) which is just the source and libraries. Search for and download DirectX 8 For Dev C++ (smaller than sdk) and copy what you need. DevC++ also... |
Forum: C++ Mar 4th, 2005 |
| Replies: 3 Views: 2,235 Re: loop and class problem strcmp parameters are invalid like the compiler says! I would convert to using the std::string class found in <string> as it is much easier to use and has most of its operators overloaded so you can... |
Forum: DaniWeb Community Feedback Mar 4th, 2005 |
| Replies: 9 Views: 7,694 MatLab Forum? I have been studying Engineering at university now and have come across a language which is apprently an industry standard - MatLab. It is a scripting language very close to C at times yet comes with... |
Forum: Assembly Mar 4th, 2005 |
| Replies: 1 Views: 9,106 Re: print odd and even numbers not done assembly for a while but...
in the array loop if you have a flag for odd / even and XOR it every time the loop goes round it will switch from odd to even. Then test the flag to see whether... |
Forum: Visual Basic 4 / 5 / 6 Mar 4th, 2005 |
| Replies: 7 Views: 15,850 |
Forum: C++ Mar 4th, 2005 |
| Replies: 5 Views: 2,822 Re: graphics.h supplement? You could investigate DirectX graphics. It really isnt hard as long as you error check all the way, otherwise it starts getting frustrating. Or even easier try OpenGL |
Forum: C++ Feb 7th, 2005 |
| Replies: 9 Views: 5,042 Re: traslate by C++ a EXCEL sintax in a C++ sintax paolo have you tried EXPORTING / SAVING the sheet as a txt? And saying yes to something you say you dont know what it is (vb) in the next sentence is a bit worrying... ffrosk you cant complain really... |
Forum: Windows 9x / Me Feb 7th, 2005 |
| Replies: 10 Views: 2,560 |
Forum: C++ Feb 7th, 2005 |
| Replies: 2 Views: 5,209 Re: Help... assembly in Dev C++ DONT use 10h graphics. Im assuming you have
mov ax, 0x13 or whatever
int 10h
This WONT work in dev C++ as it is a 32 bit compiler. You need to use a 16 bit compiler such as DJGPP! Or get a... |
Forum: Java Feb 7th, 2005 |
| Replies: 3 Views: 8,841 |