greenfoot
Tips on Greenfoot Greeps
Last week, our project was to work on Greenfoot Greeps, the first Greeps competition project from 2007. If you’ve read my commentary about Greenfoot before, then you know just how much fun Greenfoot is. Greeps is a little scenario game where you have little aliens that absolutely love tomatoes. The deal is that you have [...]
Mouse Location in Greenfoot
In Greenfoot, you can use the MouseInfo class to find out where the mouse is. I’ve talked about making actors draggable, but sometimes you don’t want to use the Mouse Location in an actor, but possibly inside the world instead. Take a look at the following code: public static int MouseX = 0, MouseY = [...]
Greenfoot: Making Actors Draggable
Greenfoot. I’ve talked about it before and here I am again. This time it isn’t just a review, it is about coding. The Challenge My challenge today was to make some actors draggable. In other words, make them move with the mouse while the mouse is pressed down over them. Greenfoot has some documentation about [...]
Greenfoot in Java
When you take a step into Java, sometimes people find it easier to learn things when there is something visual. Java is an effective platform to build a UI on, but if you’re a beginner or even an intermediate user of Java, it can be certainly overwhelming. So there is Greenfoot. What is Greenfoot? It’s [...]