Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "starcraft"
-
If you need to learn/teach object orientation, these are my approaches (I hate that classic "car" example):
1) Keep in mind games like Warcraft, Starcraft, Civilization, Age of Empires (yes, I am old school). They are a good example of having classes to use, instantiating objects (creatures) and putting them to work together. As in a real system.
2) Think of your program as an office that has a job to do, or a factory that has something to deliver. Classes are the roles/jobs and objects are the workers/employees. They don't need to be complex, but their purpose must be really (really, really) well defined. Just like in a real office / factory.
3) Even better (or crazier), see your classes and objects as real beings, digital creatures in a abstract world, and yourself as a kind of god, who creates species (define classes) with wisdom. Give life when it is the time for them to come into the world (instantiate object) and kill them when they are done with their mission (dispose an object). Give them behavior, logic, conditions to work with, situations where they take action, and when they don't. Make them kinda "smart". Build them able to make decisions and take actions based on conditions. Give them life. Think on your program as an ecossystem. There must be balance, connection, species must be well defined and creatures must work together to achieve a common objective. Don't just throw code and pray for it to run. Plan it.
-----
When I talk about my classes like they are real beings, and programs as mini-worlds, some people say I am crazy, some others say that's passion.
It is both! @__@3 -
Found this at my grandmothers house... Check out caption "compete free on the internet" and for Windows 955
-
I love open source and all that fun stuff but I am very unimpressed by having to use GNU/Linux based OS after the last fuck up... the lack of games, stuff that actually works, the almost constant need to compile something and the need to have DDG open at all times because something broke. I mean why the fuck do I need to install libcurl3:i386(for 32 bit programs and games) if there is already libcurl4 and why the actual fuck does it conflict?!... Why the fuck do I need to glue together and compile drivers for my printer?! And they only have "beta support" so like half of the functions that the printer would normally have... Why the fuck don't any games work? Witcher 2? Nope, you click launch and the launcher just closes itself. osu!lazor? Nope, the game will run but only as a process in the background, no window will open no matter what I do. StarCraft: Brood War? Nope, Wine hates the battle.net client and running it in a VM is a really bad idea, the game flickers like crazy... Any other games? Pretty much out of luck... I would really like to play KCD but I doubt it would be playable...rant wine compile all the things glue together your own printer driver open source stuff breaks ubuntu os duckduckgo vm gnu/linux games24
-
Is there a better way to run SC:BW on Ubuntu bionic than VirtualBox with the free IE11-Win7 image?
The game keeps flickering and it's quite annoying...(using the experimental Direct3D from VBox extensions)
(Note: Wine craps itself when battle.net client tries to run so that's not an option)1 -
what on earth do games like starcraft II do that even on more modern hardware their 'game modes' take awhile to initialize ?
why is the data not already organized for fast load ?11