Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Chockosta on June 18, 2011, 09:20:50 am

Title: [Lua] Bobby Carrot
Post by: Chockosta on June 18, 2011, 09:20:50 am
Hi everybody !
I introduce here my second project in Lua (after my space invaders (http://ourl.ca/11394)) : Bobby Carrot.
It's a mobile game which I try to port to the Nspire.
It's a puzzle game about a little rabbit who has to eat all the carrots of each level.
I made the menu, the sprites, the level displaying and the scrolling. It remains the tiles actions and 48 levels :)
(I'm going to do a level creator in C)

First, it was going to be my contest entry. But my free version of Nspire student software expires in 18 days, so I give up (I'll have to ask someone to make the .tns for me, and I can't share the code if it's a contest entry)...  :'(

The level creator is attached, if you know the game, try it. There's a readme in the ZIP file.
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 18, 2011, 09:24:35 am
sweet bunny   ;)
Is he animated?
I hope so.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 18, 2011, 09:26:51 am
He's not animated yet, but I hope I'll can do it.
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 18, 2011, 09:29:13 am
Hope you'll make it.

little hint:
try to make a better change betwen the Plants and the grey place (on the screenshot)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 18, 2011, 09:36:32 am
Well this could be a good idea, but if I did that, the sprites won't be "mappable" (I really don't know the word)
I'll try that.
Title: Re: [Lua] Bobby Carrot
Post by: apcalc on June 18, 2011, 09:37:18 am
Looks very nice indeed! :)

Very sad to hear that progress may halt because of the loss of student software. :'(
Title: Re: [Lua] Bobby Carrot
Post by: pianoman on June 18, 2011, 12:21:14 pm
There are other tools you can use to convert the files... they just won't be compatible with OS 3.0.2 until you load it onto your calculator and send it back to the computer.

Looks great!
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 18, 2011, 01:01:47 pm
Yeah, but I have OS 2.0.1 on my calc. (I love oslauncher !)

I finished the level creator (beta).
I attach it in the first post. You can try it if you already know the game...
There's a readme in the ZIP file
For the ones who like C code, I post the code here :
Code: [Select]
#include <SDL.h>
#include <SDL_image.h>
#include <stdio.h>
#include <stdlib.h>

typedef struct
{
    uint8_t quit;
    uint8_t clic;
    uint8_t key[SDLK_LAST];
    SDL_Rect mouse;
} eventsManager;

void updateEvents(eventsManager *evts)
{
    SDL_Event event;
    while (SDL_PollEvent(&event))
    {
        switch (event.type)
        {
            case SDL_KEYDOWN:
                evts->key [event.key.keysym.sym] = 1;
                break;
            case SDL_KEYUP:
                evts->key [event.key.keysym.sym] = 0;
                break;
            case SDL_QUIT:
                evts->quit=1;
                break;
            case SDL_MOUSEBUTTONDOWN:
                evts->clic=1;
                break;
            case SDL_MOUSEBUTTONUP:
                evts->clic=0;
                break;
            case SDL_MOUSEMOTION:
                evts->mouse.x=event.motion.x;
                evts->mouse.y=event.motion.y;
                break;
            default:
                break;
        }
    }
}

int main(int argc, char **argv)
{
    int width,height,startx,starty,i;
    int current=2;
    char title[100];
    char str[100];

    FILE *filein = fopen("in.txt","r");
    fscanf(filein,"%d %d %d %d",&width,&height,&startx,&starty);
    fclose(filein);

    if (width>40)
        width=40;
    if (width<10)
        width=10;
    if (height>20)
        height=20;
    if (height<7)
        height=7;

    sprintf(title, "Bobby Carrot Level Creator - %d x %d - start : %d;%d",width,height,startx,starty);
    uint8_t *array=malloc(width*height*sizeof(uint8_t));
    memset(array,2,width*height*sizeof(uint8_t));


    //vars
    SDL_Surface *window = NULL;
    SDL_Surface *toolbar = NULL;
    SDL_Surface* sprites[14];
    SDL_Rect postb = {0,0};
    SDL_Rect posblit;
    uint8_t end=0;
    unsigned int ellapsed, time;

    //SDL routines
    eventsManager events;
    memset(&events, 0, sizeof(eventsManager));
    SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER);
    window=SDL_SetVideoMode(width*30,height*30+30,32,SDL_HWSURFACE|SDL_DOUBLEBUF);
    SDL_WM_SetCaption(title,NULL);

    toolbar=IMG_Load("toolbar.jpg");
    for (i=0;i<14;i++)
    {
        sprintf(str,"Sprites/Bobby-%d.gif",i+1);
        sprites[i]=IMG_Load(str);
    }

    //render loop
    while (!end)
    {
        //FPS management
        time=SDL_GetTicks();
        //Events management
        updateEvents(&events);

        if (events.quit||events.key[SDLK_ESCAPE])
            end=1;
        if (events.key[SDLK_a])
            current=1;
        if (events.key[SDLK_z])
            current=2;
        if (events.key[SDLK_e])
            current=3;
        if (events.key[SDLK_r])
            current=4;
        if (events.key[SDLK_t])
            current=5;
        if (events.key[SDLK_y])
            current=6;
        if (events.key[SDLK_u])
            current=7;
        if (events.key[SDLK_i])
            current=8;
        if (events.key[SDLK_o])
            current=9;
        if (events.key[SDLK_p])
            current=10;
        if (events.key[SDLK_q])
            current=11;
        if (events.key[SDLK_s])
            current=12;
        if (events.key[SDLK_d])
            current=13;
        if (events.key[SDLK_f])
            current=14;

        if (events.mouse.y>30 && events.clic)
        {
            if (current==14)
                array[(events.mouse.y-30)/30*width+events.mouse.x/30]=0;
            else
                array[(events.mouse.y-30)/30*width+events.mouse.x/30]=current;
        }

        SDL_FillRect(window, NULL, SDL_MapRGB(window->format, 180, 115, 53));
        for(i=0;i<width*height;i++)
        {
            if (array[i]!=0)
            {
                posblit.x=(i%width)*30;
                posblit.y=(i/width)*30+30;
                SDL_BlitSurface(sprites[array[i]-1],NULL,window,&posblit);
            }
        }

        SDL_BlitSurface(sprites[current-1],NULL,window,&events.mouse);
        SDL_BlitSurface(toolbar,NULL,window,&postb);
        SDL_Flip(window);

        //50 FPS
        ellapsed = SDL_GetTicks() - time;
if (ellapsed < 20)
SDL_Delay (20 - ellapsed);
    }

    filein=fopen("out.txt","w+");
    fprintf(filein,"{%d,%d,%d,%d",width,height,startx,starty);
    for (i=0;i<width*height;i++)
    {
        fprintf(filein,",%d",array[i]);
    }
    fprintf(filein,"}");
    fclose(filein);

    //Free
    free(array);
    SDL_FreeSurface(window);
    SDL_FreeSurface(toolbar);
    for (i=0;i<14;i++)
    {
        SDL_FreeSurface(sprites[i]);
    }
    SDL_Quit();
    return 0;
}
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 19, 2011, 10:44:25 am
Beta version of the game !
You can try the 10 first levels (good luck for level 10).

