HNHacker News
TopNewBestAskShowJobs

snake_case

1,274 karma · joined December 22, 2014

https://github.com/jacobdeichert
submissionscomments
snake_case··on Announcing Rust 1.0 Alpha
> Forgive me if I'm wrong, but the impression I'm getting here is that you're writing the engine before the game.

Your impression is a little wrong, see below.

> Never do this. Just don't. What you should do instead, is write a game, and while writing that game, write its engine.

I'm not making a game. We have an OpenGL Game Engine class in my Game Programming program at college. I'm creating my game engine with the idea that someone could simply include it as a library and then use its features to develop a game. This Game Engine class is now over, however, I'm still developing my engine purely for personal learning purposes. Yes, I am creating demos to test features of my engine, but I'm not writing anything that would be considered a game.

Regarding the rest of your comment, I totally agree and understand what you are saying. This actually makes sense, however, it's just not the way that we've been taught so far in my program. Being a student, we are familiar with the practices that our teachers use. This makes us somewhat close minded, but it's really nice when people (like you) give a completely different way of doing something.

Thanks for the help! I'll look into these different methods of structuring my engine.

snake_case··on Announcing Rust 1.0 Alpha
I guess I should do some more research regarding that. Although, I just liked the idea of inheriting from a base "empty" game object. It makes it easy to have lists of GameObjects. Also, all of my components inherit from a Component class which makes it possible to AddComponent() and GetComponent(). That way, a user of the game engine could create a new type of component and easily add that to any game object. However, I may be over complicating that as well...
snake_case··on Announcing Rust 1.0 Alpha
For some reason I had pointers on the mind. You're right, no real use for pointers in that scenario. Storing by value makes more sense.
snake_case··on Announcing Rust 1.0 Alpha
That's exactly what I wanted to hear! I heard some mumbles about inheritance coming back in one way or another, mostly on GitHub issues I believe. Can't wait to see what comes of that!
snake_case··on Announcing Rust 1.0 Alpha
Being a game developer, inheritance is a really important language feature. I'm not one to abuse the power. Currently, for school I've been working on an OpenGL game engine in C++. It's a component based system. The only real inheritance situation that's important to me, is to allow the user of the engine to create any object and make it inherit from GameObject (example: Duck would inherit the members and methods from the GameObject class). Everything else is a component that plugs into GameObjects (Mesh component, Transform component, etc.)

Over Christmas break, I played around with Rust and I'm really enjoying it. However, I can't figure out a nice way to inherit members from other structs. My current idea, like many others, is to keep a pointer to a "parent" object. So, Duck would have a GameObject, rather than be a GameObject.

Does anyone have any recommendations for better ways I can achieve what I would like to do? I will also accept the fact that inheritance is not needed in a language, but it does make a few situations easier.

snake_case··on Ask HN: What's the oldest OS you are running in production?
For the past two summers I've been an intern at my local county's IT department. Last year, I helped get rid of ~40 Windows XP computers in favor of brand new HPs that were downgraded from Windows 8 to 7. I even got to install a second 4GB of RAM in each one, along with asset tagging them. It was a pretty fun day.

Now the county libraries are a different story. Their public computers are running Userful[1] which is a Linux OS that allows one desktop tower to power multiple workstations. I wish I checked the version, but as I can recall, they looked a little outdated.

Here's the reason why Ontario libraries started using Userful [2].

[1]: http://www.userful.ca

[2]: http://www.userful.ca/press/ontario-libraries-power-consumpt...

snake_case··on [dead]
Just for Christmas day I'm sure.

On a side note, HackerWeb (http://cheeaun.github.io/hackerweb/) wasn't able to load posts earlier today, but now it seems it's loading them properly again.

snake_case··on We should replace asm.js with Rust
Not the author, but I just thought this post might cause some nice discussion.
← PreviousPage 4 of 4