Bits4Kids

User projects written in or related to FreeBASIC.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Bits4Kids

Post by D.J.Peters »

i began a small project for kids at my home.
before i write the first line of code i have to draw many animated sprites
here how i got started.
Image
Image
I use paint for my first drawings
what are your favorit free tool to create animated sprites ?

Joshy
Image

First very simple test:
(binary and source)
Image

Windows: Bits4Kids.zip
Linux: Bits4Kids.tar.gz
Last edited by D.J.Peters on Sep 25, 2017 21:14, edited 5 times in total.
Lachie Dazdarian
Posts: 2338
Joined: May 31, 2005 9:59
Location: Croatia
Contact:

Post by Lachie Dazdarian »

SpongeBob! That cartoon is wacked.

I mostly use Tile Studio (http://tilestudio.sourceforge.net/), less MS Paint, Paint Shop Pro and GIMP.
badmrbox
Posts: 664
Joined: Oct 27, 2005 14:40
Location: Sweden
Contact:

Post by badmrbox »

Paint.net is the one I prefer but I'm also using tilestudio and GIMP.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

I love SpongeBob!

Patrick....
My employer health insurance doesn't cover that!
SpongeBob....
Patrick, you don't have a job!
Patrick....
Exactly!
Classic stuff!

-Vince
rolliebollocks
Posts: 2655
Joined: Aug 28, 2008 10:54
Location: new york

Post by rolliebollocks »

For almost all the sprites I've created I use actual photographs and distort them with photoshop... i use paint for some stuff.

very nice looking spongebob though.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

I played around with the free edition of GraphicsGale looks good.
http://www.humanbalance.net/gale/us/

Joshy
Last edited by D.J.Peters on Apr 29, 2011 1:11, edited 1 time in total.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

First simple test (Win and Lin)

see first post.

Joshy
Lachie Dazdarian
Posts: 2338
Joined: May 31, 2005 9:59
Location: Croatia
Contact:

Post by Lachie Dazdarian »

The animation is great! Didn't know you have a knack for it. I hope you'll make something out of this.

What sort of game do you have in mind? An arcade? An adventure? Single screen?
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

the same simple test but now with sound (Win and Lin)
(really neat)

thank you for testing

Joshy

EDIT:
Linux users should run it from filemanger only
there is an open bug in FreeBASIC
if you load a dynamic lib with FreeBASIC for Linux
on end the console prompt can be corrupt or hidden
and you have to type reset (blind)
Dr_D
Posts: 2451
Joined: May 27, 2005 4:59
Contact:

Post by Dr_D »

Wow man... that's really good! That animation is superior... This could be a really good game for kids. Keep it up! :)
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

Now i run in to the first but not least problem :-)

If you try the curent version i added some random animated bubbles
i render this bubbles with alpha channel

first problem was if two bubbles rendered overlayed the background wasn't restored right
i solved it with a top down loop for restoring the background
pseudo code

Code: Select all

for i= MAX_BOBBLES-1 to 0 step -1
  restore_background_on_old_position
next

for i= 0 to MAX_BOBBLES-1
  save_background_on_new_position
  draw_bubble_on_newposition
  old_position = new_position
next
now the bubbles looks ok so far

but if any bubble hits the animated spongbob sprite you can see wrong pixels in the background

independent from the drawing order

i tryed both

first draw the bubbles then spongbob
and
first draw spongbob and than the bubbles

i know this isn't a bug of the fbgfx lib
it's more a logic error in my head :lol:

do you know what i`m doing wrong ?

thank you for any usefull hint.

Joshy
Last edited by D.J.Peters on Apr 29, 2011 0:48, edited 1 time in total.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

A warning to Linux users....DO NOT MAXIMIZE THE WINDOW.

It locked my box up!

-Vince
HD_
Posts: 215
Joined: Jun 10, 2006 12:15
Contact:

Post by HD_ »

I like Allegro Sprite Editor for small sprites/animations with a limited palette. The interface isn't the best in the world, but otherwise it's easy to work with palettes.

Really fantastic work with your sprites by the way!

Sadly the windows zip seems corrupt?

As for your alpha issue, do you need to use dirty rectangles? What kind of machine are you designing the game for? If so, then maybe try to delay drawing until after you have saved all the backgrounds.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

vdecampo wrote:It locked my box up!
view or play spongebob only on your own risk ever :lol:

Linux is now uptodate too
i added FB.GFX_NO_SWITCH

thank you for the info

Joshy
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

HD_ wrote:Sadly the windows zip seems corrupt?
Maybe you made a download while an upload was in progress!

The windows download should be ok now.
The linux version is uptodate too with the same bubble trouble :-)

Looks like i must create a complete sprite/game engine
with different Z-layers to handle all situations of drawing.

thank you for the tip.

Joshy
Post Reply