Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Mar 2012
Offline Last Active Feb 11 2016 02:58 PM

#5115986 Website to upload game for free

Posted by on 10 December 2013 - 02:33 PM

Hey there people,


I'm looking for a website or a program like steam where I can upload my game for free so anyone can download my game for free and play it. Just want to get my games our there and don't mine allowing people to download them for free. Is there any such website or software? My games are mostly focused around C++



#5069574 Android Bitmap change Hue

Posted by on 13 June 2013 - 05:13 PM

I have got a Android bitmap and i'm trying to change the HUE of the image, as the image is a red block, I want to change that block to green by just changing the HUE, but I can't seem to find any code anywhere.

Anyone know how I can do this?


#4956908 Loading a tile-maps from text files.

Posted by on 08 July 2012 - 06:18 AM

I have some code in C++ that will load in a txt file and then place the wanted variables in the correct place if that is what you are looking for?
I would change all of your "," to just spaces,
here is a simple txt file and the code to read it
x y z
0 0 1
0 1 0
1 0 0

[source lang="cpp"]vector<int> Xs;vector<int> Ys;vector<int> Zs;void gLevel::loadFromFile(const char *filename){std::ifstream file(filename);int x,y,zwhile(file >> x >> y >> z){xS.push_back(x);xS.push_back(y);xS.push_back(z);}file.close();[/source]

Xs will have 0,0,1
Ys will have 0,1,0
Zs will have 1,0,0

understand? also the vectors i made to hold the variable is silly, but you can store them however you want.
Also remember to #include <ifstream>

#4954863 [Help] How do you properly organize game architecture?

Posted by on 02 July 2012 - 04:55 AM



How do you properly code a commercial game architecture?) Keep everything slip, so if you have a hero keep everything that is related to hero in hero, if every class looks after itself you wont have any problems down the line


How do you organize it?) Like above, just keep every class specific.


How do you make it not become unmaintainable spaghetti code?) There is nothing wrong with white space and comments, just comment every method so you know what that method does.


What specific things to keep in mind when building this, codewise?) The class you are coding, thing of everything it needs to do and what it needs to return, or you will be going backwards and forwards adding new code.


Please tell how do you code your own game projects. What is your thought-process when designing the architecture?

notes, lots and lots of notes with explaining what each "thing" will do.


Recommend books, blogs, tutorials, videos or anything else on how to organize a commercial video game. Well to be honest it depends on what you are coding it? Java? C++? C? C#? XNA? SDL? SFML? Clutter?


Give hints and tips on do's/don'ts when building a game, codewise. Well in my experience I have made many mistakes, and the best thing to keep in mind, if your new this isn't easy, don't try and make your first project huge, like a 3D fps with multiplayer and in game currency bla bla bla, make pong or snake.

#4954679 Start with SFML or SDL?

Posted by on 01 July 2012 - 05:02 PM

To be honest I started a project with C++ and SDL, was going perfectly until sprite rotation. SDL isnt friendly with sprites to be honest, and as it uses the CPU only and not the GPU it isnt very good to do the rotation on the fly, as it could cause major lag on many machines, If you want to create a quite simple basic game or program I would say go for SDL as it is nearly supported by everything, If you want something that uses the GPU and doesnt cause a huge amount of process to the CPU go for SFML. I converted all my SDL project to SFML in a very short time, and as I have worked with SDL before I feel that SFML is much easier and well...just easier to understand.


#4947744 My state doesn't work

Posted by on 09 June 2012 - 02:45 PM

well its weird, it worked fine in main.cpp, but now i tried moving my code to a gState.cpp it gets the window fine but not the button...confused Posted Image,
lol its ok,
i had some functions in the wrong place

SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format,111,206,205));

was the other way round, but now i fixed it, it works!!!, I may have to take a break now, cheers for the help tho