Topic: Some more crappy code . . .  (Read 11201 times)

Author Message

0 Members and 1 Guest are viewing this topic.

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Some more crappy code . . .
« on: June 30, 2009, 10:08:51 PM »
Just to point out - all this is for is to test out a routine that I have been working on . . .

basically the image of the pac-man is only made from one set of graphics that face in one direction - I then use code to re-draw it the other directions!

I know the graphics are shite . . . like i have said above just to show that my code works! :)

« Last Edit: July 08, 2009, 08:53:09 AM by AndyRCM »
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline Amiga Man

  • Amiga 4000
  • ******
  • Posts: 999
  • Kudos 10
    • View Profile
Re: Some more crappy code . . .
« Reply #1 on: June 30, 2009, 10:22:22 PM »
Quote
I know the graphics are shite . . . like i have said above just to show that my code works!

Graphics isnt be all and end all as if you got good gameplay that are easy pick up and play then it like riding a bike when you make games after games and it get better and better :)

Keep going :)

It looking good  ;)

Offline Scarlettkitten

  • Enjoy the silence
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 2025
  • Kudos 31
  • Queen of the 3DO people
    • View Profile
Re: Some more crappy code . . .
« Reply #2 on: June 30, 2009, 10:23:11 PM »
That's bloody ace Andy 8)

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #3 on: June 30, 2009, 10:23:56 PM »
Thanks guys! ;)
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline Panther

  • Committee
  • Amiga 4000
  • *
  • Posts: 4180
  • Kudos 35
  • Gender: Male
  • Look at the size of my.......Paws
    • View Profile
Re: Some more crappy code . . .
« Reply #4 on: July 01, 2009, 08:26:30 AM »
Andy,

I wished I had time to work on this type of thing, any pointers on FreeBasic ? is it a compiler or a complete program ? I did a quick serch on google and found all sorts ???

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #5 on: July 01, 2009, 03:28:09 PM »
Panther,
basically it is a compiler but you download a front end for it called FBIDE - there are others but this is easily the best one  . . . I will sort out the links later and post them here for you.
A good point of reference for any coding, especially demo writing is Shockwave's site here www.dbfinteractive.com - they cater for all sorts of programming languages.

I will post the other links later.

Andy
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline Panther

  • Committee
  • Amiga 4000
  • *
  • Posts: 4180
  • Kudos 35
  • Gender: Male
  • Look at the size of my.......Paws
    • View Profile
Re: Some more crappy code . . .
« Reply #6 on: July 01, 2009, 03:56:27 PM »
Cheers mate  ;D

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #7 on: July 02, 2009, 08:43:33 PM »
oops forgot to post links last nite . . .

here you go . . .

main site - http://www.freebasic.net/

freebasic + front end - http://fbide.freebasic.net/index.php?menuID=56 - it is the top link you need!

it does download an older version of freebasic - just replace the files with the newer version from the main site.

you will also need to download some extra libraries from DBF Interactive too, mainly tinyptc_ext for one . . . this is for screen drawing on a pixel basis.

if you need some code to have a look at - please ask - obviously my code isn't anywhere near as good as most/all of the coders on DBF though!

Andy
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #8 on: July 02, 2009, 08:48:38 PM »
further to the pacman code . . . i have now done this . . .

the code for generating/drawing/moving is now 1/4 smaller! ;)

see what you think?

16 individual pacmen at 16 speeds all independent of each other, all controllable by x,y and speed co-ordinates - oh and each one can be a different colour too!

In theory with this code, I could fill the screen with said pacmen, i haven't tested it so . . . but it would work i think! ;)
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #9 on: July 02, 2009, 09:00:08 PM »
further to the last post . . . here are a few more pacmen added . . . ;)

"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline Amiga Man

  • Amiga 4000
  • ******
  • Posts: 999
  • Kudos 10
    • View Profile
Re: Some more crappy code . . .
« Reply #10 on: July 02, 2009, 10:07:35 PM »
Very good ANDYRCM and Keep good work UP :)

You are getting ENJOY FREEBASIC more than anythings at the moment  ;) ;D

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #11 on: July 02, 2009, 10:09:48 PM »
Yes matey - I have just started using it to more of my abilities as a coder . . . and enjoying it loads!

Andy
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline billdooruk

  • Administrator
  • Amiga 4000
  • ******
  • Posts: 2476
  • Kudos 26
  • Gender: Male
  • I could murder a curry
    • View Profile
    • Our site:-
Re: Some more crappy code . . .
« Reply #12 on: July 02, 2009, 11:10:04 PM »
Just looked at the two downloads

Excellent work....keep it up  ;D

Offline AndyRCM

  • >=))))º> GO FEED THE FISH! <º((((=<
  • Administrator
  • Amiga 4000
  • ******
  • Posts: 9675
  • Kudos 50
  • Gender: Male
  • Manic Jet Set Willy
    • View Profile
    • Retro Computer Museum
Re: Some more crappy code . . .
« Reply #13 on: July 02, 2009, 11:15:36 PM »
Thanks Karl! I will do . . . i have an idea for another game now too! ;)
"I could see the faces of those who led pissing themselves laughing" - Funeral Pyre by The Jam

Offline Pixel_Outlaw

  • Vic 20
  • **
  • Posts: 79
  • Kudos 3
    • View Profile
Re: Some more crappy code . . .
« Reply #14 on: July 02, 2009, 11:33:51 PM »

This technique was pretty essential during the era of classic games. YOu might pair this with a low res game for extra effect.