Author Topic: Picking Up Chicks is Hard When Your Car is a BMX  (Read 2343 times)

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.


Picking Up Chicks is Hard When Your Car is a BMX is a new game using the Flixel framework.

Since Flixel has done the community a huge favor and open sourced the entire library, I am also open sourcing everything I make using it. The source code can be found as a link on the website.

http://www.initialscommand.com/bmx/

I'd really like to become more of an active member here, so if there is anything here you have questions about, or like to use in your game, please ask.

I'm really interested in getting some quality feedback. Anything you think would make this game more fun. Please let me know.
« Last Edit: Wed, Sep 22, 2010 by initials »
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

Retro-Rob

  • Active Member
  • ***
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #1 on: Wed, Sep 22, 2010 »
I'd love to see the code you have for scrolling the tilemap.

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #2 on: Wed, Sep 22, 2010 »
I'd love to see the code you have for scrolling the tilemap.

Well the full source is available on the website.

Here's the part that scrolls the level. The level scrolls rather than the player.

It was a bit tricky to get it to work because when the level is moving, and you are on the level, you inherit the movement of the level.
I had to pin the player at x=50, as well as give him the reverse velocity value of the level when on the ground.

The code is not clean at all, so you may need to dig around. It was more an experiment in how to use Flixel.

Code: [Select]
level.velocity.x = speed;
if (level.x < -level.width+320) {
level.x = 0;
rampsGrp.reset(0, 0) ;
bounceTilesGrp.reset(0, 0) ;
}
if (b2.x < -b2.width + 320) { //background layer 2
b2.x = 0;
}
if (b1.x < -b1.width + 320) { //background layer 1
b1.x = 0;
}
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

zanardi

  • Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #3 on: Thu, Sep 23, 2010 »
I dont feel desire to pedal, but the game is fun! The gameover and stage music are good to hear.

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #4 on: Sat, Oct 2, 2010 »
This is now final, and the source code is available.
I've decided to release it as a Creative Commons license, so download and remix people.
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #5 on: Tue, Oct 5, 2010 »
I just got all the Mochi services running.

Leaderboards an upfront ads work great!

Smash the highscores!
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

randygland

  • Member
  • **
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #6 on: Sun, Oct 31, 2010 »
make it easier to control

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #7 on: Sun, Oct 31, 2010 »
make it easier to control

I'm going to take this into consideration, and republish a sequel.
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

knarrenheinz

  • Member
  • **
  • Posts: 19
  • Karma: +0/-0
    • View Profile
    • CodinSoft
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #8 on: Sun, Oct 31, 2010 »
hey initials,

I love it :D
Just played for >30 mins.

A small suggestion: Some keyboard layouts have the Z and Y keys switched. So maybe you could consider that and make the Y key also available... (Not everyone might be able to switch his keyboard layout quickly or knows about that).

It's also awesome that you made the source available. Hats off!

Cheers
knarrenheinz

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: Picking Up Chicks is Hard When Your Car is a BMX
« Reply #9 on: Sun, Oct 31, 2010 »
hey initials,

I love it :D
Just played for >30 mins.

A small suggestion: Some keyboard layouts have the Z and Y keys switched. So maybe you could consider that and make the Y key also available... (Not everyone might be able to switch his keyboard layout quickly or knows about that).

It's also awesome that you made the source available. Hats off!

Cheers
knarrenheinz

Thanks so much.

It's funny that this thread got bumped up by a SpamBot and now it's had some renewed interest.

I'm working on an update, thanks for the info on keyboard layouts. I'm going to switch it so arrow keys are pedal faster.
Also I have implemented a procedural generation of the level.

Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart