GithubHelp home page GithubHelp logo

redpenguinyt / safetydiver Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 438 KB

A Playdate game made for the Uncrank'd Jam

Home Page: https://redpenguin777.itch.io/safety-diver

Makefile 3.27% C 96.73%
c game physics-based playdate playdate-sdk playdate-console

safetydiver's Introduction

Safety Diver for the Playdate

Safety Diver is a game made for the Uncrank'd Jam using the theme "Float"

playdate-20240510-135751
You can find the download on the itch.io page!

Devlog

Here's a short record of what I did each day:

Day 1 (3/5):

  • implemented basic buoyancy!
    • the player is calculated as a sphere with a radius of 15
    • had to figure out how to calculate the volume of a cut sphere
    • player's rotor is significantly less influential in the air
  • made a simple animated player sprite
    playdate-20240503-192018

Day 2:

  • made the camera move freely on the vertical axis!
  • with camera drag too!
  • added some super simple water and air resistance physics - the player is slowed down more in water (but not too much, otherwise it wouldnt be fun!)
    playdate-20240504-124532
  • also added a depth HUD
    playdate-20240504-130535
  • im thinking the basic premise can be that you dive down for gold and stuff while avoiding hazards, and have to make it back to the surface for all the collected items to count!
  • i'm very much enjoying taking a little break from spaceshipment, this has been fun so far!

Day 3:

  • added coins for the player to collect!
  • added a score display to show how many coins the player has collected
    playdate-20240505-142708
  • next we add hazards for the player to avoid (and maybe tweak the movement to give the player a chance to avoid it)

(Took a break on Day 4)

Day 5:

  • added hazards!
  • the player now carries an amount of treasure with them (which they lose if they touch a hazard) which gets added to the main score when they resurface
    playdate-20240507-225931
  • also added a splash and coin pickup sound effects
  • next will end the game if the player comes up with 0 held coins
    • and proper hazard collisions
    • as well as motor, bringing treasure to surface and zap (colliding with hazard) sounds

Day 6:

  • added a camera limit at the bottom of the sea
    playdate-20240508-165007
  • and added real hazard collisions!
    playdate-20240508-164815
  • zap sound when colliding with hazards
  • rewrote the entire codebase to access PlaydateAPI *pd from one place - pd_pointer.h
  • more abstraction!
  • fixed bug where you can often see past the floor of the ocean when approaching it

Day 7:

  • tomorrow's the second to last day, so it's time to get cracking on what's left to finish for the game!
  • added a game over/restart sequence (might add high score storage later)
  • resurface score increase sound effects
  • restructured my code to move all level logic from game.c to level/level.c
  • made a nice pretty game over screen
    playdate-20240510-135906
  • simple motor sound (sounds the same out of water and in)

Day 8: The FINAL Day

  • with the final day today, i took the time to clean up the game and its itch.io page
  • added a little bonk sound for hitting the walls
  • improved the motor sound
  • released the game and the github page!

safetydiver's People

Contributors

redpenguinyt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.