I didn't add a readme, so here are the controls :
arrows : control Bobby / select the level
escape : quit the current level
enter : select the level.
There are  6 kinds of blocks :
-bush : it blocks you.
-rotating pipes : they rotate 90° clockwise each time you go on them.
-buttons : if you push them, all the pipes rotate.
-spikes : you can walk on them only once.
-carrots : eat them all !
-target : when you have eaten all the carrots, go on the target in order to complete the level.

You can see a video of the level 8 here (http://www.youtube.com/watch?v=gLJ6nmmV0Bg)

If someone could make some maps, It would be very nice :). It's pretty hard to do a good level...
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 19, 2011, 10:49:52 am
looks great.  ;)
but can you try to modify the walking?
It needn't to be animated, but It would look better if the steps aren't like beaming.

Or that the rabbit looks into the direction where he's walking. (Bad english... :-\ )
Title: Re: [Lua] Bobby Carrot
Post by: mrmprog on June 19, 2011, 12:07:58 pm
The graphics look really nice. This is why I wish I had an nspire...
Title: Re: [Lua] Bobby Carrot
Post by: Munchor on June 19, 2011, 12:12:56 pm
The graphics look really nice. This is why I wish I had an nspire...

Yap, he's taking full advantage of greyscale, like Hoffa did in Pixel Escape. This is getting awesome, nice job :)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 19, 2011, 01:21:21 pm
Thanks for the comments !
For the rabbit, I can't make his movement "smooth". It would become too slow.
I could make him looking into the direction where he's walking (I don't know how to say it better :D ), but I'd have to add 3 sprites. The tns file is already 34 KB heavy. Adding these 3 big sprites would make it ~50 KB heavy. Is it too much or not ?
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 20, 2011, 04:54:00 am
Good games are large and very good games are very large. That's normal  ;)
If it's not too large fot the TI, it's ok.
(http://www.omnimaga.org/index.php?action=dlattach;topic=9064.0;attach=8216;image)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 20, 2011, 07:41:25 am
I've just added these sprites, and it's only 40 KB large :)
And, nice picture ! Bobby is gonna eat you all !
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 20, 2011, 08:35:06 am
THANX  ;D
Your Picture looks great!
Title: Re: [Lua] Bobby Carrot
Post by: BrownyTCat on June 20, 2011, 05:01:27 pm
my free version of Nspire student software expires in 18 days, so I give up
You could delete the registry, or if TI isn't that smart, you could just reinstall. Also try uploading a PNG screenshot, I want to see this in full quality!
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 20, 2011, 05:26:54 pm
Yes, I was thinking to delete all the registry things which have "student software" in their name...
I hope it'll work.

