Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI 68K => Topic started by: spengo on January 17, 2006, 06:54:00 pm

Title: Star Blaster
Post by: spengo on January 17, 2006, 06:54:00 pm
QuoteBegin-"Tyler"+-->
QUOTE ("Tyler")

Star Blaster is my latest project for the 68k Calculators coded in C. I got inspiration for coding this game because there used to be a great game out on the internet called Wormholes. Well Centerfleet.com has seemed to have shutdown for some reason so now I am coding Star Blaster Now.

Game Story:
A group of Human Martian Rebels have decided to isolate Earth from Mars so Mars can have it's own Government System. These rebels are going to extreme limits of killing many innocent people to take over Mars. A group of Elite Star Fighters have been sent out to defend and protect the Space Carriers carrying in Military Troops from many countries to restore control of Mars. May your senses guide you well in your Journey, young Wieger....

Features:
-Linkplay (supports linkplay because 89/89TI and 92+/v200)
-Grayscale Support
-Upto 8 AI
-Campaign
-Skirmish Game
-Map Editor
-3 to 5 Space Ships to choose from
-About 6 weapon upgrades
-About 4 armor upgrades
-A nice Main Menu

Game Progress:
Sprites Status: 0 Sprites (0%)
Coding Status: 0 Lines (0%)
Project Status: 3% (0.5 Hours)

Todo:
-Some more Sprites

Done:
-Most of Sprites

Current Challenges:
-Drawing Sprites (stickmen are bad enough)


Will be a top down space shooter with 20 directions and cool stuff like that. I decided to take the small job of creating greyscale sprites for it 'cause I like drawing spaceships. Anyways, most of them are done and can be viewed here: http://www.calcforge.org/forum/index.php/topic,27.0.html
Title: Star Blaster
Post by: Ranman on January 17, 2006, 07:33:00 pm
Awesome looking sprites... You just missed a Pixel Art contest featuring spaceships.

The game sounds good so far. Are you planning on rotating the sprites to support the 20 directions? If so, are you going to rotate them at runtime? Or, are you going to draw all rotated sprites beforehand?

Keep us up to date as details emerge! ;)wink.gif
Title: Star Blaster
Post by: spengo on January 17, 2006, 07:40:00 pm
He says he has something that can rotate the sprites automatically so I don't have to draw a bajillion rotations of each sprite. I don't know how it works exactly, I'm not the one doing the coding.
Title: Star Blaster
Post by: DJ Omnimaga on January 18, 2006, 02:52:00 am
wow cool stuff sdpengo, you seem pretty great at pixel art, i hope this project gets finished :)smile.gif
Title: Star Blaster
Post by: Tyler on January 18, 2006, 03:20:00 am
Yes, I am going to allocate a ton of space for the ships than I am going to use joeyadam's rotation functions from ExtGraph 2.00 Beta 5 to rotate them. This means with all these ships I will need a loading bar. Oh well, it should not load at startup any longer than 4 seconds at the beginning  B)cool.gif

Now the trick is to try to speed up the rotation process   :dang:banghead.gif
Title: Star Blaster
Post by: DJ Omnimaga on January 18, 2006, 03:31:00 am
cool, now if only I didnt quitted calc programming and had a 68k handy :Dbiggrin.gif
Title: Star Blaster
Post by: Ranman on January 18, 2006, 03:42:00 am
QuoteBegin-Tyler+18 January 2006, 9:2-->
QUOTE (Tyler @ 18 January 2006, 9:20)
Yes, I am going to allocate a ton of space for the ships than I am going to use joeyadam's rotation functions from ExtGraph 2.00 Beta 5 to rotate them. This means with all these ships I will need a loading bar. Oh well, it should not load at startup any longer than 4 seconds at the beginning  B)cool.gif

Now the trick is to try to speed up the rotation process   :dang:banghead.gif

 Are you going to rotate dynamically, or just once at startup?
Title: Star Blaster
Post by: kalan_vod on January 18, 2006, 05:08:00 am
QuoteBegin-xlibman+18 January 2006, 9:31-->
QUOTE (xlibman @ 18 January 2006, 9:31)
cool, now if only I didnt quitted calc programming and had a 68k handy :Dbiggrin.gif

 You don't have to program in order to play a game! (though it may be usefull to have a 68k for playing the game  :dang:banghead.gif .
Title: Star Blaster
Post by: Spellshaper on January 18, 2006, 05:13:00 am
QuoteBegin-kalan_vod+18 January 2006, 17:08-->
QUOTE (kalan_vod @ 18 January 2006, 17:08)
QuoteBegin-xlibman+18 January 2006, 9:31-->
QUOTE (xlibman @ 18 January 2006, 9:31)
cool, now if only I didnt quitted calc programming and had a 68k handy :Dbiggrin.gif

You don't have to program in order to play a game! (though it may be usefull to have a 68k for playing the game  :dang:banghead.gif .

well, there are still those emulat0rz... ;)wink.gif
Title: Star Blaster
Post by: Tyler on January 18, 2006, 12:25:00 pm
QUOTE
Are you going to rotate dynamically, or just once at startup?


At startup of course  B)cool.gif
Title: Star Blaster
Post by: Tyler on January 19, 2006, 06:19:00 pm
I uploaded a screenshot of vti loading up Star Blaster, the Game Intializer is just about complete.

