worklog : halloween shooter 3D

Started by RemiD, October 12, 2024, 11:33:08

Previous topic - Next topic

RemiD

hi  :)

i have started to make a little game about 'halloween' last year (october 2023), but it was only the beginning, work in progress...

i am going to continue to work on it, a little each day, and share my progress / thoughts here.

scenario : 
there is a rumor that during the halloween night, in the woods, there are mushrooms who produce materias (filled with magic energy).
the rumor also says that possessed pumpkins have been seen near these mushrooms.
you are a materias hunter, your goal is to collect the maximum of materias, while avoiding or fighting against the possessed pumpkins, without getting hurt.

2023.10.31 :
-terrain ok
-sky (clouds) ok
-faraway terrain (horizon) ok
-rocks ok
-trees ok
-deadwoods ok
-ferns ok
-mushrooms ok
-pumpkins ok
-player ok

-pumpkins roam in the wood, and when they see a materia, they go to the materia to pick it up.
-player can throw pebbles to hit damage a pumpkin.
-when a pebble hits a terrain, a rock, a trunc, it produces an impact and particles.
-when a pebble hits a pumpkin, it produces an hole in the pumpkin, and damages it.
-when a pumpkin is too damaged, it explodes into parts.
-the pumpkins parts are spread around and when they hit the truncs, the rocks, the others pumpkins, the player, it leaves stains on them. so this will be messy  ;D
.
.
.
to do :
-player can use a machete to hit damage a pumpkin.
-the machete hit produce a wound in the pumpkin, and damages it.
-pumpkins can throw magic fire toward player, if too far
-pumpkins can bite player, if near enough.
.
.
.

RemiD

#1
2024.10.12 :
-when a pumpkin is damaged too much, it explodes.
-the explosion is a (yellow) sphere which increases with decreasing alpha, which spreads (orange) bloods in the air
-the (orange) bloods are spread around and if they collide with player or with another pumpkin, or with a rock or with a tree, or with the terrain, it produces (orange) stains.
-the (orange) stains remains in the environments but are deleted progressively, and those on the player screen slip down and are deleted after some time.

http://rd-stuff.fr/blitz3d/halloween-shooter-3d-20241012-bloods-stains-.mp4

next, i am goind to work on the fighting using the machete, which will produce wounds on the pumpkins and on the trees... but i have to think on how to do that...

RemiD

#2
2024.10.14 :
-i have been experimenting on how i can implement a blade attack (with a machete) and get the hit points when the blade go through a shape ( pumpkin ), so that it can produce a 'cut wound' effect.

here is the result so far (using linepicks from the base of the blade) :
http://rd-stuff.fr/blitz3d/halloween-shooter-3d-20241014-slash-hitpoints-on-shape.mp4

next step :
build a mesh using these hit points as a guide, and make the resulting mesh look like a cut ( wide at the middle, narrow at the extremities )

blinkok

That looks pretty cool. nice work

3DzForMe

Love the way the pumpkin explodes over the 'Camera's' Lens, and the markers for the slash marks on your associated texture which I imagine you'll colourise then apply.

Are you thinking of randomizing the amount of slashes that'll cause a pumpkin 'exploding incident?
BLitz3D, IDEal, AGK Studio, BMax, Java Code, Cerberus
Recent Hardware: Lenovo Re-furb'd Laptop
Oldest Hardware: Commodore Amiga 1200 with 1084S Monitor & Blitz Basic 2.1

RemiD

QuoteLove the way the pumpkin explodes over the 'Camera's' Lens
;D

Quotethe markers for the slash marks on your associated texture which I imagine you'll colourise then apply.
it will only be a separate mesh which will follow the pumpkin outside surface, and colored in yellow fullbright, similar to the holes in the pumpkin.
the markers (picked points after linepicks) are used to create the vertices.

RemiD

