Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Robo-Juggler  (Read 1327 times)

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Robo-Juggler
« on: January 26, 2012, 06:22:26 pm »

So, about a week ago, I started making my first game ever,
and it's already almost done, should be done in another week or so.
It's a game where you play as a robot who juggles,  I know simple idea right? well it was my first game, so get off my case.

I'm looking for some people to make graphical mods of it, because I stink at making graphics.

here is a download of the game

http://www.mediafire.com/?mukl0ujqpy8qzyk

right and left arrow move right hand, A and D move left hand, space drops ball.

in the folder is a resources folder with the images used in game, to make a graphical mod you just have to replace them with your own images,
They have to be the same height and width and must be .bmp files.
Currently there is no background, but in the next version or so I'll add one.

when the game is done I want to have the option to be able to pick what you want to look like and stuff, so I really need help making graphics for it. And it was designed knowing the option to change out the graphics would be an added feature.

I'm currently adding one or two new features every day.
right now there is only 1 ball, but in a day or 2 there will be more.

so if you can draw, and / or are bored, please give this a shot.

updated download link to newer version 01/27/12
« Last Edit: February 01, 2012, 04:07:37 pm by Valid_Dark »
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

nenjin

  • Bay Watcher
  • Inscrubtable Exhortations of the Soul
    • View Profile
Re: Robo-Juggler
« Reply #1 on: January 26, 2012, 06:24:52 pm »

Might want to move this over to Creative Projects if you're still needing to draft help.

Grats on your first game though.
Logged
Cautivo del Milagro seamos, Penitente.
Quote from: Viktor Frankl
When we are no longer able to change a situation, we are challenged to change ourselves.
Quote from: Sindain
Its kinda silly to complain that a friendly NPC isn't a well designed boss fight.
Quote from: Eric Blank
How will I cheese now assholes?
Quote from: MrRoboto75
Always spaghetti, never forghetti

terkiey

  • Bay Watcher
  • chicken what i need
    • View Profile
Re: Robo-Juggler
« Reply #2 on: January 27, 2012, 12:25:40 pm »

I made some new hands and robot body, you'll have to place/download them in the correct folders yourself though. :p
Also, they are not really that good.
http://www.mediafire.com/?5t7v5f5svs3b5
I also put two hands in, because I can't open the .dll files and I assume that is the code for the game. So just make it so that it chooses the hands seperately as hand1 and hand2.
That way, the hands can be different. Like mine. If you notice I put two hands in.
Logged
Quote from: Meistermoxx
Quote from: Knigel
Does anything bad happen if you accuse someone of being a night creature and they aren't?
Yes, they call you a rasict, and then they shot you and take your cocaine.
[(√[1]/∞)+3!+|Chicken|] / [100^(1/2)]

malloc

  • Bay Watcher
    • View Profile
Re: Robo-Juggler
« Reply #3 on: January 27, 2012, 02:51:42 pm »

You might want to note, the game contains a memory leak, and is leaking 1 mb every second.

I am guessing that you are not using freetype in the right way.
Are you remembering to reallocate glyphs after using them?
« Last Edit: January 27, 2012, 02:55:34 pm by malloc »
Logged

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Robo-Juggler
« Reply #4 on: January 27, 2012, 03:11:43 pm »

Thank you terkiey, Those graphics are wonderful, I'm going to add the third ball today then start working on the menus,
once I get the options menu in, there will be the option to change the graphics from the one thats in game already to yours.

ooo leaky leaky, thanks for pointing that out.
as I said before this is my first game, I'm not sure why it's leaky and am not quite sure what you mean regarding freetype and glyphs.

I think it's because I didn't free Sdl_surfaces at the right time maybe? or in some cases not at all.
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

malloc

  • Bay Watcher
    • View Profile
Re: Robo-Juggler
« Reply #5 on: January 27, 2012, 03:28:46 pm »

I think it's because I didn't free Sdl_surfaces at the right time maybe? or in some cases not at all.
For a simple game like this, I doubt that is the case.

Unless you have set up your code to initialize a surface each time you are doing the rendering, which I seriously hope you are not doing.
Are you doing anything different from:
Initialize surfaces.
Load sprite into surfaces.

Run game.

Deintialize surfaces.
« Last Edit: January 27, 2012, 03:30:47 pm by malloc »
Logged

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Robo-Juggler
« Reply #6 on: January 27, 2012, 08:29:23 pm »

new version up, haven't fixed memory leak or made menus yet, but added 3rd ball and added terkieys robot / hands it randomly picks what robot and hands you have on startup. spent most of the day playing it rather than working on it.
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

Gatleos

  • Bay Watcher
  • Mournhold... City of Light... City of MAGIC!
    • View Profile
    • Someone Sig This
Re: Robo-Juggler
« Reply #7 on: January 28, 2012, 08:19:50 am »

I think it's because I didn't free Sdl_surfaces at the right time maybe? or in some cases not at all.
For a simple game like this, I doubt that is the case.

Unless you have set up your code to initialize a surface each time you are doing the rendering, which I seriously hope you are not doing.
Are you doing anything different from:
Initialize surfaces.
Load sprite into surfaces.

Run game.

Deintialize surfaces.
The SDL_ttf library renders text with a function that takes a cstring and returns a SDL_Surface object to blit to the screen, so it would create a new surface every iteration of the game loop. If there's a memory leak, it's probably because Valid_Dark isn't freeing the text surface after he draws it.

Also, Valid_Dark, the newest version isn't running for me. It seems to be hitting an error before initialization and quitting immediately. Remember to add error checking to the program, so it sends out diagnostic messages before quitting. Try something like this:
Code: [Select]
screen = SDL_SetVideoMode( 640 , 480 , 32 , SDL_DOUBLEBUF|SDL_HWSURFACE|SDL_ANYFORMAT);
if(!screen)
     fprintf(stderr,"Failed to initialize display window: %s",SDL_GetError());
It'll send the message to stderr.txt in the program directory.
Logged
Think of it like Sim City, except with rival mayors that seek to destroy your citizens by arming legions of homeless people and sending them to attack you.
Quote from: Moonshadow101
it would be funny to see babies spontaneously combust
Gat HQ (Sigtext)
++U+U++ // ,.,.@UUUUUUUU

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Robo-Juggler
« Reply #8 on: January 28, 2012, 02:40:22 pm »

fixed and replaced download link in first post, accidently packaged it with the wrong resource folder.
Gatleos, can I have you take a look at my code and help me plug the leaks ?
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

terkiey

  • Bay Watcher
  • chicken what i need
    • View Profile
Re: Robo-Juggler
« Reply #9 on: January 28, 2012, 03:09:31 pm »

Keep up the good work! I like it.
Logged
Quote from: Meistermoxx
Quote from: Knigel
Does anything bad happen if you accuse someone of being a night creature and they aren't?
Yes, they call you a rasict, and then they shot you and take your cocaine.
[(√[1]/∞)+3!+|Chicken|] / [100^(1/2)]

Gatleos

  • Bay Watcher
  • Mournhold... City of Light... City of MAGIC!
    • View Profile
    • Someone Sig This
Re: Robo-Juggler
« Reply #10 on: January 28, 2012, 04:07:47 pm »

fixed and replaced download link in first post, accidently packaged it with the wrong resource folder.
Gatleos, can I have you take a look at my code and help me plug the leaks ?
Yup! That's fine. Whenever you need me to look at it you can just PM it to me.
Logged
Think of it like Sim City, except with rival mayors that seek to destroy your citizens by arming legions of homeless people and sending them to attack you.
Quote from: Moonshadow101
it would be funny to see babies spontaneously combust
Gat HQ (Sigtext)
++U+U++ // ,.,.@UUUUUUUU

terkiey

  • Bay Watcher
  • chicken what i need
    • View Profile
Re: Robo-Juggler
« Reply #11 on: January 28, 2012, 07:11:12 pm »

My highscore is 40! :D

Logged
Quote from: Meistermoxx
Quote from: Knigel
Does anything bad happen if you accuse someone of being a night creature and they aren't?
Yes, they call you a rasict, and then they shot you and take your cocaine.
[(√[1]/∞)+3!+|Chicken|] / [100^(1/2)]

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Robo-Juggler
« Reply #12 on: January 28, 2012, 07:17:25 pm »

orly? thats....not very good..
you need to work no your hand eye coordination, My highscore is around 400 something.
I'll play a few rounds and get a screen shot to post.
just scored 221, too lazy to screen shot. so I wont.
149 on the first ball.
the secret is to get a good combo going to get the multipliers,
20 combo gives x2 multiplier, 40 gives x3 and 60 gives x4

and Gatleos, I PM'd you a while ago, get back to me asap.
« Last Edit: January 28, 2012, 07:27:36 pm by Valid_Dark »
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

terkiey

  • Bay Watcher
  • chicken what i need
    • View Profile
Re: Robo-Juggler
« Reply #13 on: January 28, 2012, 07:31:30 pm »

Also, please add a restart button, so I don't have to keep closing and re-opening the game.
Logged
Quote from: Meistermoxx
Quote from: Knigel
Does anything bad happen if you accuse someone of being a night creature and they aren't?
Yes, they call you a rasict, and then they shot you and take your cocaine.
[(√[1]/∞)+3!+|Chicken|] / [100^(1/2)]

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Robo-Juggler
« Reply #14 on: January 28, 2012, 07:50:33 pm »

There will be one by tomorrow,  or whenever I get notes from gatleos, I put the restart feature in but because of the memory leaks (or so I think) when restarted the score doesn't show up, and since they said my leaks are font related I'm pretty sure that's what's wrong.
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.
Pages: [1] 2