SyntaxBomb - Indie Coders

General Category => Worklogs => Topic started by: Amon. on August 14, 2021, 09:54:54

Title: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 09:54:54
Here is the start of my OneJump platformer game entry for the 'There can be only one' competition. Updates on this will be posted here.

(https://amon.pro/storage/OneJump.jpg)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 10:30:52
Testing out collisions and jumping. The game is controlled, as per the rules of the comp, by one button. The mouse-left button.

Animations are done and flip axis perfectly. There were a few problems with the collision where if they collided with eachother they would get stuck and go batshit. That's fixed though.

(https://amon.pro/storage/OneJumpTest.gif)

Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: MrmediamanX on August 14, 2021, 10:48:17
Man that was quick, I'll need to revise what i'm doing due the no longer requiring the use of vector line art.
It's looking like a solid start there.  :)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 11:06:51
Lol, thanks dude. Yeah, once you know what plan of attack you have to code something it is pretty much easy going. You have to try and avoid feature creep though cos that will kill your dev time.

:)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: 3DzForMe on August 14, 2021, 13:52:08
They're out of the starting gates already, promising looking start  ;D
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 21:47:41
new gif up.

(https://amon.pro/storage/OneJumpTest.gif)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: 3DzForMe on August 14, 2021, 21:54:28
My Lord - the bar is exceptionally high already - the disc chainsaw is an awesome back drop  8)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Qube on August 14, 2021, 21:55:40
@Amon - If I'm looking at it right then you are using the mouse to click on a character?

If that is the case then you can't use the mouse to move around as moving a mouse pointer isn't one button.

Quote
You can use a mouse or joystick / joypad but only one button can be used. You can not use any other features of that device.

Unless the mouse moving + selecting is just for testing purposes?
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 22:01:53
Yep, the character moves around on his own. The only interaction is clicking the character to make him jump. Just one button. :)

The aim is to try and save as many of the automatons as possible. The only thing you can do is click them to make them jump to avoid traps, obstacles etc.

:)

Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Qube on August 14, 2021, 22:03:44
Yep, the character moves around on his own. The only interaction is clicking the character to make him jump. Just one button. :)
I mean in the GIF's you are moving your mouse over a character and then pressing a button. If you are relying on mouse movement then you can't do that as moving a mouse isn't one button.
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 22:14:21
The only interaction with the characters is when pressing the left mouse button. They do not move according to where the mouse is. The only thing they do is jump when you click them. Everything else is a state machine that runs on its own juice.

To make sure download the test level here:

https://amon.pro/storage/OneJump.zip (https://amon.pro/storage/OneJump.zip)

:)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 22:19:22
Wait, so moving the mouse over the character is considered controlling them? I thought the interaction to influence the game was one button only; a mouse click on the character.

If I am not allowed to move the mouse to the character then I have misinterpreted the rules. That would mean going back to the drawing board.
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Qube on August 14, 2021, 22:22:46
The only interaction with the characters is when pressing the left mouse button.
I don't think you are understanding :)

1.. The game comp is to use ONE key or button for the main game.
2.. You are using you mouse to navigate to a character and then pressing your mouse button. Moving the mouse pointer is not one key or button.
3.. Effectively this is no different than using WASD to move your crosshair over a character and then pressing 'space' - That's 5 keys. Or using a joystick for navigation and one fire button.
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 14, 2021, 22:24:57
Gotcha. :)

ok, this is going to be tricky but I think I have a solution. :)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Qube on August 14, 2021, 22:28:20
Wait, so moving the mouse over the character is considered controlling them? I thought the interaction to influence the game was one button only; a mouse click on the character.

If I am not allowed to move the mouse to the character then I have misinterpreted the rules. That would mean going back to the drawing board.
If moving a mouse were allowed then that control system allows you to do pretty much anything. For example you could use your mouse to select a bunch of units and click where you wanted them to go. This is of course not just one key / button but mouse navigation and a key / button.

I see you've got it now ;D - So one key / button only and no other method whatsoever to control / interact :))
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: 3DzForMe on August 15, 2021, 00:53:49
My dilemma is to use h, or m. Hit or Move, I think I'm opting for M, as I'm kinda a pacifist. Well, I try :o
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Amon. on August 15, 2021, 08:59:05
I've modified the code as follows.

if you press and keep pressed the 'S' key on the keyboard, it cycles through the currently active characters in the scene. The currently selected character has a yellow box around them.

If you double tap the 'S' key within a certain amount of time, 0.8 seconds, the currently selected character jumps.

It was a tough cookie to code though. I'm testing it thoroughly though to make sure it's glitch free.

:)
Title: Re: OneJump - For the 'There Can Be Only One' Competition.
Post by: Steve Elliott on August 15, 2021, 21:11:46
Looking good, what happened to the Chainsaw Gif?  Yes don't get disqualified lol.   :)

As for key choices I think I'll test for the Space Bar, Enter Key and Left Mouse Button.
SimplePortal 2.3.6 © 2008-2014, SimplePortal