2024.10.16 :
- i have not managed to build a rectangle mesh which follows the outside of the surface of the pumpkin, to represent a cut (after the blade has hit the pumpkin at different points), because sometimes the returned normal is incorect, it is not often but it happens, (it seems to be along the edge between 2 triangles), and then i can't position the vertices correctly...
- i have found a workaround, to represent a cut, by using scaled cubes, which follow the hit points where the blade has gone through the pumpkin, which is not the render that i want, but this will be good enough for now.

http://rd-stuff.fr/blitz3d/halloween-shooter-3d-20241016-cutmark-with-scaled-cubes.mp4

RemiD

2014.10.17 :
- i have managed to build a rectangle mesh, which follows the picked points of the outside of the surface of the pumpkin, but the problem is that i don't manage to create the vertices in a way that they always stay outside of the surface of the pumpkin.
for now i use aligntovector() to oriente a hitmarker towards the next hitmarker, and then tformpoint() to dertermine a vertex position (at left and at right of the hitmarker), but the problem is that aligntovector() considers the vector thishitmarker -> nexthitmarker, and not the normal of the picked face (associated to the picked point), and therefore the 'alignment' of the rectangle mesh is incorrect.

i have an idea on how to solve this, but i will need a math formula...

RemiD

2024.10.18 :
-i have added a machete, and for now i have decided to use the cut marks using scaled cubes, this looks good enough, imo.

http://rd-stuff.fr/blitz3d/halloween-shooter-3D-20241018-machete-cutmarks.mp4
;D

RemiD

#9
2024.10.19 :
- player can fly by using energy from the materias he has collected, but each time he uses this 'power', this will decrease his number of materias.
-player can sprint by using energy from the materias he has collected, but each time he uses this 'power', this will decrease his number of materias.
- player can collect more materias around 'magic' mushrooms.
- player can collect more materias by destroying 'magic' pumpkins.

http://rd-stuff.fr/blitz3d/halloween-shooter-3D-20241019-player-can-fly-with-energy-from-materias.mp4

this is quite fun to play, but i have to rewrite the detect collisions / reposition player procedure, because now that player can fly everywhere (and lands everywhere) it is a little buggy. :))

i always use linepicks and pickables (low tris meshes) for the collisions system in my games, and overall it works well. (when the code is correct...). :)

RemiD

2024.10.21 : 
i am trying to create 2 different attacks using the machete :
one fast 'slash' attack while player is on the ground, which will cause x1 damage.
one charged powerful 'slash' attack while player is on the air, which will cause x3 damage.

but of course it is more complicated than what i thought, so i have to rewrite this part of the code...  :-\

RemiD

2024.10.22 :
i have managed to create 2 different 'slash' (attacks) using the machete.
-one can be done when on the ground and is a fast 'slash' (several fast 'slashes' can be done one after the other)
-one can be done when in the air and is a powerful charged 'slash' (only one powerful charged 'slash' can be done, on a target pumpkin which is below and near enough and in front enough)

i had to rewrite the code with more 'states', because once the player triggers a powerful charged 'slash', he cannot do anything until the animation / movement is finished.

http://rd-stuff.fr/blitz3d/halloween-shooter-3D-20241022-fastslash-powerslash.mp4

the result is quite fun to play. ;D

MrmediamanX

It's coming along well. I'm just working on little Halloween themed 2d platformer shooter.
It's a thing that doe's when it don't..

RemiD

@MrmediamanX >> thanks, i try to implement one more 'idea' each day  :)

i am trying to add some simple 'physics' to the game, so that when a pumpkin is hit, or when the player is hit, it will push it / him.


QuoteI'm just working on little Halloween themed 2d platformer shooter. I'm just working on little Halloween themed 2d platformer shooter.
good ! curious to see what you will manage to make. i often like your games.

3DzForMe

RemiD, awesome progress pal - love how its looking!!!
BLitz3D, IDEal, AGK Studio, BMax, Java Code, Cerberus
Recent Hardware: Lenovo Re-furb'd Laptop
Oldest Hardware: Commodore Amiga 1200 with 1084S Monitor & Blitz Basic 2.1