TimSarbin

Members
  • Content count

    43
  • Joined

  • Last visited

Community Reputation

173 Neutral

About TimSarbin

  • Rank
    Member
  1. Harvest moon / rune factory style roguelike

        More progress  We've also got a website now at http://www.harvestrogue.com/
  2. I came up with the idea to do a harvest moon / rune factory style roguelike. It's in early development, but I've already had a ton of interest and a few contributors right off the bat. If you'd like to help or want to test, check out the github page at https://github.com/essial/harvest-rogue. Currently, it builds on mac and linux pretty easily. Windows builds will come next week unless someone decides to port it earlier. I'm trying to get as much feedback as early as possible to help ensurue the game is fun by the time it is completed. We also have a chat room at https://gitter.im/essial/harvest-rogue as well.   It's written in such a way that a graphical front-end can be built on top as well, as I plan on adding that to do proper windows support in the next week or two after more actual gameplay logic is done.    
  3. What's the point of GitHub?

    I'm thinking about working on a game project, and at first I thought about creating a github repo, but I know that these things never get contributors until something is completely usable (unless you get extremely lucky). So instead, I searched around github and found 5 other projects doing something similar. I contacted each of the repos (via the issues tab as there are no other easy ways to communicate on that site), and either got "oh we're just playing around" or no response at all.   Is there really even a point to putting something on GitHub? It seems only 1% of the projects actually gain traction, the other 99% are simply giving away free code with zero contributions.
  4. C++ without pointers

    New question as I'm trying to use the new pointer features...   if I have in my class: std::shared_ptr<Scene> CurrentScene; std::shared_ptr<Scene> NextScene;   and a function like so: void SetNextScene(std::shared_ptr<Scene> nextScene) {    NextScene = nextScene; }   void Update() {    if (NextScene != null) {       CurrentScene->Finalize();       NextScene = CurrentScene;       CurrentScene = NULL;    } }   I set the scene like this: sceneManager->SetNextScene(SceneMainMenu::Create(settings));   Is this a proper way to 'flip' pointers?
  5. C++ without pointers

    Yeah, I've done a lot of C so malloc/realloc/free is more natural to me than new/delete, and other C++y things. I also use C# a lot, which has GC, which is a very different beast. C++ feels like a weird middle of the road, not quiet C#, not quite C. I do realize references are pointers, as the only things that actually exist are 64 bit values (or smaller depending on the architecture). You can't actually represent "MyClass" as anything more than a pointer to a block of memory that contains atomic values (int/byte/etc) or pointers (struct/class/etc) as far as passing goes -- it just pushes a pointer to the object onto the stack before calling the method.   So I'll read up on smart pointers, but honestly at this point I might as well just stick with new/delete as it is closer to malloc/free that I'm used to.   Thanks guys!   [Edit] Yup I switch to standard pointers where it makes sense. I'll use visual leak detector and keep an eye out on things!
  6. C++ without pointers

    I get C and pointers very well. But I'm trying to use C++ ~without~ standard pointers. It's working for the most part, but now I'm running into an issue: // MyInterface &something = MyDummyBase(); is defined in the header as a private member void MyClass::SetSomething(MyInterface &newSomething) {    something = newSomething; } MyInterface &MyClass::GetSomething() {   return something; } Now here's where it gets weird, from the caller:   1. myClassObj.SetSomething(AnotherClass()); 2. MyInterface &Value = myClassObj.GetSomething();   At line 1, it calls the constructor of AnotherClass (as expected), sets something to AnotherClass (again, as expected), then calls the destructor of AnotherClass (not expected)   At line 2, it returns MyDummyBase instead. There are no lines inbetween.   All I can think, is that it considers AnotherClass() out of scope now, and destroys it. But what confuses me is, how does it know to revert back to MyDummyBase? I'm trying to do the equiv of .SetSomething(new AnotherClass()), but without raw pointers.   I'm assuming I have to explicitly declare AnotherClass outside of the method, and use it directly in the SetSomething method, but what happened with this logic confounds me.   Any ideas?   [Edit] Nevermind... it's not a pointer, so it can only be set in the constructor. Dur...
  7. For Those of You Who Have Children

    Both me and my wife are huge computer nerds. We have a 6 year old who is also on computers a lot. We spend a lot of time together, digitally, but also go on hikes and such every other weekend to get some 'fresh air'. As far as small children go, get good at multi-tasking. When mine was a baby, I would rapidly switch between coding and the baby (typically laying on my lap at my desk). Obviously I would take breaks to give the baby full-on attention, but when they are an infant, pretty much all they want to do is eat, sleep, cry, and poop anyway, and the skin-to-skin contact is tons better, IMO, then just putting them in a swing all day. The plus of this is, instead of arguing over who had the baby, it was arguing over me having the baby too much!   Also, play trance while coding, you can bounce him to the beat of the music, they love that :p   When they get a bit older and want to 'help', just give them their own mini keyboard that's not plugged in, it's super cute how they get excited when they 'help' you and get excited :D
  8. SSD for programming?

    What I've done is purchased a 256GB SSD, installed all my main apps on it, but set my downloads, projects folder, steam game folder, etc to a 1TB spinny drive. Everything runs stupid fast. Having said that, windows writes tons of temp files all the time, and SSD drives are pretty smart about file placement on the physical media.   If you want to be extra paranoid, however, just have a massive spinny drive and run your projects from there.
  9. Decided to really sit down and learn node.js tonight. After 2 1/2 hours of playing with it, I was able to fully implement an MVC stack from scratch, including a razor-like view engine (thanks to the vash library and 2 lines of code) and display templates. Node.js is awesome!
  10. Doing a 24-hour gaming marathon.

    Well I think I have all my stuff in place. I'm going to do some final warmups before doing a small early sleep. I'm planning on running it from 8pm EST till at least 2pm the next day, but hopefully 8pm depending on how well it goes to that point :) It's going to be Essial on twitch. Hopefully I'll get some help and so that there isn't too much Fun early on.
  11. Doing a 24-hour gaming marathon.

      Thanks, now I'm not so worried. I think my best bet is to get some in-place jogging and running in during my short per-hour breaks. With DF I can typically leave it running anyway as it'l pause on a major event. Going to be hard to lay off the caffeine though, I may mix it up with some water. And for food I'm just going to make some turkey sandwiches and some goldfish :)   With so much media sensationalism it's hard to separate fact from news sometimes.
  12. Doing a 24-hour gaming marathon.

    So for the first time in well over a year I'm a free man all weekend long with no kids and wife in the house. Since I work 4 10s this also means I have a full 3 day weekend. Incidentally, I've grown increasing active in streaming my Dwarf Fortress hobby (yes I run stonesense in the stream so mortals can understand what i'm doing). So I decided a while back that this will be the weekend I attempt a 24-hour dwarf fortress gaming marathon on Twitch. Being the computer nerd/researcher I am, I decided to read around and realized there's actually some pretty serious health concerns involved with this. The biggest thing I've read is that I should take a 10 minute break every hour to keep my heart/veins from imploding. Is there any suggestions for food/snacks/drinks that will help reduce the chance of dying while doing this?   I originally planned on getting a few 5 hour energy drinks, but I think instead a 6-pack of Gatorade and water may be a better choice.    
  13. Direct2D Image Rendering

      Totally unrelated to Direct2D, but it helped me find what I was really looking for: http://msdn.microsoft.com/en-us/library/windows/desktop/hh973240(v=vs.85).aspx   So thanks :D
  14. Finally got my computer hooked up at the new place.. Been moving heavy boxes for 13 hours and I just wanna sleep -_-
  15. I've gotten a grasp on initializing and using Direct2D for the most part. But for some strange reason (perhaps due to lack of knowing what it's called to find it in the msdn documentation), I cannot for the life of me figure out how to render images simi-transparently. I can get PNG images to render with their alpha channels honored, but I need to also be able to fade in or out images as well. Also on a (hopefully) related topic, is there a simple way to render a specific image with additive blending?   For the record I render images using the DrawBitmap() method of an ID2D1HwndRenderTarget with an ID2D1Bitmap passed in. C++ is the language of course.