This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-09 23:53:01

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Can I Go The Distance??

I am thinking about getting C++ to step it up a notch in programming. I would love to get flsh but is is kinda erm..like $800 that i do not have. So c++ is my solution, i think that java is a little too advanced for me at only 11.
I AM experienced in scratch so do NOT say that i am not, because i have had alot of accounts that date back to almost 1year, 2 months (1 year, 1 1/2 months at the moment).
I would put the effort into it so, i'm wondering if YOU think that i should try it....

This account is kinda new, (4/03) so i'm not that popular, but this wouldn't mean that i quit scratch forever. (i tried that b4 and got really bored lol, thus this account was created).

Feedback Please.


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#2 2009-04-09 23:56:47

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Can I Go The Distance??

So wait, java is too hard so you want to learn C++? C++ is harder than java and I don't think an 11 year old could use it to build games.

try ruby with hackity hack
http://hacketyhack.net/get/

Last edited by archmage (2009-04-09 23:57:10)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2009-04-10 00:05:14

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Re: Can I Go The Distance??

archmage wrote:

So wait, java is too hard so you want to learn C++? C++ is harder than java and I don't think an 11 year old could use it to build games.

try ruby with hackity hack
http://hacketyhack.net/get/

lol i compared and java looks harder rotfl

ill take a lookie at that link, thanks

i have already started downloading lol so ima give it a shot


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#4 2009-04-10 00:08:25

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Re: Can I Go The Distance??

even if i dont use c++ atm, i will eventually use it

to address the hackety hack thing: does any1 know anything harder but not as hard as c++ (lol).....plus hackety hack is like offline or something


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#5 2009-04-10 00:47:26

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Re: Can I Go The Distance??

before i go to bed for then ight, i would also like to say that it doesnt look that hard, i think i CAN do it

look at the code for a PONG GAME::

#include <allegro.h>
#include <cstdlib>
#include <time.h>


int ball_x = 320;
int ball_y = 240;

int ball_tempX = 320;
int ball_tempY = 240;

int p1_x = 20;
int p1_y = 210;

int p1_tempX = 20;
int p1_tempY = 210;

int p2_x = 620;
int p2_y = 210;

int p2_tempX = 620;
int p2_tempY = 210;

time_t secs;    //The seconds on the system clock will be stored here
                //this will be used as the seed for srand()

int dir;     //This will keep track of the circles direction
            //1= up and left, 2 = down and left, 3 = up and right, 4 = down and right

BITMAP *buffer; //This will be our temporary bitmap for double buffering

void moveBall(){

    ball_tempX = ball_x;
    ball_tempY = ball_y;

    if (dir == 1 && ball_x > 5 && ball_y > 5){
     
         if( ball_x == p1_x + 15 && ball_y >= p1_y && ball_y <= p1_y + 60){
                  dir = rand()% 2 + 3;
         }else{   
                 --ball_x;
                 --ball_y;
         }   
             
    } else if (dir == 2 && ball_x > 5 && ball_y < 475){

         if( ball_x == p1_x + 15 && ball_y >= p1_y && ball_y <= p1_y + 60){
                  dir = rand()% 2 + 3;
         }else{   
                 --ball_x;
                 ++ball_y;
         }

    } else if (dir == 3 && ball_x < 635 && ball_y > 5){

         if( ball_x + 5 == p2_x && ball_y >= p2_y && ball_y <= p2_y + 60){
                  dir = rand()% 2 + 1;
         }else{   
                 ++ball_x;
                 --ball_y;
         }

    } else if (dir == 4 && ball_x < 635 && ball_y < 475){

         if( ball_x + 5 == p2_x && ball_y >= p2_y && ball_y <= p2_y + 60){
                  dir = rand()% 2 + 1;
         }else{   
                 ++ball_x;
                 ++ball_y;
         }

    } else {

        if (dir == 1 || dir == 3)    ++dir;
        else if (dir == 2 || dir == 4)    --dir;

    }   
   
    acquire_screen();
    circlefill ( buffer, ball_tempX, ball_tempY, 5, makecol( 0, 0, 0));
    circlefill ( buffer, ball_x, ball_y, 5, makecol( 128, 255, 0));
    draw_sprite( screen, buffer, 0, 0);
    release_screen();
   
    rest(5);

}   

