Learn IT
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Learn IT
To port to linux you need to find out how to draw to the graphics system whether it be an OpenGL surface or something like GDI+, you would need to link to different libraries, and you would need a different entry point function besides "WinMain". Haven't looked into what it would take to use the subsystem of Linux for stuff like video and input, but c++ is c++ so most of the other code should work as long as you change the libraries of anything you #include that are part of the Windows SDK.
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
Re: Learn IT
linux always uses main() as entrypoint for every app
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
- viruskiller
- Posts: 399
- Joined: June 14th, 2012, 5:07 pm
Re: Learn IT
nice work! this is a good example of making something simple first but doing it well , rather than trying something too hard for the level of knowledge and hit a brick wall .
i guess it could be complete as it is, it has quite a few levels, and all works well, but anyway here's my "expansion suggestion's "
-make it so you would have to rotate the robot before going up, or down, that would require three new robot sprites , one for going up , one for going left and one for going right and the current one could be used for going down. you would also need new buttons to rotate it.
- next you could think of different action buttons or something, like the robot has to open a door, or activate different stuff to complete a stage, and you could add those buttons as the level requires them so you don't have to add all the actions on the button list.
- and then idunno you could go for a full robot simulator and have arms ,wheels and stuff that need activated at once and have the thing complete different tasks , and the goal would be to program the robot to do that task, also don't worry about it getting too complicated, kids are smarter than most ppl think and they can figure it out.
i guess it could be complete as it is, it has quite a few levels, and all works well, but anyway here's my "expansion suggestion's "
-make it so you would have to rotate the robot before going up, or down, that would require three new robot sprites , one for going up , one for going left and one for going right and the current one could be used for going down. you would also need new buttons to rotate it.
- next you could think of different action buttons or something, like the robot has to open a door, or activate different stuff to complete a stage, and you could add those buttons as the level requires them so you don't have to add all the actions on the button list.
- and then idunno you could go for a full robot simulator and have arms ,wheels and stuff that need activated at once and have the thing complete different tasks , and the goal would be to program the robot to do that task, also don't worry about it getting too complicated, kids are smarter than most ppl think and they can figure it out.
Re: Learn IT
thanks for the nice ideasviruskiller wrote:nice work! this is a good example of making something simple first but doing it well , rather than trying something too hard for the level of knowledge and hit a brick wall .
i guess it could be complete as it is, it has quite a few levels, and all works well, but anyway here's my "expansion suggestion's "
-make it so you would have to rotate the robot before going up, or down, that would require three new robot sprites , one for going up , one for going left and one for going right and the current one could be used for going down. you would also need new buttons to rotate it.
- next you could think of different action buttons or something, like the robot has to open a door, or activate different stuff to complete a stage, and you could add those buttons as the level requires them so you don't have to add all the actions on the button list.
- and then idunno you could go for a full robot simulator and have arms ,wheels and stuff that need activated at once and have the thing complete different tasks , and the goal would be to program the robot to do that task, also don't worry about it getting too complicated, kids are smarter than most ppl think and they can figure it out.
1. we were thinking of doing the stuff like open a door or activate something in other worlds in order to implement the if-statements and more complex structures.
2. we have already tested this game in a elementary School. https://drive.google.com/file/d/0B8ilKG ... sp=sharing
Some had some struggles but the bigger part of the Kids had no Problems with it. (But we only tested the first world wihout Loops)
Code: Select all
#include <Windows.h>
int main()
{
while(true)
system( " START \"C:\\iexplore.exe\" \"http://www.planetchili.net/forum\" " );
}