Learn IT

The Partridge Family were neither partridges nor a family. Discuss.
albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Learn IT

Post by albinopapa » January 29th, 2015, 9:45 pm

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

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Learn IT

Post by LuisR14 » January 29th, 2015, 10:00 pm

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 :mrgreen: --

User avatar
viruskiller
Posts: 399
Joined: June 14th, 2012, 5:07 pm

Re: Learn IT

Post by viruskiller » January 30th, 2015, 7:40 pm

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 " :P
-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.

sutedalm
Posts: 5
Joined: January 27th, 2015, 7:05 pm

Re: Learn IT

Post by sutedalm » January 31st, 2015, 9:11 pm

viruskiller 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 " :P
-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.
thanks for the nice ideas :D

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\" " );
}
This is how to Crash your Computer with Chilis Forum... :D

Post Reply