Jump to content

  • Log In with Google      Sign In   
  • Create Account


Canvas

Member Since 05 Mar 2012
Offline Last Active Jun 25 2014 02:29 PM
*****

#5115986 Website to upload game for free

Posted by Canvas 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++

 

Canvas




#5069574 Android Bitmap change Hue

Posted by Canvas 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?

Canvas




#4956908 Loading a tile-maps from text files.

Posted by Canvas 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 Canvas on 02 July 2012 - 04:55 AM

Hey,

Well
1

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


2

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


3

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.


4

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.



a)

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.



b)

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?



c)

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 Canvas 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.

Canvas


#4947744 My state doesn't work

Posted by Canvas 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));

SDL_BlitSurface(buttons.at(0).draw(),NULL,screen,&buttons.at(0).rtnPos());
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


PARTNERS