I made a simple Tower demo!

Made something in Assembly? Show it off, and tell us how it works...
Absolute beginners welcome... we want to see what you've done!
Forum rules
There is a special rule on this forum...
This forum is intended to offer equal amounts encouragement and constructive feedback...
Therefore, if you say 2 negative things about someones work, you must think of 2 or more equally positive things...

Eg: "Great first effort, the idea is absolutely fascinating... However I noticed a few bugs, and maybe the graphics could be improved..."

If you can't think of anything good to say, then don't say anything!

If we don't encourage newbie programmers they won't have the confidence and motivation to stick at it and become great programmers! *speaking from experience*
Post Reply
CurlyPaul
Posts: 14
Joined: Sun May 09, 2021 11:24 am

I made a simple Tower demo!

Post by CurlyPaul » Tue Jul 06, 2021 12:55 am



Still a long way to go, but imagine it with the each row running at a slightly different speed, and the xPos of each row undulating :)


It's using a heatmap(?) of sorts to draw the colours.. a single row of pixels is defined in memory, with the first three bits of each pixels data available for me to specify brightness, and the last one reserved to toggle between purple and blue...

So darkest blue in palette idx 0000, and the darkest purple is in 1000, the second darkest blue is in 0001, and the next purple in 1001, and so on. It worked pretty well in terms of making it easy to calculate what colour I should be drawing the squares, but I'm not yet sure how I can draw pixel A and B in different colours to each other, I've got some ideas though!

This has been immense fun so far

The code if anyone is interested. It's hugely wasteful, but my next task is to stream line as much as a I can
https://github.com/CurlyPaul/cpc-z80-twisting-tower

User avatar
akuyou
Posts: 566
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Re: I made a simple Tower demo!

Post by akuyou » Sun Jul 11, 2021 3:37 am

That looks fantastic!... You said you're looking to optimize it more... are you planning to turn it into a game?

I remember there was a cpc game with a tower effect... but I can't remember the name!
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

CurlyPaul
Posts: 14
Joined: Sun May 09, 2021 11:24 am

Re: I made a simple Tower demo!

Post by CurlyPaul » Sun Jul 11, 2021 12:18 pm

akuyou wrote: Sun Jul 11, 2021 3:37 am That looks fantastic!... You said you're looking to optimize it more... are you planning to turn it into a game?

I remember there was a cpc game with a tower effect... but I can't remember the name!
Thank you!!

Probably not a game, but I'm going to set to music and make it do more interesting things... hopefully you'll see a demoscene release featuring a shiny tower one day :)

Been working it over a lot and actually just breached 30fps by using ldir to copy each row of the blocks, rather than to calculate it. Seems obvious with hindsight.. still more to squeeze out but I need to repurpose the registers so that I can detangle it further and real life is calling.

The game you are thinking of is Nebulus, which I'd never heard of but everyone I've showed ilrhis to has mentioned it to me lol

CurlyPaul
Posts: 14
Joined: Sun May 09, 2021 11:24 am

Re: I made a simple Tower demo!

Post by CurlyPaul » Sun Jul 11, 2021 12:23 pm

I can't thank you enough for explaining all of this in a way that I understood.

I've only done the beginner series, I still need to look at the pixel plotting, screen mirroring, border rupture and full screen mode tutorials. I'll be well on my way to demoscene god once I've absorbed those :)

User avatar
YQN
Posts: 16
Joined: Sat Aug 10, 2019 7:01 pm
Contact:

Re: I made a simple Tower demo!

Post by YQN » Mon Aug 23, 2021 4:19 pm

akuyou wrote: Sun Jul 11, 2021 3:37 am That looks fantastic!... You said you're looking to optimize it more... are you planning to turn it into a game?

I remember there was a cpc game with a tower effect... but I can't remember the name!
I guess you're thinking about Nebulus? https://youtu.be/aI2UHTT18bs?t=55

CurlyPaul
Posts: 14
Joined: Sun May 09, 2021 11:24 am

Re: I made a simple Tower demo!

Post by CurlyPaul » Sat Dec 04, 2021 2:39 am

YQN wrote: Mon Aug 23, 2021 4:19 pm
akuyou wrote: Sun Jul 11, 2021 3:37 am That looks fantastic!... You said you're looking to optimize it more... are you planning to turn it into a game?

I remember there was a cpc game with a tower effect... but I can't remember the name!
I guess you're thinking about Nebulus? https://youtu.be/aI2UHTT18bs?t=55
Everyone said this, but I'd not actually heard of the game until I showed people this video! The Nubulus tower is pretty impressive.

The inspiration was this video below which explains their tower very well.

https://youtu.be/gRzKAe9UtoU

Post Reply

Return to “Show and Tell”