-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|676|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




spinal

Making Universal Tools

3rd February 2019

Finished (enough for now) converter...
Will take an 8bit mono wav as input and turn it into an array that includes the samplerate and size.
[code]
<html>
<title>Wav to Pokitto</title>
<style type=''text/css''>

*snip*


spinal

Making Universal Tools

2nd February 2019

Here's a start, removed the output file for now, stuck in a txt box. I think it should do the job just right!
[code]
<html>
<style type=''text/css''>
body {background:#BB9977; color:#000000; font-family: ''Helvetica Neue&*snip*


spinal

*gfx++

28th January 2019

The odd thing I found with the above code, was that that was the only part of the function that seemed to break.
[code]
void twoBitTile(int x1, int y1, const uint8_t *gfx){
int8_t wide = *gfx; // first byte is width
*gfx++;
int8_t high = *gfx*snip*


spinal

*gfx++

27th January 2019

So, why does this
[code]
int8_t wide = *gfx; // first byte is width
*gfx++;
int8_t high = *gfx; // second byte is height
*gfx++;
[/code]
work, but this
[code]
int8_t wide = *gfx++; // first byte is width
int8_t high = **snip*


spinal

point between 2 numbers?

10th December 2018

[code]
float spd = (POK_AUD_FREQ / sampleRates[channel]);
snd[channel].speed = (speed/spd); // recalculated above
// Default method, fast but awful.
ss[s] = snd[s].currentSound[(snd[s].soundPoint*snd[s].speed*snip*


spinal

point between 2 numbers?

8th December 2018

either this isn't working, or it isn't the problme...
[code]
// ss[s] = snd[s].currentSound[(snd[s].soundPoint*snd[s].speed)>>8];

int var1 = (snd[s].soundPoint*snd[s].speed);
int var2 = (snd[s].soundPoint**snip*


spinal

point between 2 numbers?

8th December 2018

I'm stuck on the last part of my sound player. I need to smooth out my wave form (in real time), currently I am re-sampling based on nearest-neighbour type algorithm.
[code]ss[s] = snd[s].currentSound[(snd[s].soundPoint*snd[s].speed)>>8];[/code*snip*


spinal

Error: Expression must have integral or enum type???

17th November 2018

OK, I'm trying to do something that should be really simple and straight forward, but for some reason its throwing this stupid error.
[code]
Error: Expression must have integral or enum type in ''main.cpp'', Line: 182, Col: 33
[/code]
regar*snip*


spinal

raspberry pi screen issues.....

4th September 2018

I don't know how many people in here are Pi users, I do assume we have a bunch of linux users though.
Anyway, I am trying to get a small screen wirking on my pi by following the instructions here - (Linkage)
Anyway, after completing the steps, it doe*snip*


spinal

Jumps and Drops

16th August 2018

Surely this is correct?
[code]
if(player.x>= enemy.x){
if(player.y>= enemy.y){
enemy.direction = DROPRIGHT;
enemy.moving = 1;
}else{
enemy.direction = JUMPRIGHT;
enemy.moving = 1;
}
}else{
if(player.y<= enemy.y){
enemy.direction =*snip*


spinal

Extracting Frames

3rd July 2018

Here's a question...
The following code is only getting through about 10% of my video file before simply closing (it's not supposed to close, but wait for esc key) Can anyone see anything wrong with it?
Are there for example any limits to reading*snip*


spinal

Extracting Frames

25th June 2018

current conversion progress...
requirements - ffmpeg
The first step is to rip the frames from whatever video we use. The following bat file will rip all o fthe files and a nice small size, all images using the same 256 colour palette, while flipping the *snip*


spinal

Extracting Frames

24th June 2018

Its a long time since I've tried to blitz something, but this should work right?
[code]
Graphics 640,480,0,2
frameNumber = 1
a$ = ''D:\\blitz\\pokitto\\frames\\''
outfile = WriteFile(''movie.dat'')
.top
If fileNumber < 1000 Then b*snip*


spinal

Extracting Frames

24th June 2018

Found it!
The following batch file will first create a good fit palette for the whole video, then use that palette to extract 8bit frames in bmp format :-)
[code]
set start_time=0
set duration=60
set palette=''palette.png''
set filters=''*snip*


spinal

Very early pixel-art thingy...

14th June 2018

I started a pixelart thingy in html/javascript partly because I want one, partly to practice javascript.
[code]
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
*snip*


spinal

Whats up here?

26th April 2018

Yes, however, fixing it didn't make the code work :-(
[code]
Graphics 220,176,0,2
AppTitle ''Test''
px = 0
py = 0
bgColour = ReadPixel(0,0)
Color 255,255,255
Plot 0,0
wallColour = ReadPixel(0,0)
frameCount=0
While Not KeyHit(1)
Del*snip*


spinal

Whats up here?

25th April 2018

OK, I haven't BLitzed in such a long time, why the hell does this not work?
Don't worry, it's really short...
[code]
Graphics 220,176,0,2
AppTitle ''Test''
px = 0
py = 0
bgColour = ReadPixel(0,0)
Color 255,255,255
Plot 0,0
wal*snip*


spinal

image rotation?

12th April 2018

Right, I won't claim to follow the math 100%, or even 70% but this is apparently the 'correct' way...
We assume that because were drawing a straight line on the screen, then the line we are copying from our source image is also straight. We th*snip*


spinal

image rotation?

12th April 2018

OK, apparently this is supposed to be really fast as it removes almost all of the math from inside the double loop...
link
However, the output is completely wonky and wrong, perhaps the sin/cos bit is incorrect?
blitz...
[code]
Graphics 1024,768,0,2
*snip*


spinal

image rotation?

8th April 2018

I'm working on a little but of code to rotate an image in real time. I'm currently doing it a slow way -
[code]
for(int y=0; y<height; y++){
for(int x=0; x<width; x++){
int x1 = (x-halfWidth*snip*


spinal

Card shuffling?

15th February 2018

Found it! (I think)...
[code]int temp = random(52);[/code]
should be
[code]int temp = random(51);[/code]
I think I was shuffling a non-existing card into the deck...


spinal

Card shuffling?

15th February 2018

So I've started working on a solitaire game, however for some reason I seem to have 2 of my '0' cards, in the case of my current gfx, that's the ace of spades.
I wonder if the shuffle routine has something to do with it? Can anyone see som*snip*


spinal

Joystick Building

12th December 2017

Well, failing to find a C64 zipstick/competition pro style joystick for a reasonable price, I'm going to have a bash at making one from arcade parts.... should be fun.
For anyone who might be wondering, here is a photo of a zip stick joystick that I s*snip*


spinal

Centering after Scaling

4th August 2017

hmmmm this [code]OFF_Y = (game.display.height/2)-((LEVHEIGHT*tileSize*myScale)/2);[/code] is wrong when myScale is anything other than 1 :-(


spinal

What Goes Up

4th July 2017

[code]
for(int t=0; t<10; t++){
// code
}[code]

Newer Posts More - Older Posts