#computertech Bot Logged User list

Network: Rizon
Modes: +Nntzl
Last Seen: 43 minutes ago
Topic: Welcome to #computertech || <@brandon> what the fuck is wrong with all of you
#4
Rank
324
Users

Channel Log Archive for #computertech

Prev
Next

* All times are UTC
Filtering by user: Kuro-chan
Thursday, May 11, 2023
[00:08:40] Kuro-chan ComputerTech
[00:08:45] Kuro-chan with dinner tonight
[00:08:48] Kuro-chan I included buns I made
[00:08:53] Kuro-chan that were barely 5 minutes out of the oven
[00:08:55] Kuro-chan :3
[00:09:44] Kuro-chan mm-hmm
[03:37:07] Kuro-chan ComputerTech You aren't missing much
[03:37:25] Kuro-chan Ct is totally the most awesome person here! /o/
[03:37:30] Kuro-chan deserves every ounce of praise! /o/
[03:46:57] Kuro-chan ComputerTech; I baked bread, burger buns, 2 kinds of muffins and some cookies
[03:47:03] Kuro-chan they're going to a neighbour, tomorrow
[03:47:05] Kuro-chan o.o
[03:48:12] Kuro-chan yeah, I served some buns for dinner 5 minutes after they came out of the oven
[03:48:21] Kuro-chan they contained a large amount of 'yummy'
[04:09:04] Kuro-chan hey ninigeo2
[04:09:07] Kuro-chan /o/
[04:09:15] Kuro-chan about to try drawing my sprite sheets. o.o;
[04:09:28] Kuro-chan well, the pre-building
[04:09:45] Kuro-chan with what I'm using now, I can build virtual sheets similar to how I handle my hidden canvas sheets
[04:10:24] Kuro-chan ski yeah, sheets
[04:10:38] Kuro-chan trying to move my browser game into something that works better as an executable
[04:11:42] Kuro-chan ^ sprite sheet
[04:11:44] Kuro-chan ski
[04:11:52] Kuro-chan as an example
[04:12:43] Kuro-chan yeah.
[04:12:48] Kuro-chan I got palette and tile data working
[04:12:55] Kuro-chan so now I should build my sheets with that data
[04:23:05] Kuro-chan the first mario game
[04:23:08] Kuro-chan I am not using that sheet
[04:23:11] Kuro-chan That was merely an example
[04:23:22] Kuro-chan that I know of
[04:23:27] Kuro-chan I don't follow the mario series that much
[04:37:49] Kuro-chan I know ComputerTech likes to share
[04:37:58] Kuro-chan because ComputerTech is a good person
[04:38:00] Kuro-chan :3
[04:40:24] Kuro-chan you don't want secret usb sticks anyway
[04:40:32] Kuro-chan they are likely rigged to blow up a computer
[04:40:34] Kuro-chan o.o
[04:40:53] Kuro-chan * ComputerTech
[04:41:12] Kuro-chan ^ That's what I said
[04:41:33] Kuro-chan PLAGARISM!!!
[04:41:39] Kuro-chan XD
[04:42:15] Kuro-chan yeah, that. probably why it failed my spellcheck
[04:42:57] Kuro-chan better?
[04:43:14] Kuro-chan ski: I made a game that plays on a web browser. I build the code, graphics, music, etc. for it
[04:43:27] Kuro-chan using the broswer's own capabilities, so there was nothing external
[04:43:41] Kuro-chan I am?
[04:43:55] Kuro-chan ComputerTech is tech guru!
[04:44:00] Kuro-chan I don't even have a mobile phone
[04:44:19] Kuro-chan I did include touchpad support for my rpg
[04:44:55] Kuro-chan I need to look it up (sorry in the middle of another language right now)
[04:45:56] Kuro-chan I use both onmousedown and ontouchstart on the buttons
[04:46:11] Kuro-chan they are optional for a desktop/laptop and mandatory to display for a mobile
[04:46:31] Kuro-chan it's mandatory so you can't accidentally disable it on a mobile and prevent yourself from playing
[04:46:40] Kuro-chan I write binary resource files
[04:46:45] Kuro-chan they contain all my game data
[04:46:54] Kuro-chan and they look like hell when using a hex editor
[04:47:08] Kuro-chan Another one of my dungeon music tracks
[04:47:25] Kuro-chan this is built with the browser's own ability to play oscillator sounds
[04:47:34] Kuro-chan I simply provide the code in the resource file
[04:47:39] Kuro-chan so the music is about 1.5kb in size.
[04:48:02] Kuro-chan No, I have my own resource editor
[04:48:10] Kuro-chan I build the game resources on that
[04:48:19] Kuro-chan and export it as a value I can paste into a hex editor
[04:48:36] Kuro-chan it's one more step, but it doesn't require nodejs or anything like that
[04:49:32] Kuro-chan I did, yes
[04:49:50] Kuro-chan it just can
[04:49:53] Kuro-chan :/
[04:49:55] Kuro-chan lol
[04:50:03] Kuro-chan I modded them a little
[04:50:08] Kuro-chan I can do better than the music that plays
[04:50:13] Kuro-chan but there is a crunch with the rpg
[04:50:17] Kuro-chan it was part of a challenge
[04:50:21] Kuro-chan to make the whole game in 128kb or less
[04:50:40] Kuro-chan so the code is 54kb and the resource file is 73kb (roughly)
[04:50:48] Kuro-chan with the index and favicon making up the difference
[04:51:05] Kuro-chan yes. I use setInterval to loop it
[04:51:38] Kuro-chan basically, what you do is you tell the browser to play a note at a time.
[04:51:54] Kuro-chan so play A4 at 2 seconds, B4 at 3.1 seconds, C4 sharp at 4.6 seconds.
[04:52:00] Kuro-chan based on your current timestamp
[04:52:04] Kuro-chan timbre?
[04:52:32] Kuro-chan no, I can play with volume
[04:52:43] Kuro-chan so I can simulate fading effects
[04:52:48] Kuro-chan I needed to keep it simple
[04:52:51] Kuro-chan for this challenge
[04:53:18] Kuro-chan percussion is kept simple for the same reason.
[04:53:56] Kuro-chan NiniGeo2 Yes!
[04:54:07] Kuro-chan There is one that uses noise to create the idea of percussion
[04:55:16] Kuro-chan yeah, noise can be generated in js
[04:55:46] Kuro-chan a bit of a different method. I had a pre-made noise concept that sounds good for consistency, but it takes up too much space for the challenge, so I settled for random
[04:56:14] Kuro-chan for my music tracks, each 'channel
[04:56:21] Kuro-chan has a basic note and some pre-setup effect
[04:56:34] Kuro-chan like fade in, fade out, pulse (starts louder, briefly),
[04:56:37] Kuro-chan stuff like that
[04:56:46] Kuro-chan just four
[04:56:55] Kuro-chan square, sine, sawtooth and triangle
[04:57:24] Kuro-chan https://cdn.discordapp.com/attachments/1040333291624071199/1041822155635179662/world2_sample2.mp3 The effect that sounds a bit like a harp is just a triangle with a fade effect
[04:58:06] Kuro-chan decay... sorta? not all of them use that
[04:58:19] Kuro-chan there are also filters that control the pitch, not just the volume
[04:58:44] Kuro-chan Like the tunes or the instruments?
[04:59:34] Kuro-chan the answer might be weird.
[04:59:38] Kuro-chan humming in the shower, randomly
[04:59:42] Kuro-chan sometimes I hit on something
[04:59:52] Kuro-chan do the main melody, try to get a bass track in my head
[04:59:55] Kuro-chan then fill it in
[05:00:12] Kuro-chan yes
[05:00:18] Kuro-chan I took vocal lessons for 10 years
[05:00:26] Kuro-chan and I was told I have perfect pitch
[05:00:48] Kuro-chan o.o
[05:00:49] Kuro-chan scary
[05:00:59] Kuro-chan and CT was with me for most of the rpg development
[05:01:38] Kuro-chan piece of cardboard
[05:02:27] Kuro-chan I have updated the track since that build, but it's still a decent enough one
[05:03:32] Kuro-chan no I started it late last year
[05:03:41] Kuro-chan not even 1 year in
[05:04:02] Kuro-chan ready now, but I need an executable version of it
[05:04:22] Kuro-chan eh, not in the way I would prefer.
[05:04:41] Kuro-chan I'm not worried about that part. the original challenge is complete.
[05:04:48] Kuro-chan I know an exe will be more than that
[05:05:10] Kuro-chan ComputerTech: Which dungeon track is the best one?
[05:05:26] Kuro-chan it was a challenge for myself
[05:05:28] Kuro-chan there is no judge
[05:07:20] Kuro-chan hehe ^^;
[05:07:27] Kuro-chan ^ That dungeon track is my fav. one
[05:07:34] Kuro-chan If you enter a dungeon
[05:07:36] Kuro-chan and you hear that
[05:07:41] Kuro-chan YOU BETTER BE READY TO FIGHT A DRAGON, B-WORD!
[05:08:16] Kuro-chan not sure yet
[05:08:28] Kuro-chan I am still trying to get the resource file concept set up
[05:10:00] Kuro-chan no no I mean the code to decompress it
[05:10:12] Kuro-chan especially the tile data, though I completed that part earlier this afternoon
[05:10:16] Kuro-chan the tile data is compressed
[05:10:31] Kuro-chan every 8x1 pixel data requires x number of bytes
[05:10:51] Kuro-chan how many bytes it needs depends on the # of colours the 128x128 tile sheet uses
[05:11:07] Kuro-chan so for 8-colours, an 8x1 needs 3 bytes
[05:11:15] Kuro-chan I use a 15-bit colour setup
[05:11:21] Kuro-chan it fits in 2 bytes nicely
[05:11:55] Kuro-chan to get my rgb, it's: x mod 32, floor(x/32) mod 32, floor(x/1024)
[05:12:01] Kuro-chan giving each one a range of 0-31
[05:12:16] Kuro-chan to go 0-255, I go floor(255/31 x value)
[05:12:33] Kuro-chan I don't do anything with it.
[05:12:41] Kuro-chan 32,768
[05:12:47] Kuro-chan 32 for each r, g and b
[05:12:51] Kuro-chan 0-31
[05:13:07] Kuro-chan if I tried to use the 16th bit, it won't leave me with an even set.
[05:13:20] Kuro-chan so I didn't worry about it
[05:13:37] Kuro-chan my first data is palette data
[05:13:45] Kuro-chan I have a value that tells me how many colours are in the file
[05:13:49] Kuro-chan then a loop is built
[05:13:59] Kuro-chan next byte is the # of colours the palette uses
[05:14:08] Kuro-chan 2, 4, 8, 16, 32, 64, 128 or 256
[05:14:15] Kuro-chan all of those can be used with my setup
[05:14:42] Kuro-chan with that, it will pull # of colours * 2 bytes
[05:14:49] Kuro-chan and output me an rgb palette
[05:14:59] Kuro-chan I treat 0,0,0 as my transparent colour.
[05:15:17] Kuro-chan that loops until the #of colours has been pulled
[05:15:31] Kuro-chan 'maybe' it could be compacted better, but I am satisfied with the results.
[05:15:35] Kuro-chan tiles
[05:15:48] Kuro-chan had a starter byte controlling the # of 128x128 sheets there are
[05:15:56] Kuro-chan so a loop is setup for that
[05:16:16] Kuro-chan palette data was already discussed
[05:16:25] Kuro-chan each 128 x 128 also carries a byte that says how many colours the tile sheet uses
[05:16:38] Kuro-chan which is basically colours log 2
[05:17:08] Kuro-chan the basic 128 x 128 tile sheet requires 2,048 bytes
[05:17:28] Kuro-chan that is for 2,448 packets of 8x1 pixel data
[05:17:37] Kuro-chan for 1 byte, I can do 2-color 8x1's
[05:17:47] Kuro-chan for 4-colors, I need 2 bytes.
[05:17:55] Kuro-chan 8-colors is 3, 16-bytes is 4, etc
[05:18:06] Kuro-chan why 3 bytes for 8 pixels of data.
[05:18:17] Kuro-chan It's a breakdown and re-assemble of the bytes.
[05:18:34] Kuro-chan 8 colours gives me 8 bits of palette x1, palette x2 and palette x4 data
[05:18:53] Kuro-chan combining the x1, x2, x4 across each byte row gives each pixel a range of 0-7
[05:19:38] Kuro-chan I don't think I can get my tile data any more efficient than that.
[05:20:07] Kuro-chan with my have a 8-color, 4-color and 2-colour tile sheet
[05:20:14] Kuro-chan *my rpg
[05:20:28] Kuro-chan so that's 12kb + the few extra bytes for oganizing
[05:24:49] Kuro-chan because I can
[05:25:04] Kuro-chan also to remind ComputerTech that I still live and breathe!
[05:26:17] Kuro-chan probably the one every hawk eats for breakfast
Prev
Next