Author Topic: Another Webgame I'll probaly never finish  (Read 3109 times)

Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Another Webgame I'll probaly never finish
« on: May 19, 2003, 04:39:49 PM »
well here's what I've been working on this weekend.  You might remeber that I was makeing a breakout/arachnoid style of game a few months ago but ran into a snag.  There were to many calaculations per frames (flash can handle about 120, I had 400+  ::) ).  So I finaly got off my butt and switched it to a tile based world.  That way I only have to test for reactions in the square where the ball is.

What I posted has two parts: Start and Create Game.  The actual game play dosen't work yet (I haven't finished the code), but you can goto the create game section and play around.  Just click around the screen to change the tile.  The level can't be saved in this version (it only works when ran from the Flash compiler).  But hey it's fun anyway.

http://www.timewastersguide.com/VG/NickelCade/index.php
« Last Edit: May 19, 2003, 04:42:11 PM by Spriggan »
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #1 on: May 20, 2003, 10:23:54 AM »
ok just a quick update.  The program now loads levels correctly.  So you can click on the start button to load a generic level.  The paddle also moves.  I'll be addin the ball in soon as well as makeing the bricks disaper.

note: if you want to see the new version you'll need to clear IE's catch.
« Last Edit: May 20, 2003, 10:35:24 AM by Spriggan »
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #2 on: May 21, 2003, 03:40:18 PM »
ok new version.  Now the ball will bounce off your paddle and the walls!  I haven't added the brick hit tests yet but am working on the code.  Once I get that done all that's left is the astethics of the game. ;D
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #3 on: May 21, 2003, 06:25:11 PM »
Sweet things are rolling along quite well.  All right now blocks dissaper!  Except the silver ones which are indestructable.  I've also dubbled the paddle's speed.  There is an ovbious problem with the ball hitting the bricks.  Right now it checks from the center of the ball.  Also there's no code telling the ball which direction it hit the brick from.  So it allwayse ends up going down after hitting a brick.
Fixing the brick/ball hittest is easy, I just have to code in an actual hittest function.  Right now it's just checking what grid cell it's in.  As for the direction...well I've got some ideas, but it's going to be some creative programming  ;D

Also I've up'd the frame rate to 24 for a smoother animation of the ball.
« Last Edit: May 21, 2003, 06:26:15 PM by Spriggan »
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #4 on: May 22, 2003, 07:45:57 PM »
Ok I've cleaned up the hittest just a bit.  I haven't done wha I want yet so there's still plenty of problems.  

Todays big update is there are now multiple levels (only 5 so far) as well as a score.  The placing of the score at the bottom is only temperay.  I'm going to design a place to the left that will have info and such.  You get 100 ponts for each brick and 500 for clearing a level.  You loose 20 points each time you miss the ball with your paddle.  I haven't implicated multiple balls yet so this is what you get.  And yes levels 4 and 5 are almost identical.
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #5 on: May 22, 2003, 08:23:25 PM »
Umm I've noticed that sometimes the game will freeze for a few seconds then work again.  This might be my crappy PC so if anyone else has this problem let me know.  When it's loading a new level is different.  The pause is flash clearing the level then loading the new one.
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


EUOL

  • Moderator
  • Level 58
  • *
  • Posts: 4708
  • Fell Points: 33
  • Mr. Prolific [tm]
    • View Profile
    • Brandon Sanderson dot com
Re: Another Webgame I'll probaly never finish
« Reply #6 on: May 26, 2003, 01:00:29 PM »
I don't have the freezing problem, though I did have trouble figuring out how to get the thing to start.  Eventually, it loaded a level and stuff started bouncing around.  I was pretty impressed.  The only thing was the paddle motion--it was really hard to control, and really slow.  When I hit the arrow key, it paused for a second before sliding over.

Anyway, the core of it works, so that's a very good sign.
http://www.BrandonSanderson.com

"Technically, I don't even have a brain."--Fellfrosch

Entsuropi

  • Level 60
  • *
  • Posts: 5033
  • Fell Points: 0
  • =^_^= Captain of the highschool Daydreaming team
    • View Profile
Re: Another Webgame I'll probaly never finish
« Reply #7 on: May 26, 2003, 01:54:33 PM »
I'm just waiting for Spriggan to write a flash program that can do my reviews for me. They take loads of time to do - 10 minutes for 2 paragraphs of my Werewolf:tA review is waaay to long for my liking - thats time i can be eating something ;)
If you're ever in an argument and Entropy winds up looking staid and temperate in comparison, it might be time to cut your losses and start a new thread about something else :)

Fellfrosch

Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #8 on: May 26, 2003, 04:30:26 PM »
OK when you click start it takes a second or two to load.  I've got a "Loading" screen but it's not showing for some reason.  I've asked somepeople at the flash site I goto to look at my codeing and see if they can figure anything out.  For me it only freezes after the first level is completed.
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


EUOL

  • Moderator
  • Level 58
  • *
  • Posts: 4708
  • Fell Points: 33
  • Mr. Prolific [tm]
    • View Profile
    • Brandon Sanderson dot com
Re: Another Webgame I'll probaly never finish
« Reply #9 on: May 27, 2003, 11:54:10 AM »
Cool.  Are you going to make it so you die when you miss the ball?  Or is the game going to be completly point-driven.
http://www.BrandonSanderson.com

"Technically, I don't even have a brain."--Fellfrosch

Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #10 on: May 27, 2003, 02:42:36 PM »
No you're going to have X number of balls.  It's just easier to check things with out haveing to worry about staying alive.
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


EUOL

  • Moderator
  • Level 58
  • *
  • Posts: 4708
  • Fell Points: 33
  • Mr. Prolific [tm]
    • View Profile
    • Brandon Sanderson dot com
Re: Another Webgame I'll probaly never finish
« Reply #11 on: May 28, 2003, 01:48:37 PM »
That's what I assumed.
http://www.BrandonSanderson.com

"Technically, I don't even have a brain."--Fellfrosch

Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #12 on: June 08, 2003, 02:35:53 PM »
OK after ignoreing this for a few weeks and makeing fun of Fell  ;D I went and tried to fix a few things.

hopefully the paddle wont slow down now, I changes the function call peramiters so it calls it every frame (which is how flash times things).  Also I changed the level load function so it won't eat up us much memory.  Let me know any problems you have with freezeing and slowdown.

If the changes work then I can add the improved collision detection.

Also I changed the second level a bit.  It was too much of  a pain with the unbreakable bricks.
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Another Webgame I'll probaly never finish
« Reply #13 on: June 09, 2003, 02:09:28 PM »
Part of the improved collision detection has been implemented.  It's more accurate in telling where the ball hits and changes directions correctly.  So if the ball is moveing down and hits a brick it'll bounce up.  It also can check left/right direction.  The only thing I've got left too add is frame independent collision.  This is complicated to explain if you've never used Flash.  You'll notice that sometimes the ball will move through a brick, that's because of  frame dependent collision.
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.