Log In  
Follow
mole5000

Who wants the Afterburner Font on a sprite sheet. Do you? Yes you do. Have at it.

Transcribed from them lovely "Arcade Game Typography" by Toshi Omagari, published by Read Only Memory

0 comments



Following on from my smash hit Lights Out Cart (hey, someone gave it a star, that counts) I've hacked it together to give you...

MASSIVELY MULTIPLAYER LIGHTS OUT

That's right, you and hundreds of other people around the world can attempt to solve a 16x16 lights out grid. Together!

http://geometricgames.com/lotw/lightsouttogether.html

This is sooooooooo just barely working so please excuse it being terrible!

Let me no here or on twitter ( @twitonatrain ) if anything is terribly wrong.

0 comments



Cart #fuhususote-0 | 2021-12-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

A classic.
With screen shake.

Just getting back into the flow of programming actual games rather than tweetcarts on the pico-8

For those who don't know you are trying to turn off all the lights. When you click a square it inverts the light not just on the square itself but also the squares above, below, left and right as well.

4
0 comments



This is a simple brute force raytracer based on the excellent book "Ray Tracing in One Weekend" It will take approximately 2 hours to render the image in the preview! The slowness is mostly caused by there being no form of object hierarchy so every single sphere is being test for every single ray generated. There's a lot of sphere's so that's a lot of calculations.

The ray tracer produced by following Ray Tracing in One Weekend is really simple and straightfoward, as a result I think this is a great cart to look at if you want to get a handle on Ray Tracing. You probably don't want to run the cart as is but nick the code and play around with a scene yourself.

Cart #yizokigaga-0 | 2020-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

If you look at the end of the code it should be pretty clear how the scene is described (simply adding sphere's to the things table). There is also the "fast" option. If you set that to TRUE then the pico8 will switch to 64x64 mode and only do 1 sample per pixel. It's a great way of making sure you have setup a scene correctly before doing a longer render.

[ Continue Reading.. ]

10
0 comments



Cart #rugbysports-2 | 2020-02-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


Started noodling with a sports game, probably going to be rugby.

My dream has alwasy been to produce a rugby game as good as the mid ninties Jonah Lomu Rugby, never been bettered

What I've got here is two 7 a side teams randomly distributed over the pitch with a physics engine to resolve collisions.

From small acorns things grow and such like

1
3 comments



Cart #51217 | 2018-04-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

So this is mostly for those of you who are thinking about ChessJam and wondering if the Pico8 is tough enough for the job.

The answer is clearly "Yes!" (1). Here is my implementation of a Sid Sackson classic board game Lines of Action. OF interest is that I'm using Negamax, bit boards and the 0x4300 user memory for the storing thereof.

There is unfortunately some kind of bug hiding in my (horrible, horrible) code that means the smart AI occasionally glitches the game state. I did mostly write this late at night during a period I wasn't sleeping well. I am very hapy with the code about the menus though.

(1) People have managed to fit (most of chess) into a ZX81 (that's a whole 1K of ram they were working with). http://users.ox.ac.uk/~uzdm0006/scans/1kchess/

0 comments



Cart #42480 | 2017-07-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

So I went a little crazy after doing my contribution for the invent a title screen thread. I thought it would be nice if the two Gs drew at the same time and I came to the conclusion (in a huge leap) that the best way of doing it would be to some kind of co-operative multitasking co-routine system.

It doubled the token count from 200ish to 400ish but I'me pretty happy with it and I think it works well as a demonstration of the power of closures and co-routines.

EDIT: So the library is based around additive drawing - there is no clearing of screen state between each frame so everything builds up. My next plan is to build a "display list" system when you can attach co-routines to properties of each display item to animate them - more flexible than this current system.

4
0 comments



Cart #41917 | 2017-06-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

While working on my 3d engine I've written a function that I think would be generally useful and I haven't seen it done before. It draws horizontal dithered lines such that odd and even rows have an alternating checkerboard pattern. Code is obviously in the cart but I post below as well.

The code runs just as fast the native LINE function but with the bonus of optional dithered-e-ness

function dither(sx,ex,y,draw_colour,shade_colour)
  if (sx<0 and ex<0) or (sx>127 and ex>127) then return end
  sx = max(0,min(sx,127))
	 ex = max(0,min(ex,127))
	 if ex < sx then
	  sx,ex = ex,sx
	 end
	 local sos = sx % 2
	 local eos = ex % 2
	 local yind = y*64+0x6000
	 local ctu = -1
	 if y%2 == 0 then
	  ctu = draw_colour
	 else
	  ctu = shade_colour
	 end

	  if sos == 1 then
	   sx -= 1	   
	   poke(yind+sx/2, bor(band(peek(yind+sx/2),0x0f), band(0xf0,ctu)))	   
	   sx += 2
	  end 

	  if eos == 0 then		      
	   poke(yind+flr(ex/2), bor(band(peek(yind+ex/2),0xf0),band(0x0f, ctu)))
	   ex -= 1
	  end

	  memset(yind +sx/2,ctu, (ex/2-sx/2)+1)
end

[ Continue Reading.. ]

3
0 comments




I've finally managed to get a clean, 3d wireframe engine up and running. It does backface culling but otherwise is as plain as it comes.

Working through the maths and pulling together from various sources was a pain as writing a software renderer is a bit of a lost art form with D3d/OpenGl doing all the maths for you these days.

So I thought people might appreciate a simple example to start from.

THis doesn't do any camera transforms - the camera is at 0,0 starting down the z-axis.

9
31 comments



Cart #40585 | 2017-05-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Another memory game to go along with my earlier "Simon Says" game.

I really loved the low-to-high game from Brain Training so thought I would implement it here. If I take this any further the I think I'd double the size of the tiles and make my own font as I have difficulty 'scanning' the numbers with Pico's default font.

My personal high score on this Pico version is 9 numbers cleared (I was way better at the DS version!)

2
0 comments



Cart #40457 | 2017-05-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

A rough and ready "Simon Says" game I hacked together in a few hours. Use the arrow key to play the appropriate triangles and follow the sequence. What high score can you get?

I am inordinately proud of the code that draws the triangles as I got it right first time.

2
4 comments