And, you want me to upload a PNG screenshot ? JPEG quality is not that bad, is it ?
I'll do that tomorrow (in France)
Title: Re: [Lua] Bobby Carrot
Post by: BrownyTCat on June 20, 2011, 05:33:09 pm
And, you want me to upload a PNG screenshot ? JPEG quality is not that bad, is it ?
I just wanted to see what it would look like in action. JPEG isn't lossless like PNG, but it's better than most BMPs, which I'm glad you didn't use.
Title: Re: [Lua] Bobby Carrot
Post by: JosJuice on June 21, 2011, 04:20:33 am
And, you want me to upload a PNG screenshot ? JPEG quality is not that bad, is it ?
I just wanted to see what it would look like in action. JPEG isn't lossless like PNG, but it's better than most BMPs, which I'm glad you didn't use.
BMPs often have as good image quality as PNGs... But the file sizes can get very large.
Title: Re: [Lua] Bobby Carrot
Post by: Jim Bauwens on June 21, 2011, 04:59:18 am
Hey Chockosta, Bobby Carrot looks pretty neat, good work!
Title: Re: [Lua] Bobby Carrot
Post by: DJ Omnimaga on June 22, 2011, 02:59:48 pm
Wow this looks pretty great! This definitively deserves a news.

Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 23, 2011, 05:36:43 am
Thanks !
----------------
New update : now the rabbit can turn, and there are 20 levels. Still no volunteers to help me making levels ?
(I attach a PNG screenie)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 26, 2011, 11:56:14 am
New beta version !
The whole game is nearly done.
The 40 first levels are ok. It remains only 10 levels...

Still no volunteers to help me making levels ?
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 26, 2011, 03:22:01 pm
New beta version !
The whole game is nearly done.
The 40 first levels are ok. It remains only 10 levels...

Still no volunteers to help me making levels ?

How does this game work exactly? MAYBE I could help making levels. How big can a level be?

