Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Any sites that will help me?

Author
Message
Seraf
22
Years of Service
User Offline
Joined: 22nd Feb 2004
Location:
Posted: 28th May 2004 22:21
I am wanting to make old Atari like games, but the User Manual isn't exactly helping me any, and the tutorials here on the DB site aren't what I'm looking for so nothing is helping me Does anyone know of a good site that will help me out?
C l a r k
22
Years of Service
User Offline
Joined: 18th Apr 2004
Location: Rhode Island...State motto: Who Cares?
Posted: 29th May 2004 01:30
reaperman posted a nice 2d shootemup retro game tut...
http://www.thegamecreators.com/?m=forum_view&t=27598&b=4

im working on a retro space invaders game...contact me if you need any help and i'll help to my full ability.

Concept Software: http://concept.dbspot.com

"Hey! HEY! Sir you can't park your car on the - oh...wait...it's not a van, it's just a fat kid!"
Seraf
22
Years of Service
User Offline
Joined: 22nd Feb 2004
Location:
Posted: 29th May 2004 02:11
Thanks, that helped me a bit but I'm still confused on many things x.x Theres still a bit I don't completely understand yet. Maybe you can help me a bit

I wanna ask you somthing really really basic so I can get started with this. Lets say I wanted a little Triangle (ship) on the bottom of the screen and 5 Triangles (enemy ships) on the opposite end of the screen, how will I set this up? (The 5 enemy ships also being a different color than the players) lol
C l a r k
22
Years of Service
User Offline
Joined: 18th Apr 2004
Location: Rhode Island...State motto: Who Cares?
Posted: 29th May 2004 17:50
...k.

use sprites. make 2 triangles on ms paint, both point-up. 1 green, 1 red. 10x10px.


keep in mind this code is untested...I may have mixed up x and y coordinates...inverse them if it looks wierd


Concept Software: http://concept.dbspot.com

"Hey! HEY! Sir you can't park your car on the - oh...wait...it's not a van, it's just a fat kid!"
Seraf
22
Years of Service
User Offline
Joined: 22nd Feb 2004
Location:
Posted: 30th May 2004 23:06 Edited at: 30th May 2004 23:10
Thanks, I'll experiment with that ^_^ but before I read your post I had somebody help me and this is the code I had so far. Now mine looks a bit different on the making enemies <.< in your code is that so you can have 5 enemies up?

Heres mine o-o

I need some help on making it where I can attack and the enemies have AI where they move around and shoot at you and you have your 3 continues and a score counter. I don't know how to do this x.x
C l a r k
22
Years of Service
User Offline
Joined: 18th Apr 2004
Location: Rhode Island...State motto: Who Cares?
Posted: 1st Jun 2004 00:02 Edited at: 1st Jun 2004 00:10
my code (above) wont work as of now...
I wrote it from a hotel and the hotel manager (ass) kicked me off and I couldnt finish -_-

I cant be arsed at the moment to rewrite the code but here are some snippets for you to work off of.

yes, it could make 100 enemies if you wanted


(this would run off the screen, but you get the idea.)

here's an example of what I did to store info on each of 5 enemies in my game...someone tell us if there's an easier way XD


(by the way, this assumes that your enemy sprite is 10x10px..."inc ex,20" spaces each 10 apart (10 for the next sprite + 10 for a space=20)

I havent gotten to my AI yet, but here's a code to check to see if your ship's sprite is under any of the five enemies. It then randomly (1 out of 4) shoots. (I'll leave out the shoot function...I'll just point it to a code section labeled "eshoot", where the variable "enemynum" tells the code which enemy shot a laser. assume sprite 6 is your ship's sprite, and it's 10x10px.)

this should *theoritcally* work.



hope that helped


EDIT:

I believe this is wrong.


This will work:



Try using for/next loops mroe often, its MUCH more efficient. inc [variable],[number to increase by] helps too. Look at the codes I posted above, and model off those.

Concept Software: http://concept.dbspot.com

"Hey! HEY! Sir you can't park your car on the - oh...wait...it's not a van, it's just a fat kid!"

Login to post a reply

Server time is: 2026-06-09 13:56:02
Your offset time is: 2026-06-09 13:56:02