October 22, 2018, 08:09:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home   Blogs   Help Search Tags Login Register  
Blog Index » Regretfulone's Blog » Computer Programming 2 Final Project
Computer Programming 2 Final Project
by Regretfulone ... May 12, 2010, 10:06:03 PM
Soooo I have to make a project with some kid who basically cheated through the whole class. Sadly I have to split the work evenly with him but I feel like he really doesn't know how to code very well. I have decided to let him do the graphics and focus on the main character and hope that satisfies my teacher haha.

Ok so the project we are working on is a vertical scrolling shooter game. The main character is going to be a fighter pilot and you will "fly" forward through the level shooting down the enemies to gain money and points. I am going to be working on the mechanical stuff behind the scenes like collision tests and making sure that the pilot can't go off the screen. The more daunting task I need to complete is writing the AI for the enemy pilots that will come on to the screen at certain points. I also feel like it might be a little difficult to figure out when to bring the enemy pilots onto the screen and how. Suggestion would be appreciated if anyone has any.

P.S. the project is all in c++ using allegro for graphics
4 Comments | Write Comment
Re: Computer Programming 2 Final Project
by Richard Marks ... May 15, 2010, 11:26:30 PM
Glad you could understand that!  Grin

To create a mission, we will define a text file with the following format:
M {version}
{enemy 1}
{enemy 2}
{enemy N}

The file starts with a capital M. If this is not the case, the load will fail.
The {version} will let you tell the mission spec at load time.
Where {LDN} is a definition with this data:
<Wave Length> <Enemy Density> <Numbe... Read More
Re: Computer Programming 2 Final Project
by Regretfulone ... May 15, 2010, 10:53:37 PM
Thanks Richard! that definitely helped get me on the right track. I can see how you would use that to help split up enemies and where they start and stuff like that. I'll try and work that into some code that works with the project Smiley
Re: Computer Programming 2 Final Project
by Richard Marks ... May 15, 2010, 08:03:27 PM
Okay, so I haven't gotten around to writing a demo of code for you Sam.
However, I did write this up.
Perhaps it will help you.

The game world is split along the Y axis into N "logical sectors".
Each logical sector is split into D "zones" along the X axis.
Each logical sector is (L * the height of your game screen) pixels high.
Each zone is (your game screen width / D) pixels wide.

N = number of waves of e... Read More
Re: Computer Programming 2 Final Project
by Richard Marks ... May 12, 2010, 10:55:35 PM
I can hack up a tiny demo for the enemies for you.
But not today. gotta go to work now.

Most Recent
Blahh girls
Computer Programming 2 Final Project
May 2010 (3)
Blog Mod 1.08 by Charles Hill
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!