edit:I don't have a Nspire, but I guess I can design levels.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 27, 2011, 09:42:13 am
Thanks ! The matter is that I need difficult levels...
A level can be 40*20 blocks big. (It's often around 16*12 blocks)

This game is a puzzle game, like the chip's challenge.
The rabbit, Bobby, has to eat all the carrots and reach the end of the level.

There are several kinds of blocks (Hard to explain with my poor English) :
(http://i45.servimg.com/u/f45/11/25/11/26/toolba10.jpg) (http://www.servimg.com/image_preview.php?i=88&u=11251126)
A : Bobby has to reach this target when he has eaten all the carrots.
Z : Bobby cannot walk on these blocks. Kind of walls.
E, R, T, Y, U & I : These blocks rotate 90° clockwise when Bobby leaves them.
O & P : Bobby can walk on them only once. When he leaves a "O" block, the block becomes a "P" block. The "P" block is also a wall.
Q : Bobby has to eat them all.
S : The "S" block is a button, when Bobby push it, all the "E", "R", "T", "Y", "U" & "I" blocks rotates 90° clockwise, all the buttons are inverted. (All the "S" become "D" and all the "D" become "S")
D : Button down. Bobby cannot use them, but "S" buttons can invert them.
F : Empty. Bobby can walk on them.

You can see them in this video (http://www.youtube.com/watch?v=BWrtFgyTjfU)

In the first post, you can download a level creator for your computer, but it's not really convenient... (You can't edit created levels)
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 27, 2011, 10:45:50 am
Alright. I'll take a look at this. Just don't exect tons of levels rightaway :P
Title: Re: [Lua] Bobby Carrot
Post by: aeTIos on June 27, 2011, 10:47:59 am
it looks already way better than the first version
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 27, 2011, 11:06:34 am
Thanks !
And, Stefan, I'd just like 10 good levels, I've already done the 40 other ones... And I lack of inspiration. Thank you really much for trying to help me :)
Title: Re: [Lua] Bobby Carrot
Post by: ruler501 on June 27, 2011, 11:16:39 am
This looks great almost enough to make me upgrade my calc to 3.02
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 27, 2011, 11:37:57 am
Try the 3.0.1 with TNOC...
I switch between OS 2.0.1 (for OSlauncher) and OS 3.0.1 (for Lua)
Title: Re: [Lua] Bobby Carrot
Post by: ruler501 on June 27, 2011, 11:44:31 am
I use 2.0.1 for OSLauncher
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 27, 2011, 12:30:39 pm
Yes, I understood it, but if you want to try Lua games, you can try the OS 3.0.1
If you use TNOC to modify it, you can go back to OS 2.0.1.
Title: Re: [Lua] Bobby Carrot
Post by: JosJuice on June 27, 2011, 12:33:14 pm
Yes, I understood it, but if you want to try Lua games, you can try the OS 3.0.1
If you use TNOC to modify it, you can go back to OS 2.0.1.
TNOC'd 3.0.2 can downgrade using DowngradeFix (but if it isn't TNOC'd, downgrading is impossible).
Title: Re: [Lua] Bobby Carrot
Post by: ruler501 on June 27, 2011, 12:50:02 pm
Theres a toll to downgrade from 3.02?
Title: Re: [Lua] Bobby Carrot
Post by: JosJuice on June 27, 2011, 01:14:37 pm
Theres a toll to downgrade from 3.02?
Yes, but the OS must be TNOC'd, otherwise it won't work (since the exploit is in boot2 1.4 and not the OS).
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 27, 2011, 02:49:02 pm
Alright. I was playing with the editor. Here's one level.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 27, 2011, 03:03:24 pm
Nice ! I love it.
But you have to add walls all around the level, else Bobby can go out of the level...
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 27, 2011, 04:02:38 pm
Nice ! I love it.
But you have to add walls all around the level, else Bobby can go out of the level...
I believe it's 20x20 now. I guess I can't have 22x22 so I'll have to edit it. Since I can't edit it I'll have to remake it. The problem is I don't know how to view the level.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 27, 2011, 04:29:51 pm
I've taken a few screenshots. (See attachment)
And the highlighted (in red) part make the level impossible...

But else, it's really good !
I've never thought about making huge mazes.
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 28, 2011, 02:46:59 am
I've taken a few screenshots. (See attachment)
And the highlighted (in red) part make the level impossible...

But else, it's really good !
I've never thought about making huge mazes.
Thanks. I'll try to edit it. Sorry for that mistake.

EDIT: Here it is. It's a bit different ofcourse.

EDIT2: Here's another level.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 28, 2011, 06:57:19 am
These levels are great.
Thank you very much.

For the help menu, could someone tell me if these sentences are correct ? (due to the lack of space, I had to make them short)
Title: Re: [Lua] Bobby Carrot
Post by: JosJuice on June 28, 2011, 08:47:28 am
I can't see any problems with those sentences. The one that describes the finish is quite short, but I'm sure it'll be okay, considering how little space there is. There's one thing you might want to change, though - remove the spaces before the ! characters.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 28, 2011, 09:12:08 am
Oh, in English there isn't any space before "!" ? Strange...
Ok, that's fixed
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 28, 2011, 10:35:44 am
Thanks Chocosta :) A mention in the readme or so would have been good enough :)
Wen I get on the computer I'll try to make some more levels.

EDIT: And another level :)
Hope you like it.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 28, 2011, 01:40:40 pm
Thanks Chocosta :) A mention in the readme or so would have been good enough :)

Man, you don't even own a Nspire and you help me. You deserve something better than that. :)

EDIT: And another level :)
Hope you like it.

I. Love. You.
This is just amazing (actually there was a little mistake, which made this level impossible, but I modified it. Just remember that when one button is pressed, all the buttons are inverted, so I had to add a "off" button)

Your levels really don't look like mine. This is great because it makes the game more "various" (I'm not sure the word is correct).
This is one of my hardest levels (It may look easy, but try it. If you succeed, congrats. Really.)
Title: Re: [Lua] Bobby Carrot
Post by: pianoman on June 28, 2011, 01:47:04 pm
This looks amazing!
Woudl you be able to post the updated version?
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 28, 2011, 01:56:51 pm
Well, it remains 7 levels... (levels 43 to 49)
The level that I showed in my previous post is level 50. Please try it :D and tell me if you succeeded...

Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 28, 2011, 02:37:17 pm
Thanks Chocosta :) A mention in the readme or so would have been good enough :)

Man, you don't even own a Nspire and you help me. You deserve something better than that. :)

EDIT: And another level :)
Hope you like it.

I. Love. You.
This is just amazing (actually there was a little mistake, which made this level impossible, but I modified it. Just remember that when one button is pressed, all the buttons are inverted, so I had to add a "off" button)

Your levels really don't look like mine. This is great because it makes the game more "various" (I'm not sure the word is correct).
This is one of my hardest levels (It may look easy, but try it. If you succeed, congrats. Really.)

Actually my brother has a nspire. But I never go on it. Maybe I can ask him to put Bobby Carrot on it(if he hasn't already ;) )
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 28, 2011, 02:48:56 pm
It's also possible to play it on a TI Nspire CX CAS, or?
Title: Re: [Lua] Bobby Carrot
Post by: ruler501 on June 28, 2011, 02:50:47 pm
It's also possible to play it on a TI Nspire CX CAS, or?
all Lua programs should be playable on a CAS CX I believe
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 28, 2011, 03:07:01 pm
good.

(I'm still wayting on my ti. - thet's why I wasn't sure.)



Nice Icon!! :D
Title: Re: [Lua] Bobby Carrot
Post by: ruler501 on June 28, 2011, 03:12:03 pm
It will change very time you refresh the page. Which one did you like?
Title: Re: [Lua] Bobby Carrot
Post by: p2 on June 28, 2011, 03:15:30 pm
The BE RATIONAL - GET REAL

But the hand with the desktop isn't bad, too
The penguin is sweet!


How have you made this?
That's cool!
(New pictures everytime I refresh the site)

Title: Re: [Lua] Bobby Carrot
Post by: ruler501 on June 28, 2011, 08:19:10 pm
The BE RATIONAL - GET REAL

But the hand with the desktop isn't bad, too
The penguin is sweet!


How have you made this?
That's cool!
(New pictures everytime I refresh the site)


Theres only 5/6 I was given the script to do it and all except one of the pictures is off the internet. The one I made is the little soldier. It was a sprite for a game. I have a gif of him somewhere
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on June 29, 2011, 11:44:29 am
Another level. I drawed this one first on paper. It's supposed to be quite difficult.
Title: Re: [Lua] Bobby Carrot
Post by: Levak on June 29, 2011, 04:19:44 pm
level 22 is impossible =)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 29, 2011, 05:23:52 pm
Today, my computer get infected by a fucking virus. Fortunately, no data lost.
But I convinced my parents to allow me to install Linux (Ubuntu) !
So the development is paused for a few days, until I learn to use my new OS.

@Stefan Bauwens
Thanks, once again ! I'll look at that carefully in a few days.

@Levak
Yes, it's fixed now. I've just inverted the two buttons. Did you really do all the other levels ? :o
Title: Re: [Lua] Bobby Carrot
Post by: Jim Bauwens on June 29, 2011, 05:57:51 pm
Chockosta, if you need any help with Linux, you can ask here as there are a few Linux freaks here :)
Title: Re: [Lua] Bobby Carrot
Post by: Deep Toaster on June 29, 2011, 06:06:21 pm
It's looking better and better :o Does Bobby face different directions now? I can't try this because I don't have a CX but I'll try to get it on the online Lua player.

EDIT: Doesn't work. Blame TI.
Title: Re: [Lua] Bobby Carrot
Post by: Jim Bauwens on June 29, 2011, 06:24:49 pm
I don't think it will detect your keypresses (in the online player)
Title: Re: [Lua] Bobby Carrot
Post by: Deep Toaster on June 29, 2011, 06:28:56 pm
Yeah, it didn't :(
Title: Re: [Lua] Bobby Carrot
Post by: Levak on June 29, 2011, 06:59:45 pm
@Levak
Yes, it's fixed now. I've just inverted the two buttons. Did you really do all the other levels ? :o

