Ok so here is a short vid of my new inventory system that i have been working on yesteday
Now in good quality! !!
o and i am making a new video of the new menu system that is not ready yet but it has the basic functions: New game,
Load game and Help Hope you guys enjoy!
Garbe Engine/Editor C++/SDL
Moderator: PC Supremacists
-
- Chaos Rift Cool Newbie
- Posts: 70
- Joined: Mon Dec 13, 2010 10:55 pm
Re: Garbe Engine/Editor C++/SDL
My God... it's all in one file. How do you get anything done?! If I have more than like, 1000 lines in a file I have a heart attack. You're sitting here, so unorganized, doing fine somehow.
I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article, http://lazyfoo.net/articles/article07/index.php . READ IT BEFORE YOUR CODE BECOMES TOO CONFUSING.
I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article, http://lazyfoo.net/articles/article07/index.php . READ IT BEFORE YOUR CODE BECOMES TOO CONFUSING.
-- Jesse Guarascia
I like C/++, SDL, SFML, OpenGL and Lua. If you don't like those, then gtfo my sig pl0x (jk trollololololol)
I like C/++, SDL, SFML, OpenGL and Lua. If you don't like those, then gtfo my sig pl0x (jk trollololololol)
- lalacomun
- VS Setup Wizard
- Posts: 114
- Joined: Wed Dec 28, 2011 10:18 pm
- Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
- Programming Language of Choice: C++
- Location: Argentina
- Contact:
Re: Garbe Engine/Editor C++/SDL
JesseGuarascia wrote:My God... it's all in one file. How do you get anything done?! If I have more than like, 1000 lines in a file I have a heart attack. You're sitting here, so unorganized, doing fine somehow.
I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article, http://lazyfoo.net/articles/article07/index.php . READ IT BEFORE YOUR CODE BECOMES TOO CONFUSING.
jeje no is not in one file it is in 6 files is just that i only had the engine.cpp opened at that time you can see my previous vids i think i had like 4 or 5 files open
-
- Chaos Rift Cool Newbie
- Posts: 70
- Joined: Mon Dec 13, 2010 10:55 pm
Re: Garbe Engine/Editor C++/SDL
Oh okay. Still, though, engine.cpp looks HUGE! You should probably try breaking it up into different sections, or maybe trying to design some of the code a little bit better. If you keep writing in that file at the rate that you are, things are bound to get confusing as hell. :Plalacomun wrote:JesseGuarascia wrote:My God... it's all in one file. How do you get anything done?! If I have more than like, 1000 lines in a file I have a heart attack. You're sitting here, so unorganized, doing fine somehow.
I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article, http://lazyfoo.net/articles/article07/index.php . READ IT BEFORE YOUR CODE BECOMES TOO CONFUSING.
jeje no is not in one file it is in 6 files is just that i only had the engine.cpp opened at that time you can see my previous vids i think i had like 4 or 5 files open
-- Jesse Guarascia
I like C/++, SDL, SFML, OpenGL and Lua. If you don't like those, then gtfo my sig pl0x (jk trollololololol)
I like C/++, SDL, SFML, OpenGL and Lua. If you don't like those, then gtfo my sig pl0x (jk trollololololol)
- lalacomun
- VS Setup Wizard
- Posts: 114
- Joined: Wed Dec 28, 2011 10:18 pm
- Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
- Programming Language of Choice: C++
- Location: Argentina
- Contact:
Re: Garbe Engine/Editor C++/SDL
yea you are right the engine.cpp is like 1200 lines and thats i am going to do right now!!JesseGuarascia wrote:Oh okay. Still, though, engine.cpp looks HUGE! You should probably try breaking it up into different sections, or maybe trying to design some of the code a little bit better. If you keep writing in that file at the rate that you are, things are bound to get confusing as hell. :Plalacomun wrote:JesseGuarascia wrote:My God... it's all in one file. How do you get anything done?! If I have more than like, 1000 lines in a file I have a heart attack. You're sitting here, so unorganized, doing fine somehow.
I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article, http://lazyfoo.net/articles/article07/index.php . READ IT BEFORE YOUR CODE BECOMES TOO CONFUSING.
jeje no is not in one file it is in 6 files is just that i only had the engine.cpp opened at that time you can see my previous vids i think i had like 4 or 5 files open
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: Garbe Engine/Editor C++/SDL
Just going to throw this out there: I don't think I've ever had a single source file with more than 600/700 lines, and those source files probably would have benefited from some significant reorganization.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
- lalacomun
- VS Setup Wizard
- Posts: 114
- Joined: Wed Dec 28, 2011 10:18 pm
- Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
- Programming Language of Choice: C++
- Location: Argentina
- Contact:
Re: Garbe Engine/Editor C++/SDL
Well i am glad to say that i already ogranized the code and its now divided into 7 source files, the engine .cpp is now 720 lines longGinto8 wrote:Just going to throw this out there: I don't think I've ever had a single source file with more than 600/700 lines, and those source files probably would have benefited from some significant reorganization.