Click here to Skip to main content
15,435,939 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionRIBs Architecture Pin
Member 1237212418-Aug-22 4:26
MemberMember 1237212418-Aug-22 4:26 
Questionorganizing everything visible on screen Pin
Calin Cali6-Aug-22 0:14
MemberCalin Cali6-Aug-22 0:14 
AnswerRe: organizing everything visible on screen Pin
Mircea Neacsu6-Aug-22 0:47
mvaMircea Neacsu6-Aug-22 0:47 
AnswerRe: organizing everything visible on screen Pin
Gerry Schmitz6-Aug-22 7:04
mveGerry Schmitz6-Aug-22 7:04 
GeneralRe: organizing everything visible on screen Pin
Calin Cali6-Aug-22 10:42
MemberCalin Cali6-Aug-22 10:42 
GeneralRe: organizing everything visible on screen Pin
Greg Utas6-Aug-22 12:23
mveGreg Utas6-Aug-22 12:23 
GeneralRe: organizing everything visible on screen Pin
Calin Cali6-Aug-22 23:21
MemberCalin Cali6-Aug-22 23:21 
GeneralRe: organizing everything visible on screen Pin
Gerry Schmitz7-Aug-22 6:54
mveGerry Schmitz7-Aug-22 6:54 
GeneralRe: organizing everything visible on screen Pin
Greg Utas7-Aug-22 7:11
mveGreg Utas7-Aug-22 7:11 
GeneralRe: organizing everything visible on screen Pin
Calin Cali7-Aug-22 18:18
MemberCalin Cali7-Aug-22 18:18 
GeneralRe: organizing everything visible on screen Pin
Gerry Schmitz7-Aug-22 7:06
mveGerry Schmitz7-Aug-22 7:06 
GeneralRe: organizing everything visible on screen Pin
Calin Cali7-Aug-22 20:07
MemberCalin Cali7-Aug-22 20:07 
GeneralRe: organizing everything visible on screen Pin
Greg Utas8-Aug-22 0:47
mveGreg Utas8-Aug-22 0:47 
GeneralRe: organizing everything visible on screen Pin
Gerry Schmitz8-Aug-22 7:23
mveGerry Schmitz8-Aug-22 7:23 
GeneralRe: organizing everything visible on screen Pin
trønderen8-Aug-22 8:28
Membertrønderen8-Aug-22 8:28 
GeneralRe: organizing everything visible on screen Pin
trønderen8-Aug-22 8:10
Membertrønderen8-Aug-22 8:10 
GeneralRe: organizing everything visible on screen Pin
Mohsin Ali Shah 202222-Aug-22 3:48
MemberMohsin Ali Shah 202222-Aug-22 3:48 
AnswerRe: organizing everything visible on screen Pin
Member 150787168-Aug-22 16:17
MemberMember 150787168-Aug-22 16:17 
Going by your question, "My question is how do you keep it all organized?":


Organization should start with what is most important.

Then to what is next important.

And so on.

That is it. All that answers your question about organization.



For this to work:

Make each of these work. Include error checking to each before moving to the next. Test them each before moving on to the next.

Use switch or if then or whatever code is easiest for you (your personal self) to use and follow later.

It is not so complicated. Just do as I said, one at a time. Take your time. Do not get into a hurry. Do not take short-cuts. Make *your* code readable to *you*.

If you write most of it with simple if-then-else and if that is most comfortable to you, then that is how it should be coded.

Thank you for asking.



Here is an example.

If you have a character moving in a scene with walls and background, then this all has to be rendered to some output.

Remember this is just an example.

First create or load or put together the background.

Then effects to the background, like lightning or explosions.

Then the walls.

Then effects to the walls like splatter eminating from bullet hits etc.

Then the stationary items in the space like blocks or resources etc. which are upstaging the character.

Then effects to those stationary items.

Then movable items or characters that are upstaging the character.

Then effects to those particular movable items.

Then the character.

Then effects to that particular character.

Then do similar to that which is down stage of the character.

Upstage is further away from you than the character. Downstage is closer to you than the character.


Now that I have answered your question as it was asked, I feel like I might now get into other things. The following might be tangental to the question, but I at least answered the question first.




If you are doing this in Microsoft Windows and if you are blitting the images (still or virtually moving), then you might want to use 2 or three or many more buffers, blitting to each buffer as you go from the furtherest away from you to the buffer that is closest to you. Put all of these together and blit to the screen buffer. Then put the screen buffer to the screen.

If you have 5 buffers and the background is buffer_5 then when you have buffer_4 complete, add buffer_4 to buffer_5 and save it as buffer_4. This can be done by starting buffer_4 as a solid color (example RGB 255,0,0 which is Red) and bit block transfering images to it that are like custom cutouts pasted to construction paper. Then blitt that buffer_4 onto bufer_5 with the red area being transparent and save this as buffer_5. Do this until you get to buffer_1 and then blitt that to the screen buffer.

Do not compost to the screen buffer. Just blit a completed buffer to it.

Hope that helps.



Just an example.
QuestionSecuring oAuth Client Id and Secret Pin
Kevin Marois27-Jun-22 7:29
professionalKevin Marois27-Jun-22 7:29 
Questioncode organisation Pin
Calin Cali31-Jan-22 7:36
MemberCalin Cali31-Jan-22 7:36 
AnswerRe: code organisation Pin
Bohdan Stupak4-Feb-22 4:05
professionalBohdan Stupak4-Feb-22 4:05 
AnswerRe: code organisation Pin
Richard MacCutchan4-Feb-22 4:56
mveRichard MacCutchan4-Feb-22 4:56 
GeneralRe: code organisation Pin
Calin Cali4-Feb-22 8:48
MemberCalin Cali4-Feb-22 8:48 
GeneralRe: code organisation Pin
jschell17-Feb-22 11:12
Memberjschell17-Feb-22 11:12 
GeneralRe: code organisation Pin
Calin Cali19-Feb-22 1:39
MemberCalin Cali19-Feb-22 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.