Thursday, January 31, 2019

Short Programming Work

package {

import flash.display.MovieClip;
import flash.event.Events*;

public class BombGame extends MovieClip {

public var plaName:String; = "Bomber"
public var pla1:Player = new Player(100, 6, plaName);
public var bomb1:Bomb = new Bomb();

public function BombGame():void {

pla1.x = pla.y = 200;
addChild(pla1);

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPreHandler);
stage.addEventListener(KeyBoardEvent.KEY_UP, keyUpHandler);

}

public function keyPreHandler(e:event):void {

switch (e.keyFromCharCode) {

"Up":
pla1.y-=speed;
break;

"Down":
pla1.y+=speed;
break;

"Left":
pla1.x-=speed;
break;

"Right";
pla1.x+=speed;
break;

"B";
pla1.dropBomb(bombsleft);
break;
}


Tuesday, January 29, 2019

New Work Ideas

Right now I'm thinking that I should come up with some game ideas. I should probably just make games for the rest of my life. Small games, of course. It will be difficult, but I think that I can achieve what I'm setting out to do.

One game idea that I had was a variation of Bomberman. Right now, I think I might want to "modernize" the idea a bit, because it won't work just by itself.

I also had an idea for an open world game, but I'm not quite sure as to how to make that one work yet. I don't know how to break into the world of game design yet. I was able to create all of the game design elements, but that won't be enough for the future. I really need to figure out how to make it work. I want to make games.

Monday, January 28, 2019

Sort

private var dentists:Array = ["Denys", "Flauben", "Doctore"];

dentists.sort(Array.ASCENDING); // Flauben, Doctore, Denys;

dentists.sort(Array.DESCENDING); //Denys, Doctore, Flauben;

dentists.sort(Array.CASE_SENSITIVE); //Denys, Doctore, Flauben;

Friday, January 25, 2019

Upper and Lower

"This is it".toUpper() //THIS IS IT
"This is it".toLower() //this is it
"This is it".title() //This Is It



tupa:Int = parseInt('5');
lupe:String = "Lupe Fiasco is coming";
tada:Date - date.DateTime(); //Not too sure about this line.

vendere:Array = [tupa,lupe,tada];
vendere.shuffle();

Thursday, January 24, 2019

What Do I Need

To start a game design company, I need:

1. Computers.
2. Burners.
3. Game Design software.
4. Graphic Design software.
5. Incorporation.
6. Legal advice.
7. Tax help.
8. Books.
9. Internet access.
10. Work space.
11. Vehicles.
12. Logo.
13. Tagline.
14. Trademark.
15. Servicemark.
16. Business bank account.
17. Business Tax ID number.
18. Branding.
19. Colors.
20. Letterhead.
21. Cintique.
22. External hard drive.

Wednesday, January 23, 2019

I Don't Know What To Do, But I'll Get There

I want to start Battleganz, my game design company. I need to:

Write my business plan.
Make a logo.
Make a budget.
Come up with some game ideas.
Study employment.
Hire lawyers.
Hire designers.

Everything has to come in its own time. The list goes on and on. I should start building now, start making things the way that I want them. It will only make things better if I do what it takes to make it work now.

Tuesday, January 22, 2019

Few Things (HTML5)

<!Doctype html>
<meta charset = "UTF8">
<html lang = "En">
<style = "styles.css">
<head>

<title> Ten times

</title>

</head>

<body style = "BodyStyle">

<nav style = "NavStyle">

<ol>

<li> </li>
<li> </li>
<li> </li>

</ol>

<footer>

<p>
</p>

</footer>

</nav>

<article style = "ArticleStyle">
<p> </p>

<aside style = "AsideStyle">

</aside>

<p> </p>
</article>

</body>

</html>

Thursday, January 17, 2019

Few Things

daString:String = "Help me, I'm from Idaho."

result1= daString.slice(-6,22);
result2 = daString.subString(0,3);
result3 = daString.subStr(10,2);

trace(result1); //Idaho.
trace(result2);//Help
trace(result3);//I'm

Wednesday, January 16, 2019

Other Languages

Pretty soon I will be adding code from Python 3, Perl, PHP, Ruby, AJAX, Javascript and HTML5 onto my blog. I will also be working with code validators in the future. My idea is to make myself into an incredible programmer who can create programs in all of the modern languages. I should've thrown C++ in there as well.

I just want to get better, and I'm willing to do the work required.

Sincerely Yours,
JohnJenkins2315@yahoo.com

Tuesday, January 15, 2019

Just A Few Things

A few things:

"String barn".length  //10

trace(2 + "2") // 22

trace(2 + parseFloat("2")) // 4

public var hens:String = "Happy!";

public var dogg:Number = hens; //compiler error.


public var result:Int = 0
public var multiple:Int = 4
public var other:Int = 6

switch (result) {

case (miltiple*other):
trace("Open Door");
break;

case(other-multiple):
trace("Close Door");
break;

case(floor(other/multiple)):
trace("Rip Door Off Hinges");
break;

}



Monday, January 14, 2019

My Most Embarrassing Moment

Back in 2016, I was in a bind. I had been poor my entire life, every single day, and I wanted out. I wanted out so badly that I was willing to do anything. At the time I had just finished a book on programming by Steve Heller. It was a C++ book.

Suddenly I got an idea in mind. I saw all of these people making big money on Kickstarter. I wanted to be one of them. Some of these companies made billions, billions. I wanted to win like that. But I didn't know how.

I had this idea from reading the C++ book, and without researching its efficacy I hastily created a plan to build my first Kickstarter. If my past was any indication, the Kickstarter would simply be ignored and I'd stay poor.

But something happened that I would never forget. Over 7,000 people viewed the Kickstarter in a little over a week. At that point I realized that I was totally unprepared for success. Many people emailed me who completely understood my thought process and what I was trying to do. But for the most part I was lambasted.

And deservedly so. The thing that stood out most to me was the fact that if I had done the slightest bit of research on my idea, I would have realized that my idea was already patented and already existed. It's existed for decades, but I didn't know.

My one chance at fame and I lost it all, before I started. It was because of my thinking. I'll never have that kind of audience again, but I do know that knowing what you're talking about is worth a lot more than fame. In this world, people who know nothing get featured on the big screen, their name in lights, proving that you don't have to know everything to be popular.

But everything that happened to me was my fault. I'm a black man. I know better. And now I will have to pay the price. I will never have that kind of spark again, but I will know what I'm talking about before I speak.

JohnJenkins2315@yahoo.com

Friday, January 11, 2019

A Framework For Programming Despite Errors

The biggest reason why people don't programming because that dealing with all of the various compiling and runtime errors makes them feel stupid and frustrated.

The truth is that many things that should work in programming, don't. It's not even for a good reason. It's just some obscure rule; developmental inertia. Arcane society rules that don't help, and only hurt.

Programming is a creative pursuit, but so little actual creativity is allowed. For the most part, everything only works one way, and that means that you're going to have to get through about ten errors before you can see your first real program come to life. And it might take you up to five hours per error to get through.

A program that only should've taken a week now takes half a year, or you simply give up without ever finding out your true potential as a programmer.

What are the solutions?

1. Don't make errors in the first place.
2. Make programming error-tolerant.

The problem with the first problem is obvious. Humans are not computers. We reason using a living mind that is not exact. Because being too exact is the ultimate death. With perfect exactitude, all life ceases.

The problem with the second one is more complex. If we were to make programming languages more "robust," it might be more tolerant of, for example, a single errant letter in a variable name. But the excuse that the industry uses is that if we were to make a complex API that was searching for every unit of time, we would lose countless nanometers of time searching through every permutation.

And then there's the problem of programs being ambiguous as a result. The API might make your program sing pig songs instead of play ping pong, for example.

But the opposite is true. At some point, the  amount of time we lose - or spend -  as a result of having more thoughtful(?) programming languages will be outweighed by the advantages of not having our programs crash once a month or get wiped out.

Really, both solutions should be used in conjunction. With the advance of AI, we should see a great amount of progress in this area, even if it's just a new program validator.

Wednesday, January 9, 2019

Object Oriented Programming

Basically, the idea of OOP is that a collection of code becomes a literal digital "object". For example, if you wanted to have a tree. That tree would have leaves, branches, height, a trunk, a color, seeds, fruit, a species, and many other things. A tree would do certain things: like grow, photosynthesize, produce fruit, dispense fruit and shelter from the rain.

The three main components of OOP(Object Oriented Programming) are Inheritance(Heredity), Polymorphism(Metamorphosis) and Encapsulation(Wholeness). More on these in the next post.