CodeWalrus

Featured Member Projects => Walrii Games (TI/HP/PC/2600) => Topic started by: c4ooo on January 10, 2016, 01:02:15 AM

Title: [TI-83+/84+]The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 10, 2016, 01:02:15 AM
So this was my entry for the CW contest. To download the game, click here (http://www.ticalc.org/archives/files/fileinfo/466/46640.html)
In this game you must spam the up key in order in order to doge (https://sites.psu.edu/kailyu/wp-content/uploads/sites/37144/2015/12/18360-doge-doge-simple.jpg)past spikes and missiles in while collecting coins fish.
Picture
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimgur.com%2F5TNJNzr.png&hash=eb6b3307981cdc1409ee131dccda7840f05cf4e9)
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimgur.com%2Fq89a1cT.jpg&hash=fbdf3ec5d407261629996f65b9785d50cdfee3c1)
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: semiprocoder on January 10, 2016, 01:36:53 AM
Wow that is awesome! The first time I saw that I didn't see the missiles, so I didn't fully get this game.

Also is it just me or are most contestants(eg me) doing something at least remotely related to flappy bird?
Title: Re: The day the walrus flew
Post by: Hooloowalrus on January 10, 2016, 02:08:45 AM

x_DispGSEntry:
di
ld a,$07
out ($10),a ;several cc into
ld de,plotSScreen
ld hl,SaveSScreen
push hl
pop hl
ld a,$80
__DispGSNext:
push af
out ($10),a ;72cc into, 71cc loop
ex (sp),hl ;waste
ex (sp),hl ;waste
nop
nop
ld b,12
ld a,$20
out ($10),a ;71cc into
pop af ;semi waste
inc a
push af ;semi waste
__DispGSLoop:
ld a,(de)
nop
or (hl)
inc de
inc hl
ret c ;waste
out ($11),a ;71cc into, 71cc loop
ret c ;waste
ld a,(hl) ;waste
djnz __DispGSLoop
pop af
cp $C0
jr nz,__DispGSNext
__DispGSDone:
push af
pop af
ld a,$05
out ($10),a ;65+18cc into\
ei
ret
__DispGSEnd:

I have not tested this, so I guess we'll find out if it works.
The hex for axe is
Asm(F3
Asm(3E07D310
Asm(11(L1)21(L6)
Asm(E5E1
Asm(3E80F5D310
Asm(E3E30000
Asm(060C
Asm(3E20D310
Asm(F13CF5
Asm(1A00B6
Asm(1323
Asm(D8
Asm(D311
Asm(D87E
Asm(10F4
Asm(F1FEC0
Asm(20DF
Asm(F5F1
Asm(3E05D310
Asm(FBC9

Sorry if this looks silly, this is how I write assembly in axe, so I understand it. you can put it on one line if you like , but then you can easily accidentally clear everything.

EDIT: when this was originally posted, I had forgot to credit the routine this is based on to Axe's 3-level grayscale routine. It is not my original routine
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 10, 2016, 05:30:55 AM
Hm he cannot use other people's code without losing some originality points, though, due to contest rules (not that it would be severe, though, since this is more a library)

Anyway I like the idea so far @c4ooo . Will difficulty slowly increase over time?
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: JWinslow23 on January 10, 2016, 06:55:41 AM
Quote from: semiprocoder on January 10, 2016, 01:36:53 AM
Wow that is awesome! The first time I saw that I didn't see the missiles, so I didn't fully get this game.

Also is it just me or are most contestants(eg me) doing something at least remotely related to flappy bird?
Well, the "day the walrus started to fly", October 24 2014, is a big deal around here. Obviously someone's gonna come up with the idea at some point. And with every big thing, there are imitators :P

But yeah, this game looks great! I'd redesign the wings for the monochrome version of my sprite, though, but this still looks like it'd be fun to play. Reminds me of what my old cancelled entry would have looked like. Can't wait to play it!
Title: Re: The day the walrus flew
Post by: Unicorn on January 10, 2016, 07:01:41 AM
lol, it seems that flappy bird is a big thing around here :P

Anyways, this looks like fun, and a bit better than flappy bird ;)
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 10, 2016, 08:24:04 AM
Quote from: JWinslow23 on January 10, 2016, 06:55:41 AM
Quote from: semiprocoder on January 10, 2016, 01:36:53 AM
Wow that is awesome! The first time I saw that I didn't see the missiles, so I didn't fully get this game.

Also is it just me or are most contestants(eg me) doing something at least remotely related to flappy bird?
Well, the "day the walrus started to fly", October 24 2014, is a big deal around here. Obviously someone's gonna come up with the idea at some point. And with every big thing, there are imitators :P

But yeah, this game looks great! I'd redesign the wings for the monochrome version of my sprite, though, but this still looks like it'd be fun to play. Reminds me of what my old cancelled entry would have looked like. Can't wait to play it!
Yeah I think the Flappy Birdness of this contest is due to that Walrii flight animation from the CW video last year (around the 2 minutes mark)  or the fact people find the flying walrus to look cute (type /walrii in WalrusIRC :P).

https://www.youtube.com/watch?v=AZVnpnxGG_w
Title: Re: The day the walrus flew
Post by: c4ooo on January 10, 2016, 04:05:35 PM
Quote from: DJ Omnimaga on January 10, 2016, 05:30:55 AM
Hm he cannot use other people's code without losing some originality points, though, due to contest rules (not that it would be severe, though, since this is more a library)

Anyway I like the idea so far @c4ooo . Will difficulty slowly increase over time?
The code is more specialized version of axe's DispGraph, basically it just improves my FPS. If i used the axe rutine i would have to bitwise OR the L1 buffer onto the L6 buffer and then copy to the LCD, but Hooloo's routine automatically copies the both buffers simultaneously. ;)

I deffenitly wont look into increasing difficulty within the 10 day deadline :P Right now i am worried because the game might be a bit to hard :/

Todo: reply to all the other ppl :P
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 11, 2016, 09:32:40 AM
You could post a video or animated screenshot of how it looks like
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 18, 2016, 06:18:22 PM
Yea i probably will when the contest is over :P
I [badly] implemented colision with fish, as well as a scoring system, so i am going to send the entry as soon as i can :D

Also yea, there are some paged on this site that have a flying walrus on them soo...
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 19, 2016, 06:52:03 AM
By badly, do you mean like Big Rigs? :trollface:

Also not only we have pages with Walrii flying on it, but @Streetwalrus profile has a Garfield walrus on caffeine running on it. :P
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 19, 2016, 08:57:47 PM
So I tried what you sent me and I must say it's very fun so far. Also at least it's not as hard as Flappy Bird since you can at least touch the ground :P
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 19, 2016, 10:55:19 PM
Quote from: DJ Omnimaga on January 19, 2016, 08:57:47 PM
So I tried what you sent me and I must say it's very fun so far. Also at least it's not as hard as Flappy Bird since you can at least touch the ground :P
YAY ^.^  ;D ;D :D :) :D
/me is just thankfull that the game is playable :)
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: kegwaan on January 19, 2016, 11:52:47 PM
Looks fun  :thumbsup: ... Can't wait until we (the rest of us) get a chance to play it   :P
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on January 21, 2016, 09:13:51 PM
It's a fun game. I just wish it had a title screen, HS saving, other little things like that.
Title: Re: The day the walrus flew
Post by: alexgt on January 22, 2016, 02:21:11 AM
Looks really cool! There may not be many games in the contest but they are all great!
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 22, 2016, 02:48:23 AM
Quote from: Dudeman313 on January 21, 2016, 09:13:51 PM
It's a fun game. I just wish it had a title screen, HS saving, other little things like that.
After my next semsester starts i will make the title screen look better snd have highscore saving, right now i am trying to make fish collision better ;) (Sometimes when you hit a fish not the whole fish disappears or part of a second fish disappears. Fish collision was also happening a whole 8 horizontal pixels to late <_< )
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 22, 2016, 05:48:55 AM
Yeah, I noticed that sometimes fishes don't disappear completely. Collision seemed fine although a little off. Not that off, though (I saw NES/SNES games with less accurate collision detection :P and one of the calculator Pac-Man clone had dots disappear only when they're all the way into Pac-Man mouth)
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 22, 2016, 03:50:49 PM
Quote from: Unicorn on January 10, 2016, 07:01:41 AM
lol, it seems that flappy bird is a big thing around here :P

Anyways, this looks like fun, and a bit better than flappy bird ;)
Quote from: kegwaan on January 19, 2016, 11:52:47 PM
Looks fun  :thumbsup: ... Can't wait until we (the rest of us) get a chance to play it   :P
Quote from: alexgt on January 22, 2016, 02:21:11 AM
Looks really cool! There may not be many games in the contest but they are all great!
;D ;D ;D ;D ;D


Quote from: DJ Omnimaga on January 22, 2016, 05:48:55 AM
Yeah, I noticed that sometimes fishes don't disappear completely. Collision seemed fine although a little off. Not that off, though (I saw NES/SNES games with less accurate collision detection :P and one of the calculator Pac-Man clone had dots disappear only when they're all the way into Pac-Man mouth)
I aleady fixed collision so that in no longer happens when the fish is half way through you ;) I think i will make the fish more spaced out, as right now it is too hard to programaticly decide the location of the fish, something i must do in order to fill it with white pixels <_<
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 24, 2016, 07:55:22 AM
That reminds me, I wonder if it would be hard to implement an extra obstacle that moves up and down and appear every now and then but cannot appear more than once per screen? For example, it could be a mine.
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 24, 2016, 03:34:25 PM
Quote from: DJ Omnimaga on January 24, 2016, 07:55:22 AM
That reminds me, I wonder if it would be hard to implement an extra obstacle that moves up and down and appear every now and then but cannot appear more than once per screen? For example, it could be a mine.

Not posible without a full game rewrite :/
Right now every thing is draw to a buffer whenit spawns, and the buffer is scrolled right every game tick.
Title: Re: The day the walrus flew
Post by: alexgt on January 24, 2016, 03:38:10 PM
That is sad, but you could add more horizontal obstacles tho.
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: SiphonicSugar on January 25, 2016, 04:05:39 AM
Lol, what if you were to add like walruses on the ground cheering to you because you just started to fly?

Or would that slow the game down too much?
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 25, 2016, 06:11:01 PM
I dont understand what you mean very well, but objects in the background that you cant interact with are possible ;)
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on January 27, 2016, 01:31:31 AM
I added a ticalc download link. Note that the ticalc link might be a newer, slightly bugged version of thw game <_<
http://www.ticalc.org/archives/files/fileinfo/466/46640.html
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on January 28, 2016, 08:13:01 AM
Good to see this uploaded on ticalc. @semiprocoder and @Unicorn should do the same, since their entry are for TI. :P And I see about the moving objects. I guess you could always just use plain inverted squares, but of course if there are two on the screen at once, then that means 4 draws per frame, which could result into a noticeable speed drop.
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on January 28, 2016, 06:08:40 PM
Flappy Walrus? I approve.  ;)
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on February 08, 2016, 11:43:23 PM
Right now i want to make, and sell a PC port. However, i will need some grand ideas to make the gameplay more unique. Stuff like power ups or the game. One idea i have right now is to have a simulation of the original ti-84 and a version with new stuff in the same game. So any ideas on what could be added to this PC game?
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on February 08, 2016, 11:46:51 PM
Yup. I'm your Dude if you need ideas; Just give me some time sitting and doing nothing productive and I'll have come up with at least 
5 more.

- A much bigger playing field
- More pickups
- WalriiMobile?
- Head Starts?
- A shop?
This could be the next best thing since Jetpack Joyride...
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on February 09, 2016, 01:33:14 AM
For power-ups, you could have the following, but I don't know if they could ruin the difficulty, so you might need to add a time limit to them or a cooldown before you can re-use them (or both):

-Laser (destroy what's in front of you instantly and it's not a bullet but rather a simple line that appears instantly)
-Floating (might require changing the controls, but basically you could move up and down freely without any gravity)
-Invincibility

Perhaps lives as well, with increasing level speed and new projectiles such as falling spikes? There could be 1-ups in levels and dying would bring you back at the start of the level or the last checkpoint.

Music (could just be a remix of one of my songs)
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on February 09, 2016, 02:53:54 AM
Power-up idea:
Fishy Fishy- turns all objects into fish except yourself for 15 sec. This shoud be extremely rare.
Title: Re: The day the walrus flew
Post by: c4ooo on February 09, 2016, 03:05:15 AM
Quote from: DJ Omnimaga on February 09, 2016, 01:33:14 AM
Perhaps lives as well, with increasing level speed and new projectiles such as falling spikes? There could be 1-ups in levels and dying would bring you back at the start of the level or the last checkpoint.
Do you think that a health bar system should be or just stick to having multiple lives per run?
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on February 09, 2016, 03:13:33 AM
That could work, but it might make the game too easy if there are still lives. You could simply have just no life and have an health bar that can be replenished by picking some items.

Also to make people have to take decisions, perhaps sometimes there should be two power ups vertically with one being health (to regain some health) and the other being an actual power-up, so the player has to sacrify life regains to get extra power-ups.
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on February 09, 2016, 04:52:08 AM
You could also have a Hard/Expert Mode where there is no health, and once you touch something harmful, you die instantly.
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: c4ooo on March 10, 2016, 03:09:40 AM
Update time!
Things added:
    High scores
    Better colision
    A title screen:
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimgur.com%2F5TNJNzr.png&hash=eb6b3307981cdc1409ee131dccda7840f05cf4e9)
Thanks for all the support! :D
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on March 10, 2016, 04:00:26 AM
Cool! It looks good. If only I still had my monochrome and could have my CE at the same time! I'll just see if I can find time to put it in Wabbit with my sister's ROM.
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on March 10, 2016, 06:41:39 AM
Nice update. Is it already uploaded on ticalc? Also I like the title screen idea. One suggestion I have to save space would be to make it 48x48 or so, then using some Axe code display it on the other half of the screen mirrored. Have the title text as a separate bitmap data and draw it separately at the top.
Title: Re: The day the walrus flew [Game][Axe][z80][contest]
Post by: Dudeman313 on March 10, 2016, 11:50:38 AM
Quote from: DJ Omnimaga on March 10, 2016, 06:41:39 AM
Nice update. Is it already uploaded on ticalc?
Yup. Just checked.
Title: Re: The day the walrus flew
Post by: c4ooo on March 16, 2016, 06:43:11 PM
Quote from: DJ Omnimaga on March 10, 2016, 06:41:39 AM
Nice update. Is it already uploaded on ticalc? Also I like the title screen idea. One suggestion I have to save space would be to make it 48x48 or so, then using some Axe code display it on the other half of the screen mirrored. Have the title text as a separate bitmap data and draw it separately at the top.
This would be a good idea to save memory - except that the title screen only takes 768 bytes, and i have plenty of ram left :)
Title: Re: The day the walrus flew
Post by: DJ Omnimaga on March 16, 2016, 06:57:01 PM
Yeah I was suggesting in case you wanted to save even more memory. :P I also added your topic to the downloads section :3=