I've finished it like 15 times on my phone during 3 boring high shool years x)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on June 30, 2011, 07:32:28 am
I understand...
Did you finish the level 50 ?
Title: Re: [Lua] Bobby Carrot
Post by: Levak on June 30, 2011, 08:18:20 am
I understand...
Did you finish the level 50 ?

Yes =)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 03, 2011, 01:53:36 pm
Well, now I've learned to use Linux (as a beginner).
I can go back coding... But nothing seems work. The emulator, in the "Linux" folder, contains only a bash script and a .EXE file... The script tries to execute the .EXE file, and it doesn't work.
TiLP only contains a "setup.exe" and several readmes.

I am a bit desperate...
Title: Re: [Lua] Bobby Carrot
Post by: Jim Bauwens on July 03, 2011, 05:01:42 pm
First off all, exe programs don't work ine Linux, as they are make for windows. In recommend this converter: http://www.ticalc.org/archives/files/fileinfo/437/43704.html , which works in Linux.


As for tilp, the version in the Ubuntu repo is currently outdated, so you will need to compile it from source. Here is how to do it:

First download this script: http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh
Copy it to your home directory ("/home/chockosta")
Open a terminal (Applications --> Accessories -->Terminal)
Run this:
Code: (SH) [Select]
sudo apt-get install subversion autoconf automake libtool libglib2.0-dev zlib1g-dev libusb-dev libgtk2.0-dev libglade2-dev libsdl1.2-dev gettext bison flex groff texinfo xdg-utilsThis will install all the dependencies to compile tilp.
Then run this:
Code: (SH) [Select]
chmod +x ./install_tilp.sh
sudo ./install_tilp.sh
You will be asked for your password, type it (its normal that you don't see it while typing).
Then wait for the installation to finish.

When its done (without any errors) you have successfully installed and compiled tilp. To use tilp just run "sudo tilp" in a terminal.
Title: Re: [Lua] Bobby Carrot
Post by: Levak on July 03, 2011, 08:06:07 pm
The emulator, in the "Linux" folder, contains only a bash script and a .EXE file... The script tries to execute the .EXE file, and it doesn't work.

You mean my package for Goplat's emulator (nspire-emu) ?
Title: Re: [Lua] Bobby Carrot
Post by: apcalc on July 03, 2011, 08:31:57 pm
I love playing this game on my Nspire CX!  The colors are truly beautiful! :)

Great work!!!
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 04, 2011, 03:50:36 am
...
Thanks ! It works.


The emulator, in the "Linux" folder, contains only a bash script and a .EXE file... The script tries to execute the .EXE file, and it doesn't work.

You mean my package for Goplat's emulator (nspire-emu) ?
I guess... It's the emulator which is on TI-Bank.


I love playing this game on my Nspire CX!  The colors are truly beautiful! :)

Great work!!!
Thank you :)


Stefan, I can't finish your last level... Is it really possible ? Or maybe it's just too difficult for me.
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 04, 2011, 05:04:41 am
Stefan, I can't finish your last level... Is it really possible ? Or maybe it's just too difficult for me.
I'll 'force' Jim to put it on his calc, and then I'll try it myself. Maybe I forgot something.

EDIT: Can you upload the game with my level in it, so I an play it?
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 04, 2011, 05:31:08 am
Oh, sorry. It is level 45 (As you can see, it remains only 2 levels ! I'll make one today, if you could do the other one, it would be perfect !)
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 04, 2011, 06:50:06 am
Oh, sorry. It is level 45 (As you can see, it remains only 2 levels ! I'll make one today, if you could do the other one, it would be perfect !)
Alright, I played it, but I saw already a mistake(maybe there're more). If you could take away the block circled around with blue(As you can see in the picture), I think it might work. :)
Also, I'll work on another level :)

EDIT: I played level 50 as well, and I got trough. :)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 04, 2011, 07:12:18 am
Still impossible...
Woah, congrats for level 50 ! I really thought it would take hours. You can try level 49, which is hard too.

(I attach the new version with your modification. And it remains only level 48 !)
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 04, 2011, 08:41:02 am
Okey, I think that I found the mistakes. If you could remove the blue-circled blocks, turn the yellow-circled blocks 90 degress right then I believe it might work.
Sorry for all these mistakes. :-\

EDIT: OOPS(forgot the picture)

EDIT2: Here's a new level. Hope you like it.(It isn't too difficult). Maybe you could convert in to .tns so I can try it first. :)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 05, 2011, 07:20:52 am
I finally finished that level ! And it is great.
For the second one, it's a good level too.

