Log In  

BBS > Community Superblog
All | Following | GIFs | Off-site

Hi, I have a trouble with floating point arithmetic.

function _draw()
	cls()
	print( 256 / 65536 * 256 )
	print( 256 / (256*256) )
end

This snipet output "-2" and "32768".
Why this snipet dosn't output "1" and "0.00390625" ?

I try same thing on lua demopage.
https://www.lua.org/cgi-bin/demo
It outputs "0.00390625".

Thanks.

5 comments


I saw that putting boolean=!boolean is supposed to toggle a boolean variable, but it's not working for something like object.boolean=!object.boolean. How can I toggle a boolean?

6 comments


Cart #bulle_vs_bulle-0 | 2019-02-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
2 comments


Cart #kabuyuburo-1 | 2019-02-08 | Code ▽ | Embed ▽ | No License
2

Hello!
I made a video on pico 8 and my experiences making my first game with it.
https://www.youtube.com/watch?v=MI2TIQ27auA

2
4 comments


Cart #aburner-0 | 2019-02-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

This game is not yet finished. This is the first time I've attempted to write a game, so feedback is apiciated. Shoutouts to @morgan3d for their work on TOP*BURN, a similar game. I took the sprites from that game. I think I'll work on something smaller before picking this one up again.

Some things that need work:

  • The timing of the soundtrack is all over the place. If any musicians want to make a proper rendition of the OST, I would be grateful.
  • The enemies seem to fly into the sea when the nose is pointing down. The game engine does not account for where the camera is pointing. Getting this to work might require a more advanced engine.
  • I forsee that there will be z-fighting between the enemies and explosions from destroyed aircrafts. Again, this would require a more advanced engine, one that accounts for the z-position of the objects being drawn.

[ Continue Reading.. ]

2
3 comments


Implements flocking as described in the book "AI for game developers" by David M. Bourg and Glenn Seemann (O'Reilly). See also Craig Reynold's explanation: http://www.red3d.com/cwr/boids/

Cart #boids01-0 | 2019-02-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
2 comments


A procedural glitch art generator. It generates random mathematical equations over pixel positions and time, which then determine each pixel's color. Every 10 frames, the equation mutates.

I uh, didn't get the screen memory stuff quite right, because of the hackiness of two-pixels-per-byte, but um, well, it's interesting all the same.

Should maybe add math functions to it, like sin() and cos()...

Cart #wapedabika-0 | 2019-02-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
2 comments


Cart #constant_header-1 | 2019-02-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
4 comments


Cart #teramom-2 | 2019-03-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
105

Cart #teramom-1 | 2019-02-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
105

Cart #teramom-0 | 2019-02-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
105

[ Continue Reading.. ]

105
40 comments


Cart #climatesplit-1 | 2019-02-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

By https://www.instagram.com/shandaram77/ and me for the climate march in Hague on February 7th.

8
5 comments


Cart #gyakegop-0 | 2019-02-06 | Code ▽ | Embed ▽ | No License

2 comments


Hi everybody!

Last week I launched one of the smallest JRPG's you'll ever play: TinyRPG! Recover your stolen egg by defeating monsters, level up and discover hidden areas in my second Pico-8 game! (It's a multi-cart so unfortunatly not on the BBS)

https://prrrpl.itch.io/tiny-rpg

I'm really curious what the talented people in the Pico-8 community think of the game. I want to develop the game further so any feedback (especially on the player-experience) is very welcome!

Another thing I'm struggling with is attracting players! Does anybody have any suggestions with regards to this topic? I've reached out to IndieGamesPlus.com but I had a hard time getting in touch with other media-centric folks with an affinity for the smallest Indie Games.

Thanks so much in advance!

Emiel

6 comments


An attempt to replicate the Star Gate effect from "2001: A Space Odyssey." Use Z to turn the 'music' on or off.

Cart #stargate_2001-0 | 2019-02-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

4
1 comment


Cart #fisher-0 | 2019-02-06 | Code ▽ | Embed ▽ | No License
2

Z/X to go through textboxes. Please enjoy my fishing experience :D

2
0 comments


Cart #school_report-1 | 2019-02-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Made in ~2 hours , because I lost a challenge. Based on an original idea by raphael stemmelen.

Controls :

Arrow keys : move

0 comments


I didn't find any way to change it,is it even possible?

0 comments


Cart #officide-0 | 2019-02-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Left/Right to move.
X to interact.
Move fast, complete collegaues' requests, and earn money to buy the gift.

This game was made by me and my collegaues: Ilya Aleksandrov and Ilya Koplevsky for a quick 5-day jam - the Black Humor Jam at itch.io
We've worked together for a few years, yet this is our first attempt to work as a gamedev team.

3
0 comments


Its Snow...

Cart #snow-0 | 2019-02-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


For a friend who wants it to snow. :D

4
2 comments


 map(level*8,0,0,0,8,15,0)
 for i=1,8,1
  do
  map(level*8+8-i,0,56+i*8,0,1,15)
  end

First I want to say Pico-8 is a lot of fun and I was able to get into it quickly despite barely any knowledge of LUA.

So I got the idea to only draw half a level and mirror it to be symmetrical, however collision detection doesn't seem to work on the right side. I can post more if anyone needs more information, but I've included a GIF showing the issue and the code I used to generate the map.

6 comments


Cart #gajeyabin-0 | 2019-02-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

7
19 comments




Top    Load More Posts ->