QUOTE

This Evening I made the loading screen and sprite rotater. I have allocated ~70KB of ram so far for the Double Grayscale Buffering and Rotated Sprites. It takes about 12 seconds to load the game at startup (I needed a loading bar) and the game itself is ~14KB on calc, but I cannot see it inflating in size for a while becaus e I think the Sprites take about 10KB of that. Well, thats all I have for you right now Tongue


http://www.calcforge.org/forum/index.php/topic,28.0.html
Title: Star Blaster
Post by: Ranman on January 19, 2006, 06:34:00 pm
QuoteBegin-Tyler+18 January 2006, 18:25-->
QUOTE (Tyler @ 18 January 2006, 18:25)
QUOTE
Are you going to rotate dynamically, or just once at startup?


At startup of course  B)cool.gif

If you have a finite amount of directions to rotate -- I believe you stated 20 -- then you could create a lookup table to assist with fast dynamic rotating.

It might be worth a try... you could save 70Kb of RAM. ;)wink.gif
Title: Star Blaster
Post by: Tyler on January 19, 2006, 06:36:00 pm
That is a good idea except that it would slow the game down too much rotating them in game, and I dont want a data file with 20 rotations of each sprite. So it is best just to do it this way :-)
Title: Star Blaster
Post by: Ranman on January 19, 2006, 06:48:00 pm
QuoteBegin-Tyler+20 January 2006, 0:36-->
QUOTE (Tyler @ 20 January 2006, 0:36)
That is a good idea except that it would slow the game down too much rotating them in game

Not necessarily... Look up tables can be quite fast. With a lookup table, there is no trigonometry or floating points to mess with.

QuoteBegin
-->
QUOTE
and I dont want a data file with 20 rotations of each sprite. So it is best just to do it this way :-)

You would not need 20 rotations of each sprite... only 1 original sprite. But, you will need 10 lookup tables to rotate each sprite in the positive direction, then a mirror function to get the negative direction. There are other fancier methods too.

Title: Star Blaster
Post by: Tyler on January 19, 2006, 06:52:00 pm
Would you be able to PM me a code example? Maybe I could do this before I continue on.
Title: Star Blaster
Post by: Ranman on January 19, 2006, 07:23:00 pm
QuoteBegin-Tyler+20 January 2006, 0:52-->
QUOTE (Tyler @ 20 January 2006, 0:52)
Would you be able to PM me a code example? Maybe I could do this before I continue on.

I could look into that... I would continue with your current method for now. What I propose would definitely be a speed hit. However, on the positive side, it would be a BIG memory savings. The big question is will the speed hit be noticeable? I'm not sure. Here are some questions:

- What do you think will be your maximum number of sprites onscreen?
- What are you sprite dimensions? 16x16? 32x32?
- Does your current sprite dimension take into account a 45 degree rotation -- specifically do the rotated "set" bits lie completely within the final sprite dimensions? If you are using common sprite sizes, the maximum dimension to rotate within a 16x16 sprite would be 10x10, and for 32x32 would be 22x22.
Title: Star Blaster
Post by: DJ Omnimaga on January 20, 2006, 02:35:00 am
look nice so far, now we have competition with Skyway :Dbiggrin.gif

will you have background images?
Title: Star Blaster
Post by: Tyler on January 22, 2006, 10:54:00 am
I got it all figured out, working on background images for the levels.
Title: Star Blaster
Post by: spengo on January 22, 2006, 11:05:00 am
Nice, that will be cool. Are they all gonna be like star backgrounds or are there gonna be some levels on the surface of planets too?  
Title: Star Blaster
Post by: Tyler on January 22, 2006, 05:08:00 pm
I took out the Background images because they will cause conflictions with collision detection. Anyways, I added in support for asteroids today. The game allocates 90KB of RAM now :)smile.gif
Title: Star Blaster
Post by: kalan_vod on January 22, 2006, 06:04:00 pm
Sounds nice, and sorry that the background images wont work :(sad.gif.
Title: Star Blaster
Post by: Tyler on January 22, 2006, 06:08:00 pm
It does seem it is possible for background images, sigh, perhaps I will place in about 2, 3 or 4 background images into the game that move around ;)wink.gif
Title: Star Blaster
Post by: kalan_vod on January 22, 2006, 07:05:00 pm
YEAH!!! Sounds even better than before :Dbiggrin.gif.
Title: Star Blaster
Post by: spengo on January 23, 2006, 01:35:00 pm
Woot backgrounds will still be there. :Dbiggrin.gif Ueberness.
Title: Star Blaster
Post by: DJ Omnimaga on January 23, 2006, 02:14:00 pm
awesome...
Title: Star Blaster
Post by: dragon__lance on January 23, 2006, 02:48:00 pm
sound really good!! keep it up :thumb:google.gif
Title: Star Blaster
Post by: Tyler on January 26, 2006, 09:21:00 am
Got the Backgrounds made, had to put all the sprites in a data file, it is going to be about ~36KB in size.
Title: Star Blaster
Post by: DJ Omnimaga on January 26, 2006, 01:07:00 pm
I c , sound cool tho, do you have screenshots to show up?
Title: Star Blaster
Post by: Tyler on January 26, 2006, 02:00:00 pm
I will in a while.