So all the 50 levels are done, I think that's the final release !
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 05, 2011, 08:40:48 am
YEAY! Don't forget to put it on ticalc.org ;)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 05, 2011, 09:09:27 am
I have to write the readme first (I hates these things)

EDIT : Could someone tell me if there is any mistake ?
Code: [Select]
|-----------------------------------------------------------------------|
|ENGLISH |
|-----------------------------------------------------------------------|
| Keys :    |
|Arrows : select your level/control Bobby |
|Enter : play the selected level |
|Esc : quit the current level |
|-----------------------------------------------------------------------|
|Help Bobby, the rabbit, to eat all the carrots... But be careful, |
|because there are lots of traps! Spikes, rotating ways, mazes... |
|(Use Ctrl+? or Ctrl+H in the documentto see a detailed description of |
|each block) |
|-----------------------------------------------------------------------|
Title: Re: [Lua] Bobby Carrot
Post by: yunhua98 on July 05, 2011, 10:16:54 am
need a space in "documentto"

other than that, it's great!  Short and to the point.  ;)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 06, 2011, 04:53:08 am
ticalc.org just accepted my prog.

Download it (http://www.ticalc.org/archives/files/fileinfo/440/44058.html)
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 06, 2011, 09:22:12 am
Great to hear this. I think it deserves a feature at ticalc.org :)
Title: Re: [Lua] Bobby Carrot
Post by: DJ Omnimaga on July 06, 2011, 03:32:05 pm
Wow awesome and congrats for the ticalc news!

Are you planning to put this in the archives here too by the way?
Title: Re: [Lua] Bobby Carrot
Post by: critor on July 07, 2011, 05:23:44 am
Great!
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 07, 2011, 05:37:40 am
Wow, congrats with the feature Chocosta! Definitely deserved!
Title: Re: [Lua] Bobby Carrot
Post by: Munchor on July 07, 2011, 06:26:34 am
Nice feature, it's indeed well-deserved :)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 07, 2011, 09:37:26 am
Thanks everybody :)
DJ_O : Good idea ! I submitted it. (And a snake game that I did a long time ago)
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 14, 2011, 10:02:34 am
Quote from: Chockosta on: Mon 20 Jun, 2011, 13:41:25
I've just added these sprites, and it's only 40 KB large Smiley
And, nice picture ! Bobby is gonna eat you all !
Oh yes, he is...
Or isn't he?


This is version 3 or the gif.
It's not perfect, but I'm working on it.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 14, 2011, 01:20:00 pm
You should do cartoons for a TV channel :)
(http://i45.servimg.com/u/f45/11/25/11/26/screen12.png) (http://www.servimg.com/image_preview.php?i=94&u=11251126)
Is the "a bit chocolate" referring to me ? Oh no ! Please, Harry, stop him  :D

How much time did you spend doing that ?
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 14, 2011, 01:25:15 pm
Thanx!  :)
I've needed only two or three hours.


YOU have written BOBBY IS GONNA EAT YOU ALL.
And it's really not very good to tell me of a everything-eating monster, if YOU are food (chocolate)

Yes, I ment you!


I'll make more pics of it, so that one of the rabbits will win.
Wut I'm not sure yet, if Harry will win.



Any special wishes for the fight?
You can send me a PM, if you want to.
Should I make such animations of any other games, too?


 :w00t: Maybe this smiley will be in the animation, too.
But I'm not sure.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 14, 2011, 01:44:38 pm
I hope harry will win... Else I will die as a rabbit meal ! I hope he doesn't like milk chocolate :)
I don't think that I have special wishes, you are the artist...

If any other game inspires you, you sure should do more animations !
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 14, 2011, 03:04:44 pm
Quote from: Chockosta on: Mon 20 Jun, 2011, 13:41:25
I've just added these sprites, and it's only 40 KB large Smiley
And, nice picture ! Bobby is gonna eat you all !
Oh yes, he is...
Or isn't he?


