Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Journal
 Post Posted: June 18th, 2017, 6:42 am 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 170
oh, the image is too wide

edit: got it to work! Will add other images now too
edit 2: Why is there a delete button next to this message, but not next to others?


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: June 18th, 2017, 9:41 am 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2850
Location: Oklahoma, United States
Once your post has be superceded by other posts, you can't delete them. Admin and moderators can though.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: June 24th, 2017, 7:13 am 
 

Joined: April 13th, 2017, 8:35 pm
Posts: 38
Salta looks cool mate. You could make doodle jump out of that.


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: June 24th, 2017, 4:42 pm 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 170
Thanks! I've been working on Simon Says a bit more. Im having a lot of problems with timing and a lot of errors too. Frustrated.


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: July 2nd, 2017, 6:47 am 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 170
I got the timing to work. The only problem now is that it won't take input. I'll try different types of input, but I think it's another logic error because I'm a derp :P.


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: July 8th, 2017, 7:13 am 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3492
Location: Japan
Did you end up fixing to work with state variables across frames, or are you still doing timing loops within a single frame? :D

_________________
Chili


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: July 8th, 2017, 6:34 pm 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 170
I'm currently using the former, the latter didnt work well and made the program unresponsive.
Do you mean boolean values by state variables?


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: July 8th, 2017, 6:41 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2850
Location: Oklahoma, United States
booleans are but one way to handle state, and depending on how defined a state is, a switch statement using enums would be a better fit, at least at the level you are at. You can also make state classes, where each defined state is it's own class.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: July 9th, 2017, 8:16 am 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 170
I haven't actually had enums yet as far as I know, atleast Im not that far yet in the tutorial. Enums do seem like the perfect way for handling the different squares, thanks for the answer :D


Top 
 Profile  
Reply with quote  
 Post subject: Re: Journal
 Post Posted: July 11th, 2017, 3:22 am 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3492
Location: Japan
Yup, enums are the right fit. If there are only 2 possible states I often go for bool. You can also make a custom class or a class heirarchy for your states, and that will allow to do you some cool bullshit, but usually it's gonna be unwarranted overkill that will just make your code worse overall by overcomplicating it.

Just don't make your states int and we're cool (float is fine though :kappa:)

_________________
Chili


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2, 3  Next

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: