Log In  
Follow
josiebreck
[ :: Read More :: ]

Cart #snowfall-1 | 2024-04-22 | Embed ▽ | License: CC4-BY-NC-SA
8

Made this to try my hand at using sin and cos to draw shapes. plus i just wanted to make some snow :3 I overclocked it with the number of snowflakes because i wanted to see as many as possible. the framerate drops aren't so bad for the subject matter anyway...

EDIT: 1.1 Update!

  • number of flakes and max radius fluctuates now so it's a much more dynamic screensaver
  • refactored the code in a separate lua file for easy implementation into other projects
  • "manual" mode with button inputs for messing around, also intended for anyone who wants to use this for their own thing. to access this, load the cart and set "manual" to true in snowflakes.lua
P#145921 2024-04-06 19:45 ( Edited 2024-04-22 20:49)

[ :: Read More :: ]

Cart #bsod_hd-0 | 2024-04-01 | Embed ▽ | License: CC4-BY-NC-SA
3

I posted my previous cart in the Picotron discord and werxzy revised the code to work in the full resolution! now it looks much nicer. after that i made a few further edits to give it a little more polish and "authenticity" :3

P#145324 2024-04-01 12:20

[ :: Read More :: ]

Cart #bsod_of_the_land-0 | 2024-03-31 | Embed ▽ | License: CC4-BY-NC-SA
3

I tried to adapt this classic tweetcart for picotron. when i couldn't make it work the way i wanted i decided to break it further :3

P#145258 2024-03-31 16:04

[ :: Read More :: ]

Cart #emlw-0 | 2024-03-29 | Embed ▽ | License: CC4-BY-NC-SA
7

Second picotron project! I tried to recreate the plasma effects from this page and ended up with this little ocean wave demo. monochrome palette code lifted straight from the swoosh.p64 screensaver, and it works perfectly for the subject matter :3 works well as a screensaver

P#145051 2024-03-29 23:34

[ :: Read More :: ]

Cart #eclypse-0 | 2024-03-27 | Embed ▽ | License: CC4-BY-NC-SA
6

very excited to get into picotron! here's my first project. taking advantage of the extra screen space for a simple landscape/chaotic night sky concept. feel free to use this as a wallpaper or a screensaver :3

P#144613 2024-03-27 01:32

[ :: Read More :: ]

I'm working on a game which requires some fire. I looked at some examples of doom fire but while it looks really good the technique was often very cpu expensive and didn't really work how i wanted it to. I decided to use the ECS i am using for the rest of the game ( my edited version of Jess Telford's PECS https://github.com/josiebb/pecs) to come up with something close enough but cheaper. This is what i came up with.

Cart #pofejogeto-1 | 2021-07-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Still working on making it resizeable and positionable, bc I want to use it more than just in the menu of my game. Also a lot of general use code in here that is intended to be used with the rest of the project.

P#94481 2021-07-05 14:53 ( Edited 2021-07-05 14:54)

[ :: Read More :: ]

Hi! so I am attempting to make a platformer/puzzler game in which you are not supposed to get clears, or at least, not in the way you normally would. The idea as of now is to have clusters of 4-5 alike blocks make a clear which will cost HP/"hearts"/etc., but jumping to a certain height will clear the bottom rows, which will count towards your score.

...But I can't even get to that part of the game yet, because collisions and some other little technical issues. This is what I have so far.

Cart #anticlearwip-0 | 2020-12-20 | Code ▽ | Embed ▽ | No License

Controls:
Left/Right = move character,
Up = jump,
X = move tetrad left or right,
Down = soft drop,
Z = rotate (not functional yet)

right now, I am using the game object system from bridg's Pico-8 for beginners tutorials. here's the issue - I need the game blocks to fall and leave no gaps, much like in puyo puyo. to do this they need to collide with other blocks that are the same type of game object. when I put it in as normal, the block launches into the air when it's created. I think this is because it is colliding with itself.

I was trying to do a solution using ipairs to compare the index number of the objects, so that I could exclude the current object and have it only collide with the others. the code i came up with doesn't exactly work, because I am unsure how to get the current object's index number. I feel like this is something resembling the solution though? am i going in the right direction here?

for i,b in ipairs(#objects)do
    if objects[i]!=self and objects[i.name]=="tet" then 
           self:checkcollide(objects[i],0)               
           self:handlecollide(objects[i],colldir)
    end
end

I'm also having issues where the tetrad, when it respawns, sometimes does not respond to the movement button anymore. it seems kind of random, like it might happen the first time it respawns or the fifth. here's the code for the tetrad-related inputs and the conditions that determine whether it goes left or right, which is all contained within the self.update function of the object.

         if(self.x>96) self.dx=-8
     if(self.x<16) self.dx=8 

     if self.islive then

--  ❎ left/right
      if(btnp(5)) self.x+=self.dx

--  🅾️ rotate
      if(btnp(4)) then
-- haven't got there yet!
      end

--  ⬇️ soft drop
      if(btn(3)) self.y+=2 
     end

i think it may be the way i'm calling it within the statement:

if self.islive then

maybe sometimes it doesn't successfully call true? this is the code which is supposed to determine that.

 inittetrad=function(self)
  if not self.islive then
   for i,b in ipairs
    (self.fblocks) do
    del(self.fblocks,b)
   end
   self.x=56  self.y=8
      for i=0,3 do

       local s =flr(rnd(4)+1)
       if (#self.fblocks)<4 then

       add(self.fblocks,s) 
      -- end 
       end end self.islive=true 
  end
 end,

So, if anyone can see why any of this isn't working please let me know. I've only been working on this for a few weeks so I am very happy with the progress so far, hope that I can build something fun and memorable here. Here's another cart without the ipairs error so you can see the X button error.

Cart #anticlearwip_other-0 | 2020-12-20 | Code ▽ | Embed ▽ | No License

P#85599 2020-12-20 03:38 ( Edited 2020-12-20 15:32)