News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_ervin

Real-time sprite scaling

Started by ervin, 16:32, 26 June 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ervin

Yes, there is animation, although it's only a few frames.
There is no hit to speed because is simply cycling through the appropriate sprite data for each frame.

sigh

Quote from: ervin on 00:18, 03 August 22Yes, there is animation, although it's only a few frames.
There is no hit to speed because is simply cycling through the appropriate sprite data for each frame.
So, as a test - have you tried using the sprite scaling while something is animating? For instance, the player graphic that you have made?

ervin

Yes, it makes no difference to the speed.
All the program is doing is changing the pointer to the sprite data.
The sprite routine runs the same no matter what frame it is pointing to.
Hopefully I'll have something to show soon.
8)

ervin

Update time!

New features:
- Goatfish sprite
- Tail swishing animation (placeholder only at the moment, indicated by the yellow line through the middle of Goatfish)
- Scoring, shown in an ugly placeholder font under the play area
- Small delay when collecting food, to enhance player feedback
- Scoring when collecting food (score increase depends on which food item is collected)
- Angry Red Block(!)
- Goatfish death upon hitting Angry Red Block(!)


ervin

I've figured out how to handle collisions while bouncing back up.

I was able to use existing routines (with some extra parameters) to check for collisions, and also to very briefly display the tiles being bumped into. It was a relief to get it working after thinking about how to do it for several days!

It makes a surprising difference to the feel of the game. Things "feel" more solid and more 3D with this feature.

sigh

The progress you are making is excellent.

ervin

Brief update time.

After 5 days of being stuck, I've figured out how to make the angry red faces (that cause goatfish to lose a life) move up/down or left/right, using the current data structures.

Should hopefully allow for some more interesting level design.

zhulien

Very impressive scaling.  I wonder if you can warp in realtime using a progressive zoom from no scaling one side of the sprite to scaling on the other so you effectively get a wolfenstein 3d type view.

ervin

#83
That's a very interesting idea, and one I might explore someday.
It would need a lot of rework in the scaling code, but it could certainly be possible.

Quick update on the game I'm working on:
At the moment I'm writing a level editor (in Blitz3D on PC) to allow me to design levels much more quickly.
In the CPC code, I've also got larger "angry" blocks, which can also move around the screen in a limited fashion.

ervin

#84
Wow... where did that month go?!?!

A quick update...

The level editor has been completed and works "well enough".
It's rather clunky and not terribly user friendly, but it will allow me to design levels and create the level data much, much, much more quickly than typing the data in by hand!

In the CPC code, I've had a lot of trouble with bugs, memory usage etc.
Collision detection has been particularly tricky - hopefully I've identified and fixed all the bugs!
Optimisation has been a big focus - if the game is too slow no one will want to play it.

Anyway, the only things left to do are to create the levels and finish the music!
In other words, the game is feature complete, which I am very excited about!  ;D

[EDIT] I've only got 2 weeks left to finish, as I will enter this game into cpcretrodev.

SpDizzy

Been following this thread for long time, Ervin, your improvement is really awesome.
Nice to see you are close to the goal of make it possible in a game.
Good luck with the CPCRetrodev contest!!

ervin

Thanks!

Really looking forward to submitting the game.
I'm also really glad I took the time to write a level editor.
Something to keep in mind for future projects as well.

ervin

#87
Alrighty!
Level 1 is done!
(There will be 3 levels in the game).

I'm very happy to report that the game runs at a playable speed despite all the sprite scaling that is going on.
That was always a big concern, and I finally feel that I will have a somewhat decent game at the end of this.
Whether or not other people like it is another question!  :laugh:

However, the game was a little dull a few days ago, which had me worried.
Adding moving urchins at various points in the level made it much more enjoyable (and a bit more stressful), thankfully.

Also, goatfish's movement into the depths of the ocean was a little slow-paced and potentially tedious, so I played with the idea of a "dive" feature, where pressing space or fire results in doubling the maximum speed, but also doubles energy consumption as well as damage when colliding with an urchin.

It works really well and adds some subtle strategy to the game.
It allows the player to go through familiar areas more quickly, but with a bit of added risk.
It also affects the bounce height, which has pros and cons.

