CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: 123outerme on March 22, 2015, 04:28:28 PM

Title: [CSE Basic] D-Fend
Post by: 123outerme on March 22, 2015, 04:28:28 PM
So lately, I have been working on a certain new project in math, which I talked about in my latest post in my topic for Flatforme. Written in pure CSE Basic, this project is a "defender" game where you defend your side of the screen against evil people or whatever. (Does this even need a story?)

Anyway, it's a shoot-em-up with unique controls: to fire a laser blast, you have to rapidly tap the XTON button, charging it up. Pressing 2nd will fire the laser when it's charged, and pressing Alpha will use a special attack, if ready.

Enemies charge at you in four "lanes". Hitting them with a laser will knock them back to the start. Using the special initially unlocked will knock all four enemies back to the start, but you will have to wait quite a while to use it again. There are 3 difficulty modes: Boring (easy), Normal (medium), and Unforgiving (Hard). As the game progresses, the enemies speed up, based on your difficulty setting. You can also purchase new abilities (passive or ALPHA super abilities) in the Shop, where you can spend Gold and equip new abilities.

(http://i.imgur.com/r42t66y.gif)
Download is attached.
Title: Re: [CSE Basic] D-Fend
Post by: Snektron on March 22, 2015, 04:31:59 PM
Looks neat  :D
Title: Re: D-Fend
Post by: CKH4 on March 22, 2015, 04:42:07 PM
Looks pretty cool, maybe you could move the laser down like 2px? Unless its intentionally at the top of the 0?
Title: Re: D-Fend
Post by: 123outerme on March 22, 2015, 04:45:21 PM
Quote from: CKH4 on March 22, 2015, 04:42:07 PM
Looks pretty cool, maybe you could move the laser down like 2px? Unless its intentionally at the top of the 0?
It's on top of the O just in case you move and fire before the game has time to make the dot an X. That way, it'll erase the dot.
Title: Re: D-Fend
Post by: CKH4 on March 22, 2015, 04:55:23 PM
Oh, very interesting. That is cool.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 22, 2015, 06:00:55 PM
Interesting. What doea it mean when enemies change to X characters instead of dots?
Title: Re: D-Fend
Post by: 123outerme on March 22, 2015, 06:59:30 PM
Quote from: DJ Omnimaga on March 22, 2015, 06:00:55 PM
Interesting. What doea it mean when enemies change to X characters instead of dots?
It means that you are on the same "lane" as them, and can fire and push them back. However, due to the way the graphics update, you can move into a new lane and the dot will still be there for a bit. I can't change that.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 23, 2015, 12:15:17 AM
Aah thanks for clarifying. And I'm fine with the late graphic update. I did that in Illusiat 13 item menu to speed cursor movement up. Item descriptions will appear only once you stop moving it. Maybe make the X green?
Title: Re: D-Fend
Post by: Unicorn on March 23, 2015, 01:38:35 AM
The X should be purple. This is looking cool Outerme!
Title: Re: D-Fend
Post by: 123outerme on March 24, 2015, 08:43:27 PM
Quote from: DJ Omnimaga on March 23, 2015, 12:15:17 AM
Aah thanks for clarifying. And I'm fine with the late graphic update. I did that in Illusiat 13 item menu to speed cursor movement up. Item descriptions will appear only once you stop moving it. Maybe make the X green?
Yeah. It was really the only plausible option, other than having the enemies in a For( list, but that would make gameplay stuttery.
Quote from: Unicorn on March 23, 2015, 01:38:35 AM
The X should be purple. This is looking cool Outerme!
Thanks! I'll think if I want to make the enemies another color. I probably will, though.

Anyway, today I added unlockable powers. Your game score is added on to your "Gold" as I call it (it's a F2P game!!!1!) after you finish a game. Use this gold to purchase new passive abilities or swap out your ALPHA super move! I have only one passive ability and two ALPHA super moves completed, but I might add more.
Title: Re: D-Fend
Post by: CKH4 on March 24, 2015, 08:46:10 PM
Yay for update. That sounds like a cool addition.
Title: Re: D-Fend
Post by: alexgt on March 24, 2015, 08:55:42 PM
Looks cool wish I could try it
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 24, 2015, 10:18:53 PM
Ooh I like the gold idea. Kinda like achievement points on Xbox Live that lets you buy more DLCs and stuff, but in your case nothing can be purchased with real money. Keep up the good work. :)
Title: Re: D-Fend
Post by: Duke "Tape" Eiyeron on March 25, 2015, 08:04:21 AM
Wait, can the G points be used to buy things? Isn't it just to see who is DA_best_xx? Are you thinking instead of Live points which are bought from real money?
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 25, 2015, 04:28:48 PM
Actually wait, nevermind, we can't (although some countries got the rewards program). But that could be an idea for 123outerme's game.
Title: Re: [CSE Basic] D-Fend
Post by: 123outerme on March 25, 2015, 08:47:54 PM
Quote from: Duke "Tape" Eiyeron on March 25, 2015, 08:04:21 AM
Wait, can the G points be used to buy things? Isn't it just to see who is DA_best_xx? Are you thinking instead of Live points which are bought from real money?
Quote from: DJ Omnimaga on March 25, 2015, 04:28:48 PM
Actually wait, nevermind, we can't (although some countries got the rewards program). But that could be an idea for 123outerme's game.

I might add a slot for a highscore in the save list. Since I already am using a list to store save data, I should probably add that as well.
Title: Re: D-Fend
Post by: Duke "Tape" Eiyeron on March 26, 2015, 08:10:10 AM
Yeah, highscore increases replay value and sharing the game to others to make some sort of competition, it's a nice idea.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 26, 2015, 03:20:14 PM
That would indeed be a nice idea. Of course people can tamper with highscores so a competition is out of the question, but people cheating will get bored of any game anyway. It's people that don't cheat that would benefit from a rewards system.
Title: Re: [CSE Basic] D-Fend
Post by: Snektron on March 26, 2015, 04:41:58 PM
Android data region editors? :3
nah i only use that when apps are giving really unfair rewards and/or have you pay for better rewards
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 26, 2015, 04:54:34 PM
Lol you. But yeah the thing with cheating is that it ruins the game fun and especially replay value anyway. I only do it if a game level is just impossible to beat without TAS'ing it frame by frame or if it's a game that is glitched like hell. But in the latter case, most glitchy games aren't fun to play anyway :P
Title: Re: [CSE Basic] D-Fend
Post by: 123outerme on March 27, 2015, 01:36:24 AM
I will probably encrypt at least the Gold data and high score data, but maybe the items purchased record as well. I like the idea for a high score, so I'll work on it. I haven't been able to get a lot done because of batting practice, homework, and school.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 27, 2015, 04:33:25 AM
Good luck adding those features :).
Title: Re: D-Fend
Post by: 123outerme on March 28, 2015, 12:51:30 AM
Quote from: DJ Omnimaga on March 27, 2015, 04:33:25 AM
Good luck adding those features :).
Thanks! I actually just added them.
High score is displayed on the main menu and while playing the game, but it doesn't update while playing the game. After you quit, if your score is a new high score, it is updated. The color text represents the difficulty at which your high score was achieved. Also, the data has been encrypted now. The file in the OP is updated with the new file.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 28, 2015, 08:30:30 AM
Oh I like the color idea :D. I will try the game update when I have a chance.
Title: Re: D-Fend
Post by: Dream of Omnimaga on April 16, 2015, 05:18:52 PM
So I tried this finally and it's not bad, although having to mash the XTON key to charge can be a bit annoying. I would suggest using DEL instead for that purpose, since it allows the player to hold the key down. Perhaps also make enemies move faster over time because I played for a minute or two and they always moved at the same interval of pixels it seems.
Title: Re: D-Fend
Post by: 123outerme on April 18, 2015, 07:51:59 PM
Quote from: DJ Omnimaga on April 16, 2015, 05:18:52 PM
So I tried this finally and it's not bad, although having to mash the XTON key to charge can be a bit annoying. I would suggest using DEL instead for that purpose, since it allows the player to hold the key down. Perhaps also make enemies move faster over time because I played for a minute or two and they always moved at the same interval of pixels it seems.
As the score increases, the speed also increases. It's most notable in Unforgiving and least in Boring difficulty. I'll change that, thanks :)
Title: Re: D-Fend
Post by: Dream of Omnimaga on April 19, 2015, 06:15:20 PM
Aah right. Thanks for pointing out :).
Title: Re: [CSE Basic] D-Fend
Post by: Dudeman313 on March 15, 2016, 08:32:36 PM
I think I found a bug. :(

I was playing this on my CE for speediness and fun,
and I had a HS of 32 because it was my first time playing.
When I lost(the X hit the character), I got an error and had to exit.
When I re-entered the prgm, I my HS was 1.375.  :-|
Title: Re: [CSE Basic] D-Fend
Post by: 123outerme on March 16, 2016, 08:38:42 PM
Quote from: Dudeman313 on March 15, 2016, 08:32:36 PM
I think I found a bug. :(

I was playing this on my CE for speediness and fun,
and I had a HS of 32 because it was my first time playing.
When I lost(the X hit the character), I got an error and had to exit.
When I re-entered the prgm, I my HS was 1.375.  :-|
IIRC, the game "encrypted" data on exit. Thanks for playing it! And sorry about that DX
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 16, 2016, 08:52:35 PM
On a side note, I wonder if an xLIBC version of this game would be cool?
Title: Re: [CSE Basic] D-Fend
Post by: Dudeman313 on March 16, 2016, 09:13:31 PM
Quote from: 123outerme on March 16, 2016, 08:38:42 PM
Quote from: Dudeman313 on March 15, 2016, 08:32:36 PM
I think I found a bug. :(

I was playing this on my CE for speediness and fun,
and I had a HS of 32 because it was my first time playing.
When I lost(the X hit the character), I got an error and had to exit.
When I re-entered the prgm, I my HS was 1.375.  :-|
IIRC, the game "encrypted" data on exit. Thanks for playing it! And sorry about that DX
Oh. And can you tell me why after a bit the character turns blue?

Quote from: DJ Omnimaga on March 16, 2016, 08:52:35 PM
On a side note, I wonder if an xLIBC version of this game would be cool?
Probably. I'd love to see the result. :D
Title: Re: [CSE Basic] D-Fend
Post by: c4ooo on March 16, 2016, 10:15:08 PM
Awsome to see another cool game from you, pushing the limits of ti-basic!
Title: Re: D-Fend
Post by: 123outerme on March 17, 2016, 12:16:55 AM
Quote from: DJ Omnimaga on March 16, 2016, 08:52:35 PM
On a side note, I wonder if an xLIBC version of this game would be cool?
I'm trying to think how that would work. With xLIBC, I have the chance to make everything more detailed, but I'm not sure where I'd get any of these details from though. Possibly.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 17, 2016, 12:26:00 AM
Do you mean you might need sprites? I'm thinking that some ROL3 and Metroid II: Expansion sprites could be used, if colorized.
Title: Re: [CSE Basic] D-Fend
Post by: Dudeman313 on March 17, 2016, 01:53:33 AM
Or maybe Joe Pemberton's Phantom Star sprites? That'd be pretty cool-looking.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 17, 2016, 05:32:26 AM
That could work if they can be re-used. That said I already have a bunch of colored sprites or ones that could easily be colored, so he would be free to use them.
Title: Re: [CSE Basic] D-Fend
Post by: Dudeman313 on March 17, 2016, 01:54:08 PM
What do the sprites look like?
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 17, 2016, 06:48:05 PM
(http://img.codewalr.us/alienshipspacesprites.png)

Actually they're not all space ship sprites (some are just monsters and one is a wall tile), but all of those could easily be used for a space shooter. The yellow ship is actually Samus Aran's ship, though. The sprites on white background are all from The Reign of Legends 3.
Title: Re: [CSE Basic] D-Fend
Post by: Dudeman313 on March 17, 2016, 08:08:46 PM
Cool. I think @123outerme could definitely use these is the game, or something similar.
I like that wall tile. Maybe that could replace "X" as the enemies.
Title: Re: [CSE Basic] D-Fend
Post by: 123outerme on March 20, 2016, 12:27:30 AM
All this looks pretty good! I meant that I needed inspiration, and now I don't even really need it anymore since these nice sprites looks good! If I ever have nothing better to do, I'll try to remake this.
Title: Re: [CSE Basic] D-Fend
Post by: Dudeman313 on March 20, 2016, 02:50:57 AM
That's good to hear! And if you ever need any additional sprite art, just let me know and give me a size! ;)
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 22, 2016, 06:09:24 AM
I guess it was a good thing that I keep a copy of some of those old sprites for easier digging up in case someone wanted to use them later. :P I sometimes get bored too and colorize some of my old stuff without necessarily planning to use them, but then other people can benefit. Also with xLIB speed shouldn't be a big issue so an xLIBC port of this would probably not be too slow. Else if you decide to make PC or Android games in the future that works too :)
Title: Re: D-Fend
Post by: 123outerme on March 23, 2016, 02:19:06 PM
Quote from: DJ Omnimaga on March 22, 2016, 06:09:24 AM
I guess it was a good thing that I keep a copy of some of those old sprites for easier digging up in case someone wanted to use them later. :P I sometimes get bored too and colorize some of my old stuff without necessarily planning to use them, but then other people can benefit. Also with xLIB speed shouldn't be a big issue so an xLIBC port of this would probably not be too slow. Else if you decide to make PC or Android games in the future that works too :)
My next platform I want to work with will probably be Android, so it's possible I could port it. As for now, I'll keep on the CSE for at least a little while longer.
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 23, 2016, 04:39:48 PM
If you ever make touchscreen RPGs, don't use a virtual d-pad by default. This can be annoying to control. It's better to just use do like MMORPGs where clicking somewhere makes the character go in that direction.
Title: Re: D-Fend
Post by: 123outerme on March 23, 2016, 05:32:59 PM
Quote from: DJ Omnimaga on March 23, 2016, 04:39:48 PM
If you ever make touchscreen RPGs, don't use a virtual d-pad by default. This can be annoying to control. It's better to just use do like MMORPGs where clicking somewhere makes the character go in that direction.
As I started out on calculators, it might be a habit to use a D-Pad for controls, but I'll be sure to break that habit for RPGs. Thanks for the suggestion!
Title: Re: D-Fend
Post by: Dream of Omnimaga on March 24, 2016, 05:03:04 PM
Maybe you could use both actually, Most MMORPGs allows the use of both. The main issue with virtual d-pads is that our hands often end up at the wrong place due to lack of physical buttons. I once bought Secret of Mana for mobile and regretted it. And I couldn't stand playing NES games on mobile either.
Title: Re: D-Fend
Post by: 123outerme on March 24, 2016, 06:12:44 PM
Quote from: DJ Omnimaga on March 24, 2016, 05:03:04 PM
Maybe you could use both actually, Most MMORPGs allows the use of both. The main issue with virtual d-pads is that our hands often end up at the wrong place due to lack of physical buttons. I once bought Secret of Mana for mobile and regretted it. And I couldn't stand playing NES games on mobile either.
To test, I'd probably add a V-DPad until I can get the auto-moving code to work, then give the option of either. But that's long into the future.