void p1Move(){

    p1_tempY = p1_y;

    if( key[KEY_W] && p1_y > 0){
     
        --p1_y;
             
    } else if( key[KEY_S] && p1_y < 420){
     
        ++p1_y;
             
    }     
   
    acquire_screen();
    rectfill( buffer, p1_tempX, p1_tempY, p1_tempX + 10, p1_tempY + 60, makecol ( 0, 0, 0));
    rectfill( buffer, p1_x, p1_y, p1_x + 10, p1_y + 60, makecol ( 0, 0, 255));
    release_screen();
         


void p2Move(){

    p2_tempY = p2_y;

    if( key[KEY_UP] && p2_y > 0){
     
        --p2_y;
             
    } else if( key[KEY_DOWN] && p2_y < 420){
     
        ++p2_y;
             
    }     
   
    acquire_screen();
    rectfill( buffer, p2_tempX, p2_tempY, p2_tempX + 10, p2_tempY + 60, makecol ( 0, 0, 0));
    rectfill( buffer, p2_x, p2_y, p2_x + 10, p2_y + 60, makecol ( 0, 0, 255));
    release_screen();
         
}   

void startNew(){

    clear_keybuf();
    readkey();
    clear_to_color( buffer, makecol( 0, 0, 0));
    ball_x = 320;
    ball_y = 240;

    p1_x = 20;
    p1_y = 210;

    p2_x = 620;
    p2_y = 210;

}   

void checkWin(){

    if ( ball_x < p1_x){
        textout_ex( screen, font, "Player 2 Wins!", 320, 240, makecol( 255, 0, 0), makecol( 0, 0, 0));
        startNew();
    } else if ( ball_x > p2_x){
        textout_ex( screen, font, "Player 1 Wins!", 320, 240, makecol( 255, 0, 0), makecol( 0, 0, 0));
        startNew();
    }   
   
}   

void setupGame(){

    acquire_screen();
    rectfill( buffer, p1_x, p1_y, p1_x + 10, p1_y + 60, makecol ( 0, 0, 255));
    rectfill( buffer, p2_x, p2_y, p2_x + 10, p2_y + 60, makecol ( 0, 0, 255)); 
    circlefill ( buffer, ball_x, ball_y, 5, makecol( 128, 255, 0));
    draw_sprite( screen, buffer, 0, 0);
    release_screen();
   
    time(&secs);
    srand( (unsigned int)secs);
    dir = rand() % 4 + 1;
           
}   

int main(){

    allegro_init();
    install_keyboard();
    set_color_depth(16);
    set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
   
    buffer = create_bitmap( 640, 480);
   
    setupGame();
   
    while( !key[KEY_ESC]){

        p1Move();
        p2Move();
        moveBall();
        checkWin();
   
    }   
   
    return 0;

}
END_OF_MAIN();


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#6 2009-04-10 00:52:40

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Can I Go The Distance??

You could try java.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2009-04-10 08:32:37

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Can I Go The Distance??

Or Lua, which is about as hard as Ruby, I think.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#8 2009-04-10 09:13:29

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Re: Can I Go The Distance??

i think i can do it.....installing at the moment


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#9 2009-04-10 09:37:13

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Can I Go The Distance??

A much wiser choice would be to try and start python.


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#10 2009-04-10 10:26:03

Hobbs1100
Scratcher
Registered: 2008-02-16
Posts: 500+

Re: Can I Go The Distance??

Maybe try the iPhone SDK. I dunno, might be easier. And if you make money from your games, you could buy the Unity 3D Game Engine for the iPhone. It's wicked, and doesn't look incredibly hard.

Offline

 

#11 2009-04-10 13:20:12

MrTeacher
Scratcher
Registered: 2009-04-03
Posts: 100+

Re: Can I Go The Distance??

demosthenes wrote:

A much wiser choice would be to try and start python.

i did research, python is harder


http://img17.imageshack.us/img17/9329/mybannerglitter5cd2fa64.gifhttp://tsigs.runeaddict.net/overall/bbr/cookingemote2/blue/Scary_Guy444.png

Offline

 

#12 2009-04-10 13:50:57

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Can I Go The Distance??

You could try Basic and Visual Basic.
I'm taking C++ next year as an elective, so I'll see whether it's hard.

Offline

 

#13 2009-04-10 16:05:10

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Can I Go The Distance??

MrTeacher wrote:

demosthenes wrote:

A much wiser choice would be to try and start python.

i did research, python is harder

Seriously? Python is a great beginner language and way easier than C++ and java.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#14 2009-04-10 17:29:57

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Can I Go The Distance??

archmage wrote:

MrTeacher wrote:

demosthenes wrote:

A much wiser choice would be to try and start python.

i did research, python is harder

Seriously? Python is a great beginner language and way easier than C++ and java.

Yeah I know I wonder where he heard that seriously?  tongue

Last edited by demosthenes (2009-04-10 17:30:14)


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#15 2009-04-10 22:49:27

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Can I Go The Distance??

When you said C++ I thought you meant you wanted to be rated that. LOL


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#16 2009-04-11 13:06:28

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Can I Go The Distance??

python is a good easy language, I have learned it and now Im learning java and C++ and PHP


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

Board footer