Log In  
Follow
Saturn91

saturn91.dev

[ :: Read More :: ]

Cart #circle_collision_example-0 | 2024-03-30 | Code ▽ | Embed ▽ | No License
3

This is a simple example on how circle collision works.

All you need from this cartridge is the function:

function circ_col(c1, c2)
  local dx = c1.pos.x - c2.pos.x
  local dy = c1.pos.y - c2.pos.y
  local distance = sqrt(dx*dx + dy*dy)
  return distance <= (c1.r + c2.r)
end

If you want to check if two circles are colliding, you simply pass them as parameters c1 and c2 see an example bellow:

c1 = {
    pos={x=64,y=64},
    r = 4 --size the radius would have to be for a 8x8 sprite
}

c2 = {
    pos={x=70,y=70},
    r = 8 --size the radius would have to be for a 8x8 sprite
}

collides = false

function _update()
   collides = circ_col(c1, c2)
end

function _draw()
   cls()

   if collides then 
      print("colliding",4,4,11)
   end

   --draw the circles here - mind you in most projects you woudn't, usually you would have them invisible and have them
   --at the same position (or slightly offsetted) as your player
   --i would recommend drawing them anyway at the start to see that the are always where they are supposed to be
   circ(c1.pos.x,c2.pos.y,c1.r,11)
   circ(c2.pos.x,c2.pos.y,c2.r,8)
end

function circ_col(c1, c2)
  local dx = c1.pos.x - c2.pos.x
  local dy = c1.pos.y - c2.pos.y
  local distance = sqrt(dx*dx + dy*dy)
  return distance <= (c1.r + c2.r)
end
P#145104 2024-03-30 10:25

[ :: Read More :: ]

Cart #handy_timer-3 | 2024-03-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A handy timer for a class I will hold on pico8. Screensaver in the Background is not by me but by: @Fortyseven
Cart #handy_timer-1 | 2024-03-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#144142 2024-03-22 15:44 ( Edited 2024-03-22 16:13)

[ :: Read More :: ]

Cart #rabbits_first_game-0 | 2024-02-06 | Code ▽ | Embed ▽ | No License
2


This is the first game made by rabbit, my german friend.

P#141233 2024-02-06 21:23

[ :: Read More :: ]

Cart #a_dicy_boss_fight-0 | 2022-07-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

# A dicy boss fight
Oh no! All the bosses of our past video games have decided to fight us :S Please help us defeating them!

how to play:

Roll the dice to fight each boss. The damage dealt depends on the dice results. You can re-roll a few dice per round. But beware, the opponent does the same! After defeating the boss, you can swap one die with the opponent. There are different dice, try to collect the best ones! Roll combos to get bonuses.

controls:

  • x: X on keyboard
  • o: C on keyboard
  • use arrow keys to select dice and options

about:

  • made in about 24h for the GMTK Jam 2022
  • made with pico-8
  • made by saturn91 and EinsteinsErbe
P#114796 2022-07-25 10:24 ( Edited 2022-07-27 06:47)

[ :: Read More :: ]

Cart #apocalypse_dog-0 | 2022-03-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

MAde within less than 10h coding and development time :D for a mini jam, not best, not my worst.

P#108452 2022-03-11 16:51

[ :: Read More :: ]

Cart #saturn91sparticles-0 | 2021-10-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

This is an example for an easy to use particle system.

to use it in your own cartridge do the following: copy the code in tab1 into one of your code tabs

Use it in the project as follows:

function _init()
    init_particles()
end

function _update()
    update_particles()  
    if btnp(🅾️) then
        particle_burst(
            {x=63, y=63},   //pos on screen
            10, //num of particels
            2,  //life time (in sec)
            0,  //form 0=rnd 1=pixel,2=circles,3=rect
            2,  //size
            3,  //color
            2   //speed of particles
        ) 
    end
end

function _draw()
    cls()
    draw_particles()    
    print("press 🅾️ for burst", 32, 40, 7)
end
P#98894 2021-10-20 10:11

[ :: Read More :: ]

Cart #traffic_jam-0 | 2021-07-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7


Yes it is your typical Snake. With some dramatic music and prorgammed in Pico8.

Controls as usual:

  • Arrows: movement
  • x and c anything else
P#94601 2021-07-08 22:13

[ :: Read More :: ]

Cart #satelite_catcher-6 | 2021-09-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

Satelite Catcher

You are a space mechanics whos job it is to bring back damaged satalites. But beware of the explosions arround you.

Don't ask the pilot where the explosions come from... He has no clue

  • Version 6: improved Game ending and colisions
P#94300 2021-07-01 15:27 ( Edited 2021-09-09 14:01)

[ :: Read More :: ]

Cart #saturn91devilskitchen_1-0 | 2021-05-31 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
11

The Game

You are one of the devils many servant and have to feed him in time. And your workshedule is litarly hell!! Can you make it trough your shift?

How to Play

It is a combination of cocking and Platforming. You can beat the 20 Levels one after an other or in a pretty challenging Speedrun mode.

You start with 3 Health, if you get damaged you can refill your health by eating some of the food, but the Master does not like this :D.

Details

This is the Release version of my Game Devil's Kitchen :D I programmed it on and off between february 2021 and Mai 2021. The deepest barebone mechanics are loosly based on this Video by the youtuber Nerdy Teacher

All in all he has some great videos for beginners to offer but especially the platformer series is genius!

Have fun :D

Get more like this on Saturn91.dev

P#92834 2021-05-31 08:03

[ :: Read More :: ]

Cart #devil_s_kitchen-9 | 2021-04-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

You are the devil'c cook and you are busy. This job is litarly hell. Have I already mentioned that the devil gets angry if you are not fast enough?

Be quick, be fast - HE is hungry!!

(first 15 Levels implemented)

P#88975 2021-03-14 21:29 ( Edited 2021-04-03 17:01)

[ :: Read More :: ]

Cart #saturns91_energy_not_included-0 | 2020-12-08 | Code ▽ | Embed ▽ | No License
5

A small game made within a week for the "Major Jam 3 - Retro" limitations: 96x96

P#85171 2020-12-08 21:50 ( Edited 2020-12-08 21:52)

[ :: Read More :: ]

Cart #thevoid_saturn91_v1_1-0 | 2020-11-24 | Code ▽ | Embed ▽ | No License
4

P#84661 2020-11-24 20:30

[ :: Read More :: ]

Cart #thevoid_saturn91-0 | 2020-11-22 | Code ▽ | Embed ▽ | No License
3

P#84593 2020-11-22 08:36