To finish the game, I have 2 more levels to design, and the music to finish.
Can't wait to finally finish this thing!

ervin

Well, this is a remarkably weird feeling.

The game is out in the wild.
https://poppichicken.itch.io/goatfish2

I still need to create and upload the mandatory CDT file, but other than that, it's done!
Enjoy!

awergh

Well done, and with loads of time to spare  :P .
I look forward to trying it out when I get the time.

SpDizzy

Well done Ervin, lookin forward to test it too!! Thanks so much for keeping our belowed micros happy with any new development. Best wishes on the contest!

Devlin

Quote from: ervin on 15:23, 01 November 22Well, this is a remarkably weird feeling.

The game is out in the wild.
https://poppichicken.itch.io/goatfish2

I still need to create and upload the mandatory CDT file, but other than that, it's done!
Enjoy!
good gods, yes. I love it. I need more levels :3
CPC464 & CPC6128 + USIfAC II + Revaldinho 512k(universal cpld ver) - Schneider CRT TV
Administrator of Amstrad Discord : https://discord.gg/ksWvApv

Ast

Quote from: ervin on 14:54, 14 August 22Update time!

New features:
- Goatfish sprite
- Tail swishing animation (placeholder only at the moment, indicated by the yellow line through the middle of Goatfish)
- Scoring, shown in an ugly placeholder font under the play area
- Small delay when collecting food, to enhance player feedback
- Scoring when collecting food (score increase depends on which food item is collected)
- Angry Red Block(!)
- Goatfish death upon hitting Angry Red Block(!)


Spectacular ! Hey, we are on cpc men !
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

GOB

Excellent, I just tested your game on my cpc+, it's really impressive. As much as I loved the first goatfish, this one is also a success.
Cheer !!!

ervin

Quote from: awergh on 16:13, 01 November 22Well done, and with loads of time to spare  :P .
I look forward to trying it out when I get the time.

Yes it was a bit close to the deadline wasn't it?
:laugh:

ervin

Quote from: SpDizzy on 16:39, 01 November 22Well done Ervin, lookin forward to test it too!! Thanks so much for keeping our belowed micros happy with any new development. Best wishes on the contest!

Thanks! I hope you enjoy it.

ervin

Quote from: Devlin on 19:44, 01 November 22
Quote from: ervin on 15:23, 01 November 22Well, this is a remarkably weird feeling.

The game is out in the wild.
https://poppichicken.itch.io/goatfish2

I still need to create and upload the mandatory CDT file, but other than that, it's done!
Enjoy!
good gods, yes. I love it. I need more levels :3

Oh wow, have you already finished it?

ervin

Quote from: Ast on 21:03, 01 November 22
Quote from: ervin on 14:54, 14 August 22Update time!

New features:
- Goatfish sprite
- Tail swishing animation (placeholder only at the moment, indicated by the yellow line through the middle of Goatfish)
- Scoring, shown in an ugly placeholder font under the play area
- Small delay when collecting food, to enhance player feedback
- Scoring when collecting food (score increase depends on which food item is collected)
- Angry Red Block(!)
- Goatfish death upon hitting Angry Red Block(!)


Spectacular ! Hey, we are on cpc men !

Thanks!

ervin

Quote from: GOB on 22:04, 01 November 22Excellent, I just tested your game on my cpc+, it's really impressive. As much as I loved the first goatfish, this one is also a success.
Cheer !!!

Thank you!
Glad to hear it works properly on a real machine.
I haven't been able to test it on a real CPC.

Devlin

Quote from: ervin on 23:36, 01 November 22
Quote from: Devlin on 19:44, 01 November 22
Quote from: ervin on 15:23, 01 November 22Well, this is a remarkably weird feeling.

The game is out in the wild.
https://poppichicken.itch.io/goatfish2

I still need to create and upload the mandatory CDT file, but other than that, it's done!
Enjoy!
good gods, yes. I love it. I need more levels :3

Oh wow, have you already finished it?
That I did. Have yet to put it on my 464 but will try it tomorrow 
CPC464 & CPC6128 + USIfAC II + Revaldinho 512k(universal cpld ver) - Schneider CRT TV
Administrator of Amstrad Discord : https://discord.gg/ksWvApv

Powered by SMFPacks Menu Editor Mod