This is version 3 or the gif.
It's not perfect, but I'm working on it.
Awesome.
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 17, 2011, 11:58:41 am
Version four.
Now, there are 107Pictures in it.


No, Chockoste, you won't be eaten BY A RABBIT  :evillaugh:
And I don't think one of the Two rabbits will win ;D



Of cause, It's not completed, yet. I'll continue it.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 26, 2011, 11:56:02 am
Sorry, I couldn't use Internet for a few days. So I haven't seen your gif earlier :(
And... It is wonderful ! I love the fight ! Especially the fireball :)
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 26, 2011, 11:57:26 am
Thanx!
I'll continue with it in a few days.
(Tomorrow it's the last school-day...)

any wishes yet?
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 26, 2011, 12:05:55 pm
I look forward for it !

Mmmmh... I don't have any special wish... (Well, I obviously would like more pretty effects like your fireball !)
Title: Re: [Lua] Bobby Carrot
Post by: Hayleia on July 26, 2011, 12:11:10 pm
Great work !
I have a scenario idea: at one time, the dark one gets very angry and launches a lot of fireballs. Then, everything explodes :w00t: ... The screen is dark... The smoke gets slowly away... everything is burned... The two rabbits are lying on the floor... Then, the-one-you-want-to-win stands up while the other one is dead.
If you don't like my scenario, you can tell me and make yours, after all, it is your gif ;D
Title: Re: [Lua] Bobby Carrot
Post by: ztrumpet on July 26, 2011, 01:09:21 pm
This game is awesome, both in concept and execution.  Keep up the great work. :D
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 27, 2011, 07:38:19 am
Hayleia:
I think it'l be only a bit different like your idea:

They'll shoot blocks at each other, shoot fireballs,...
Then, the map disappears in a big fireball and everything is burning. (but NOT the two rabbits)
The two rabbits are lying on the floor.
The third rabbit comes to them and laughs about them.

Then, another enemy will appear.
I'm still not sure, what yn enemy it would be.
Maybe an angry carrot...




Chockosta:
Would you like to survive?
(the chocolate=you)
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 27, 2011, 11:00:14 am
I've always wanted to be eaten by a rabbit ;D
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 28, 2011, 12:08:33 pm
this is the next part.
lava! Yay!  :D

I'll continue it.
Is there a possibillity to change the maximum allowed attahment size?
I don't have enough place for the animation...  :P
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 29, 2011, 01:34:26 pm
Nice ! But the lava animation is a bit slow, don't you think so ?
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 29, 2011, 01:46:12 pm
yeah. I was still working at it.
I'll make the lava better, so that it will grow while the rabits will continue talking.

Am I allowd to draw a rabit, eating chocolate?  8)
Title: Re: [Lua] Bobby Carrot
Post by: Munchor on July 29, 2011, 02:06:18 pm
The graphics are phenomenal, keep it up p2, I have to say that explosion is sweeet.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 29, 2011, 03:02:35 pm
Am I allowd to draw a rabit, eating chocolate?  8)

You sure can. Poor chocolate...
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 30, 2011, 10:59:47 am
thanx, ephan.

Chockosta:
poor chocolatechockosta  :evillaugh:

(http://img.removedfromgame.com/imgs/0-all.gif)
I've made a few other new things, but I haven't continued it. This is only an update of the GIF.
(I hope the lava is better, now!)




I'll continue it soon.
Title: Re: [Lua] Bobby Carrot
Post by: Stefan Bauwens on July 30, 2011, 02:44:01 pm
Lol, good work so far p2.
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 30, 2011, 03:25:55 pm
Thanx!
Is the lava good enough, now?
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on July 31, 2011, 10:17:54 am
Nice ! Now I like the lava.
Keep up the great work !
Title: Re: [Lua] Bobby Carrot
Post by: p2 on July 31, 2011, 01:03:00 pm
Should I start a new topic for the animations so that I upload them there and that everyone could ask things there, or should I continue uploading them here?

I'll soon be ready with the fight.
Title: Re: [Lua] Bobby Carrot
Post by: Chockosta on August 02, 2011, 03:21:45 pm
It's up to you.
If you plan to add a lot of pictures, maybe you should start a new topic...
Title: Re: [Lua] Bobby Carrot
Post by: p2 on August 03, 2011, 07:51:37 am
I think I will open a new Topic.

Thanx for this funny Game, Chockosta!