Frogger - night mode

Published October 21, 2018
Advertisement

I spent a couple of days adding a procedural splatting terrain texturing system, similar to the one I used in tower defence. However it does run slower than in the Unity version, I suspect gdscript is currently quite a bit slower in Godot (3.05) than C# in Unity.

As a result I've thought about pre-generating some terrain textures as .jpg, compressing them a lot and using them instead of doing it on the fly. This is an option, but I've left it procedural for the time being. The road and rivers are not needing the procedural system, so there is less area that needs doing, so I may get away with it. Certainly an advantage to procedural, as well as variety, is that I can change the terrain around buildings etc should I put them in.

I've started adding some more cameras too. You can now switch between a top down traditional ortho camera, and a perspective low down camera that follows the frog, and shows closeups where necessary.

I've added an easy way to layout each level, I specify the number of tiles of a type (grass, river, road at the moment), then for each row I can specify the type of traffic, speed etc.

And lastly I've been playing with the lighting, experimenting with the spotlight in godot, possibly for a nightmode. I don't know how it will affect performance if I do a mobile version, but certainly the spotlight is fun, and changes the gameplay a little as you sometimes can't see the vehicles coming. I've been thinking of putting a 'spyfrog' slant on things, and this lighting would work for a spy.

I still have to get around to thoroughly debugging the collision areas. I'll probably attach some visible bounding quads to each object to check the bound matches up with the visual rep, it's quite a bit off in some cases which is why you die jumping on certain bits of logs etc.

I will add lily pads soon, and have realised that if I make a snake, it can act just like any other bit of traffic, just moving on the grass.

2 likes 7 comments

Comments

Awoken

I like it, fresh twist on a classic.  The close up zoom is a nice effect too.

October 21, 2018 02:38 PM
lawnjelly
44 minutes ago, Awoken said:

I like it, fresh twist on a classic.  The close up zoom is a nice effect too.

For the close up I've noticed I have to sort the lighting in night mode. Because the frog does a little dance when he reaches the home at the end, and if the light is in the wrong place he is in darkness.

Am going to add some more creatures soon, snake but also some that don't go on rails, I might have an owl that swoops in from above.

October 21, 2018 03:24 PM
Rutin

Nice job man, I love the idea behind night mode. :)  Great victory dance too!

October 21, 2018 05:28 PM
lawnjelly
8 minutes ago, Rutin said:

Great victory dance too!

I might make this longer, and tweak the animation, I was never satisfied with it. The frog just looks like he is squirming, he's not a good dancer. :)

October 21, 2018 05:38 PM
Rutin
Just now, lawnjelly said:

I might make this longer, and tweak the animation, I was never satisfied with it. The frog just looks like he is squirming, he's not a good dancer. :)

Well he dances a lot better than I did on my wedding night!

October 21, 2018 05:38 PM
lawnjelly

And when are you guys starting? Or are you leaving to the last minute? I need some competition! :)

October 21, 2018 05:39 PM
Rutin
1 minute ago, lawnjelly said:

And when are you guys starting? Or are you leaving to the last minute? I need some competition! :)

I'm hoping to pick up again today.... My other project took a turn and new "changes" are required.... so I'm sorting it out, but I should be working daily until it's completed. :) I doubt I'll be putting out anything as cool as you... I still gotta learn Unity. :D 

October 21, 2018 05:43 PM
Awoken
2 hours ago, lawnjelly said:

And when are you guys starting? Or are you leaving to the last minute? I need some competition! :)

I came up with an idea that I'm inspired by and may have time.  I just finished moving this weekend.  I've got to many things I want to do and not enough time.

October 21, 2018 08:34 PM
Rutin
26 minutes ago, Awoken said:

I came up with an idea that I'm inspired by and may have time.  I just finished moving this weekend.  I've got to many things I want to do and not enough time.

Don't let us down!

October 21, 2018 09:00 PM
Awoken
On 10/21/2018 at 3:00 PM, Rutin said:

Don't let us down!

hahaha

October 24, 2018 01:11 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement